7 #define O_ACCMODE 0x0003
11 #define O_APPEND 0x0008
12 #define O_CREAT 0x0200
13 #define O_TRUNC 0x0400
15 #define O_NONBLOCK 0x4000
17 #define O_NOCTTY 0x8000
21 #define O_DIRECTORY 0x200000
22 #define O_CLOEXEC 0x400000
30 #define F_DUPFD_CLOEXEC 1030
36 #define AT_FDCWD (-100)
37 #define AT_SYMLINK_NOFOLLOW 0x100
48 int open(
const char *pathname,
int flags, ...);
58 int fcntl(
int fd,
int cmd, ...);
int open(const char *pathname, int flags,...)
Open the file specified by the pathname.
Definition: file.c:36
int fcntl(int fd, int cmd,...)
Act on an open file descriptor.
Definition: file.c:78