Keil Logo

_sys_open()

4.44 _sys_open()

Defined in rt_sys.h, the _sys_open() function opens a file.

Syntax

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

Usage

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.

Returns

The return value is –1 if an error occurs.
Non-ConfidentialPDF file icon PDF versionARM DUI0378H
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.