mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 23:40:10 +00:00
Add O_DIRECTORY.
This commit is contained in:
parent
d69f35a807
commit
c220db51b0
@ -45,6 +45,7 @@
|
||||
|
||||
#ifdef __USE_GNU
|
||||
# define O_DIRECT 040000 /* Direct disk access. */
|
||||
# define O_DIRECTORY 0100000 /* Must be a directory. */
|
||||
#endif
|
||||
|
||||
/* Not necessary, files are always with 64bit off_t. */
|
||||
|
@ -38,7 +38,11 @@
|
||||
#define O_EXCL 0x0400 /* not fcntl */
|
||||
#define O_NOCTTY 0x0800 /* not fcntl */
|
||||
#define O_FSYNC O_SYNC
|
||||
#define O_ASYNC 020000
|
||||
#define O_ASYNC 0x1000
|
||||
|
||||
#ifdef __USE_GNU
|
||||
# define O_DIRECTORY 0x2000 /* Must be a directory. */
|
||||
#endif
|
||||
|
||||
#define O_NDELAY O_NONBLOCK
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user