4.10.2. Target-dependent input/output support functions

rt_sys.h defines the type FILEHANDLE. The value of FILEHANDLE is returned by _sys_open() and identifies an open file on the host system.

The target-dependent input and output functions and their library members are listed in Table 4.15.

Table 4.15. I/O support functions

FunctionDescription
_sys_open()_sys_open()
_sys_close()_sys_close()
_sys_read()_sys_seek()
_sys_write()_sys_write()
_sys_seek()_sys_read()
_sys_ensure()_sys_ensure()
_sys_flen()_sys_flen()
_sys_istty()_sys_istty()
_sys_tmpnam()_sys_tmpnam()
_sys_command_string()_sys_command_string()

The default implementation of these functions is semihosted. That is, each function uses the semihosting SWI. If any function is redefined, all stream-support functions must be redefined.

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI 0067D
Non-Confidential