aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-06-14 10:06:07 +0000
committerRoland McGrath <roland@gnu.org>2001-06-14 10:06:07 +0000
commiteeeeed6a562ffffadd9d45e363c4d93215260974 (patch)
tree5bf8177fdc433b5984c24e08df603910eb32bf77
parent3de5235f0f90e84424a481958c64de72b81cfdf7 (diff)
downloadglibc-eeeeed6a562ffffadd9d45e363c4d93215260974.tar
glibc-eeeeed6a562ffffadd9d45e363c4d93215260974.tar.gz
glibc-eeeeed6a562ffffadd9d45e363c4d93215260974.tar.bz2
glibc-eeeeed6a562ffffadd9d45e363c4d93215260974.zip
* sysdeps/mach/hurd/bits/fcntl.h [ __USE_POSIX199309 || __USE_UNIX98]:
(O_DSYNC, O_RSYNC): New macros, both defined to O_SYNC as Linux does.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/mach/hurd/bits/fcntl.h9
2 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e4ad754ec..10fab7dd5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-06-14 Roland McGrath <roland@frob.com>
+
+ * sysdeps/mach/hurd/bits/fcntl.h [ __USE_POSIX199309 || __USE_UNIX98]:
+ (O_DSYNC, O_RSYNC): New macros, both defined to O_SYNC as Linux does.
+
2001-06-13 Roland McGrath <roland@frob.com>
* rt/aio_notify.c: Include <unistd.h> for _POSIX_REALTIME_SIGNALS.
diff --git a/sysdeps/mach/hurd/bits/fcntl.h b/sysdeps/mach/hurd/bits/fcntl.h
index b49a0e3182..360f0e9461 100644
--- a/sysdeps/mach/hurd/bits/fcntl.h
+++ b/sysdeps/mach/hurd/bits/fcntl.h
@@ -1,5 +1,5 @@
/* O_*, F_*, FD_* bit values for GNU.
- Copyright (C) 1993,94,96,97,98,99, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1993,94,96,97,98,99,2000,01 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -78,6 +78,13 @@
# define O_EXLOCK 0x00040000 /* Open with exclusive file lock. */
#endif
+/* These are lesser flavors of partial synchronization that are
+ implied by our one flag (O_FSYNC). */
+#if defined __USE_POSIX199309 || defined __USE_UNIX98
+# define O_DSYNC O_SYNC /* Synchronize data. */
+# define O_RSYNC O_SYNC /* Synchronize read operations. */
+#endif
+
/* The name O_NONBLOCK is unfortunately overloaded; it is both a file name
translation flag and an I/O operating mode. O_NDELAY is the deprecated