Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
Macros | Functions
fcntl.h File Reference

Go to the source code of this file.

Macros

#define O_RDONLY   0
 
#define O_WRONLY   1
 
#define O_RDWR   2
 
#define O_CREAT   0x0200
 
#define O_EXCL   0x0800
 
#define O_NONBLOCK   00004000
 

Functions

int open (const char *pathname, int flags)
 Open the file specified by the pathname. More...
 

Function Documentation

◆ open()

int open ( const char *  pathname,
int  flags 
)

Open the file specified by the pathname.

Parameters
pathnameThe pathname of the file.
flagsFlags for opening the file.
Return values
intThe function returns file descriptor number of the file on success and nonzero error number on error.