diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-10-16 16:29:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-10-16 16:29:19 +0000 |
commit | c220db51b0f2e94198da18d5b76ee520b59bc652 (patch) | |
tree | 6d73fdca8af98702cb9ad1147b685c6ba1bccde4 | |
parent | d69f35a8073dd987a12c92ebff0efa7d38ff5464 (diff) | |
download | glibc-c220db51b0f2e94198da18d5b76ee520b59bc652.tar glibc-c220db51b0f2e94198da18d5b76ee520b59bc652.tar.gz glibc-c220db51b0f2e94198da18d5b76ee520b59bc652.tar.bz2 glibc-c220db51b0f2e94198da18d5b76ee520b59bc652.zip |
Add O_DIRECTORY.
-rw-r--r-- | sysdeps/unix/sysv/linux/alpha/bits/fcntl.h | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/mips/bits/fcntl.h | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h b/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h index 7cd32a34a3..e67ad19f65 100644 --- a/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h +++ b/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h @@ -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. */ diff --git a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h index 0a0d9c9d00..63e754d5fe 100644 --- a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h +++ b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h @@ -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 |