stdlib.h: implement mkstemp()
[neatlibc.git] / fcntl.h
blobb4e4623c9907bf1e5cd4564187f7ba3acc258bca
1 #ifndef _FCNTL_H
2 #define _FCNTL_H
4 #define O_RDONLY 00000
5 #define O_WRONLY 00001
6 #define O_RDWR 00002
7 #define O_ACCMODE 00003
8 #define O_CREAT 00100
9 #define O_EXCL 00200
10 #define O_NOCTTY 00400
11 #define O_TRUNC 01000
12 #define O_APPEND 02000
13 #define O_NONBLOCK 04000
14 #define O_SYNC 0010000
15 #define FASYNC 0020000
16 #define O_DIRECT 0040000
17 #define O_LARGEFILE 0100000
18 #define O_DIRECTORY 0200000
19 #define O_NOFOLLOW 0400000
20 #define O_NOATIME 001000000
22 #define F_DUPFD 0
23 #define F_GETFD 1
24 #define F_SETFD 2
25 #define F_GETFL 3
26 #define F_SETFL 4
27 #define F_GETLK 5
28 #define F_SETLK 6
29 #define F_SETLKW 7
30 #define F_SETOWN 8
31 #define F_GETOWN 9
32 #define F_SETSIG 10
33 #define F_GETSIG 11
35 #define FD_CLOEXEC 1
37 #define F_RDLCK 0
38 #define F_WRLCK 1
39 #define F_UNLCK 2
41 int open(char *path, int flags, ...);
42 int creat(char *path, int mode);
43 int fcntl(int fd, int cmd, ...);
45 #endif