Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 6 Aug 1999 17:23:27 +0000 (17:23 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 6 Aug 1999 17:23:27 +0000 (17:23 +0000)
1999-08-06  Andreas Schwab  <schwab@suse.de>

* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DSYNC, O_RSYNC):
New definitions.
(O_DIRECTORY, O_NOFOLLOW): Define only if __USE_GNU.
(O_LARGEFILE): Define only if __USE_LARGEFILE64.
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_DSYNC, O_RSYNC):
New definitions.
(O_LARGEFILE): Define only if __USE_LARGEFILE64.
* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_LARGEFILE): Likewise.

ChangeLog
sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
sysdeps/unix/sysv/linux/mips/bits/fcntl.h
sysdeps/unix/sysv/linux/sparc/bits/fcntl.h

index c5b0363dc0dd608d569ae1d1bf3b88a4552f7d79..8bf80d022840a3131728ed50dab009b2dddd97e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+1999-08-06  Andreas Schwab  <schwab@suse.de>
+
+       * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DSYNC, O_RSYNC):
+       New definitions.
+       (O_DIRECTORY, O_NOFOLLOW): Define only if __USE_GNU.
+       (O_LARGEFILE): Define only if __USE_LARGEFILE64.
+       * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_DSYNC, O_RSYNC):
+       New definitions.
+       (O_LARGEFILE): Define only if __USE_LARGEFILE64.
+       * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_LARGEFILE): Likewise.
+
 1999-08-06  Jakub Jelinek  <jj@ultra.linux.cz>
 
        * sysdeps/ieee754/ldbl-128/e_expl.c: New file.
index 1ed994412459d884b4dfb3c5f952273af45b71ea..312cd0896345d3154a6945ae5834049b3020cc4e 100644 (file)
 # define O_NOFOLLOW    0200000 /* Do not follow links.  */
 #endif
 
+#ifdef __USE_LARGEFILE64
 /* Not necessary, files are always with 64bit off_t.  */
-#define O_LARGEFILE    0
+# define O_LARGEFILE   0
+#endif
 
 /* For now Linux has synchronisity options for data and read operations.
    We define the symbols here but let them do the same as O_SYNC since
index 5ed6d76ef131c6dc3d2641d978198a5bf1b07c16..749becd7d5becb0b6d66b53861fbb0fffd1f764d 100644 (file)
 #define O_FSYNC                O_SYNC
 #define O_ASYNC                0x1000
 
-#ifdef __USE_GNU
+#ifdef __USE_LARGEFILE64
 # define O_LARGEFILE   0x2000  /* Allow large file opens.  */
+#endif
+
+#ifdef __USE_GNU
 # define O_NOFOLLOW    0x4000  /* Do not follow links.  */
 # define O_DIRECT      0x8000  /* Direct disk access hint.  */
 # define O_DIRECTORY   0x10000 /* Must be a directory.  */
 
 #define O_NDELAY       O_NONBLOCK
 
+/* For now Linux has no synchronisity options for data and read
+   operations.  We define the symbols here but let them do the same as
+   O_SYNC since this is a superset.  */
+#if defined __USE_POSIX199309 || defined __USE_UNIX98
+# define O_DSYNC       O_SYNC  /* Synchronize data.  */
+# define O_RSYNC       O_SYNC  /* Synchronize read operations.  */
+#endif
+
 /* Values for the second argument to `fcntl'.  */
 #define F_DUPFD                0       /* Duplicate file descriptor.  */
 #define F_GETFD                1       /* Get file descriptor flags.  */
index e42dfefef6c178d423f15686905e4ab95c20d980..30fb0b78a8da16c8ffb2baa1dc72220c3b615fae 100644 (file)
 #define O_NONBLOCK     0x4000
 #define O_NDELAY       (0x0004 | O_NONBLOCK)
 #define O_NOCTTY       0x8000  /* not fcntl */
-#define O_DIRECTORY    0x10000 /* must be a directory */
-#define O_NOFOLLOW     0x20000 /* don't follow links */
 
+#ifdef __USE_GNU
+# define O_DIRECTORY   0x10000 /* must be a directory */
+# define O_NOFOLLOW    0x20000 /* don't follow links */
+#endif
+
+#ifdef __USE_LARGEFILE64
 /* XXX missing */
-#define O_LARGEFILE    0
+# define O_LARGEFILE   0
+#endif
+
+/* For now Linux has no synchronisity options for data and read
+   operations.  We define the symbols here but let them do the same as
+   O_SYNC since this is a superset.  */
+#if defined __USE_POSIX199309 || defined __USE_UNIX98
+# define O_DSYNC       O_SYNC  /* Synchronize data.  */
+# define O_RSYNC       O_SYNC  /* Synchronize read operations.  */
+#endif
 
 /* Values for the second argument to `fcntl'.  */
 #define F_DUPFD                0       /* Duplicate file descriptor.  */