/* bits/open-flags.h: O_* constants for open(). */ #ifndef _BITS_OPEN_FLAGS_H #define _BITS_OPEN_FLAGS_H #define O_RDONLY 1 #define O_WRONLY 2 #define O_RDWR 3 #define O_APPEND 4 #define O_CREAT 8 #define O_EXCL 16 #define O_TRUNC 32 #define O_NONBLOCK 64 #define O_CLOEXEC 128 #define O_DIRECTORY 256 #define O_TMPFILE 512 #define O_ACCMODE O_RDWR #endif