fcntl.h (436B)
1 #ifndef _FCNTL_H 2 #define _FCNTL_H 3 #define O_RDONLY 00 4 #define O_WRONLY 01 5 #define O_RDWR 02 6 #define O_CREAT 0100 7 #define O_EXCL 0200 8 #define O_TRUNC 01000 9 #define O_APPEND 02000 10 #define O_NONBLOCK 04000 11 int open(const char *, int, ...); 12 int creat(const char *, unsigned int); 13 int fcntl(int, int, ...); 14 #define F_DUPFD 0 15 #define F_GETFD 1 16 #define F_SETFD 2 17 #define F_GETFL 3 18 #define F_SETFL 4 19 #define FD_CLOEXEC 1 20 #endif