summaryrefslogtreecommitdiff
path: root/userland/libc/fcntl.h
blob: 4c1eb9c2dd0b1c7e0cb8213a4ec9a29a5e367b82 (plain)
1
2
3
4
5
6
7
8
9
10
// 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_RDONLY O_READ
#define O_WRONLY O_WRITE
#define O_RDWR (O_WRITE | O_READ)

int open(const char *file, int flags, int mode);