diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-14 22:06:30 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-14 22:06:30 -0400 |
commit | a3aa89d8268a4d3af43d94e77f473753fd99d8da (patch) | |
tree | 8dcb7d98bd5fcf202b771d75201abb425fc4035e /include/fcntl.h | |
parent | 0a84e72c42ba01c9fa794d5e94aabf8a704e8b7d (diff) | |
download | musl-a3aa89d8268a4d3af43d94e77f473753fd99d8da.tar.gz musl-a3aa89d8268a4d3af43d94e77f473753fd99d8da.tar.bz2 musl-a3aa89d8268a4d3af43d94e77f473753fd99d8da.tar.xz musl-a3aa89d8268a4d3af43d94e77f473753fd99d8da.zip |
fix O_SYNC definition, cleanup fcntl.h
Diffstat (limited to 'include/fcntl.h')
-rw-r--r-- | include/fcntl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/fcntl.h b/include/fcntl.h index 6faf9cda..1c18c6e2 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -78,6 +78,14 @@ int posix_fallocate(int, off_t, off_t); #define S_IRWXO 0007 #endif +#ifdef _GNU_SOURCE +#define FAPPEND O_APPEND +#define FFSYNC O_FSYNC +#define FASYNC O_ASYNC +#define FNONBLOCK O_NONBLOCK +#define FNDELAY O_NDELAY +#endif + #ifdef __cplusplus } #endif |