Keil Logo

SYS_ERRNO (0x13)

11.10 SYS_ERRNO (0x13)

Returns the value of the C library errno variable associated with the host implementation of the semihosting SVCs.

The errno variable can be set by a number of C library semihosted functions, including:
  • SYS_REMOVE
  • SYS_OPEN
  • SYS_CLOSE
  • SYS_READ
  • SYS_WRITE
  • SYS_SEEK.
Whether errno is set or not, and to what value, is entirely host-specific, except where the ISO C standard defines the behavior.

Entry

There are no parameters. Register R1 must be zero.

Return

On exit, R0 contains the value of the C library errno variable.
Non-ConfidentialPDF file icon PDF versionARM DUI0375H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.