Add O_DIRECTORY.
authorUlrich Drepper <drepper@redhat.com>
Fri, 16 Oct 1998 16:29:19 +0000 (16:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 16 Oct 1998 16:29:19 +0000 (16:29 +0000)
sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
sysdeps/unix/sysv/linux/mips/bits/fcntl.h

index 7cd32a3..e67ad19 100644 (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.  */
index 0a0d9c9..63e754d 100644 (file)
 #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