ArvernOS
Loading...
Searching...
No Matches
fcntl.h File Reference

Macros

#define O_RDONLY   0x0000
 Open for reading only.
 
#define O_WRONLY   0x0001
 Open for writing only.
 
#define O_RDWR   0x0002
 Open for reading and writing.
 
#define O_APPEND   0x0008
 Starts writing at the end of the file.
 
#define O_CREAT   0x0100
 Create then open the file.
 
#define O_TRUNC   0x0200
 Truncate file.
 
#define SEEK_SET   0
 Set file descriptor offset to offset.
 
#define SEEK_CUR   1
 Set file descriptor offset to current plus offset.
 
#define SEEK_END   2
 Set file descriptor offset to EOF plus offset.
 
#define AT_FDCWD   -100
 SYSCALL_OPENAT should use the current working directory.