fix O_SYNC definition, cleanup fcntl.h

This commit is contained in:
Rich Felker
2011-04-14 22:06:30 -04:00
parent 0a84e72c42
commit a3aa89d826
3 changed files with 18 additions and 22 deletions

View File

@ -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