Add O_DIRECTORY.

This commit is contained in:
Ulrich Drepper 1998-10-16 16:29:19 +00:00
parent d69f35a807
commit c220db51b0
2 changed files with 6 additions and 1 deletions

View File

@ -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. */

View File

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