Datasheet
The C and C++ Libraries
4-78 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
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.
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.
Table 4-15 I/O support functions
Function Description
_sys_open()
_sys_open() on page 4-79
_sys_close()
_sys_close() on page 4-79
_sys_read()
_sys_seek() on page 4-83
_sys_write()
_sys_write() on page 4-81
_sys_seek()
_sys_read() on page 4-80
_sys_ensure()
_sys_ensure() on page 4-82
_sys_flen()
_sys_flen() on page 4-82
_sys_istty()
_sys_istty() on page 4-83
_sys_tmpnam()
_sys_tmpnam() on page 4-84
_sys_command_string()
_sys_command_string() on page 4-84