]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[__USE_GNU]: Add O_READ, O_WRITE and O_NORW.
authorUlrich Drepper <drepper@redhat.com>
Mon, 17 Mar 1997 04:12:44 +0000 (04:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 17 Mar 1997 04:12:44 +0000 (04:12 +0000)
sysdeps/unix/sysv/linux/alpha/fcntlbits.h
sysdeps/unix/sysv/linux/fcntlbits.h

index e8697d989834426c18d5e4c59a2483013c29c153..faf198393f88c39ee6672dbe8a9eef94462710fd 100644 (file)
 #include <sys/types.h>
 
 
+/* In GNU, read and write are bits (unlike BSD).  */
+#ifdef __USE_GNU
+#define        O_READ          O_RDONLY /* Open for reading.  */
+#define O_WRITE                O_WRONLY /* Open for writing.  */
+#define O_NORW         0       /* Open without R/W access.  */
+#endif
 /* open/fcntl - O_SYNC is only implemented on blocks devices and on files
    located on an ext2 file system */
 #define O_ACCMODE        0003
@@ -38,7 +44,8 @@
 #define O_APPEND        00010
 #define O_NDELAY       O_NONBLOCK
 #define O_SYNC         040000
-#define FASYNC         020000  /* fcntl, for BSD compatibility */
+#define O_FSYNC                O_SYNC
+#define O_ASYNC                020000  /* fcntl, for BSD compatibility */
 
 #define F_DUPFD                0       /* dup */
 #define F_GETFD                1       /* get f_flags */
@@ -86,6 +93,7 @@ struct flock
 #ifdef __USE_BSD
 #define        FAPPEND         O_APPEND
 #define        FFSYNC          O_FSYNC
+#define        FASYNC          O_ASYNC
 #define        FNONBLOCK       O_NONBLOCK
 #define        FNDELAY         O_NDELAY
 #endif /* Use BSD.  */
index d7e889fc5e7729a84c7a7ee4a2f7766d05e5492a..fdc67ce4eb7293178f2e970f5e4c03bf2524ca69 100644 (file)
 #include <sys/types.h>
 
 
+/* In GNU, read and write are bits (unlike BSD).  */
+#ifdef __USE_GNU
+#define        O_READ          O_RDONLY /* Open for reading.  */
+#define O_WRITE                O_WRONLY /* Open for writing.  */
+#define O_NORW         0       /* Open without R/W access.  */
+#endif
 /* open/fcntl - O_SYNC is only implemented on blocks devices and on files
    located on an ext2 file system */
 #define O_ACCMODE        0003
@@ -37,7 +43,8 @@
 #define O_NONBLOCK      04000
 #define O_NDELAY       O_NONBLOCK
 #define O_SYNC         010000
-#define FASYNC         020000  /* fcntl, for BSD compatibility */
+#define O_FSYNC                O_SYNC
+#define O_ASYNC                020000
 
 #define F_DUPFD                0       /* dup */
 #define F_GETFD                1       /* get f_flags */
@@ -85,6 +92,7 @@ struct flock
 #ifdef __USE_BSD
 #define        FAPPEND         O_APPEND
 #define        FFSYNC          O_FSYNC
+#define        FASYNC          O_ASYNC
 #define        FNONBLOCK       O_NONBLOCK
 #define        FNDELAY         O_NDELAY
 #endif /* Use BSD.  */