Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
fcntl.h File Reference

Go to the source code of this file.

Macros

#define O_CREAT   0x0200
 
#define O_ACCMODE   (O_RDONLY | O_WRONLY | O_RDWR)
 
#define O_RDONLY   00
 
#define O_WRONLY   01
 
#define O_RDWR   02
 
#define O_APPEND   0x0400
 
#define O_EXCL   0x0800
 
#define O_NONBLOCK   0x4000
 
#define F_DUPFD   0
 
#define F_GETFL   3
 
#define F_SETFL   4
 

Functions

int open (const char *name, int flags,...)
 
int fcntl (int fildes, int cmd,...)
 

Macro Definition Documentation

◆ F_DUPFD

#define F_DUPFD   0

◆ F_GETFL

#define F_GETFL   3

◆ F_SETFL

#define F_SETFL   4

◆ O_ACCMODE

#define O_ACCMODE   (O_RDONLY | O_WRONLY | O_RDWR)

◆ O_APPEND

#define O_APPEND   0x0400

◆ O_CREAT

#define O_CREAT   0x0200

◆ O_EXCL

#define O_EXCL   0x0800

◆ O_NONBLOCK

#define O_NONBLOCK   0x4000

◆ O_RDONLY

#define O_RDONLY   00

◆ O_RDWR

#define O_RDWR   02

◆ O_WRONLY

#define O_WRONLY   01

Function Documentation

◆ fcntl()

int fcntl ( int  fildes,
int  cmd,
  ... 
)

◆ open()

int open ( const char *  name,
int  flags,
  ... 
)