_sys_open()

Defined in rt_sys.h, this function opens a file.

Show/hideSyntax

FILEHANDLE _sys_open(const char *name, int openmode);

Show/hideUsage

The _sys_open() function is required by fopen() and freopen(). These functions in turn are required if any file input/output function is to be used.

The openmode parameter is a bitmap whose bits mostly correspond directly to the ISO mode specification. Target-dependent extensions are possible, but freopen() must also be extended.

Show/hideReturns

The return value is -1 if an error occurs.

Show/hideSee also

Reference

Using ARM® C and C++ Libraries and Floating-Point Support:

Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0492E
Non-ConfidentialID071611