fix O_SYNC definition, cleanup fcntl.h
This commit is contained in:
parent
0a84e72c42
commit
a3aa89d826
3 changed files with 18 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue