FreeNOS
Functions
fcntl.h File Reference
#include <Macros.h>
#include <stdio.h>
#include "sys/types.h"

Go to the source code of this file.

Macros

File Constants
#define O_CREAT   (1 << 0)
 Create file if it does not exist. More...
 
#define O_EXCL   (1 << 1)
 Exclusive use flag. More...
 
#define O_NOCTTY   (1 << 2)
 Do not assign controlling terminal. More...
 
#define O_TRUNC   (1 << 3)
 Truncate flag. More...
 
#define O_TTY_INIT   (1 << 4)
 Set the termios structure terminal parameters to a state that provides conforming behavior; see Parameters that Can be Set. More...
 
#define O_APPEND   (1 << 5)
 Set append mode. More...
 
#define O_DSYNC   (1 << 6)
 Write according to synchronized I/O data integrity completion. More...
 
#define O_NONBLOCK   (1 << 7)
 Non-blocking mode. More...
 
#define O_RSYNC   (1 << 8)
 Synchronized read I/O operations. More...
 
#define O_SYNC   (1 << 9)
 Write according to synchronized I/O file integrity completion. More...
 
#define O_ACCMODE   (O_EXEC | O_RDONLY | O_RDWR | O_SEARCH | O_WRONLY)
 Mask for file access modes. More...
 
#define O_EXEC   (1 << 10)
 Open for execute only (non-directory files). More...
 
#define O_RDONLY   (1 << 11)
 Open for reading only. More...
 
#define O_RDWR   (1 << 12)
 Open for reading and writing. More...
 
#define O_SEARCH   (1 << 13)
 Open directory for search only. More...
 
#define O_WRONLY   (1 << 14)
 Open for writing only. More...
 

Functions

C int open (const char *path, int oflag,...)
 Open file relative to directory file descriptor. More...