blob: 29134beb226880805e16eeef21a8c2e3b87c3e42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// 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, ...);
|