summaryrefslogtreecommitdiff
path: root/userland/libc/include/fcntl.h
blob: 57c968a98a447bf7546d3a6ff3bd1b4db99df3e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// FIXME: Is there some standard value for this?
#define O_NONBLOCK (1 << 0)
#define O_READ (1 << 1)
#define O_WRITE (1 << 2)
#define O_CREAT (1 << 3)
#define O_TRUNC (1 << 4)
#define O_APPEND (1 << 5)

#define O_RDONLY O_READ
#define O_WRONLY O_WRITE
#define O_RDWR (O_WRITE | O_READ)

int open(const char *file, int flags, ...);
int open_process(int pid);