about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2012-08-15 15:47:52 -0700
committerRoland McGrath <roland@hack.frob.com>2012-08-15 15:47:52 -0700
commite04e272d21d57a5e84af253c085a80de9b2f7e9f (patch)
tree8cc04c7704b149872aa2778752240c6005004438
parent952bf94a281fb855c169f43fb7330b4dc655063a (diff)
downloadglibc-e04e272d21d57a5e84af253c085a80de9b2f7e9f.tar.gz
glibc-e04e272d21d57a5e84af253c085a80de9b2f7e9f.tar.xz
glibc-e04e272d21d57a5e84af253c085a80de9b2f7e9f.zip
Define O_DSYNC and O_RSYNC in generic/4.4 bits/fcntl.h file.
-rw-r--r--ChangeLog3
-rw-r--r--bits/fcntl.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3dd5842b08..a31fa486b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-08-15  Roland McGrath  <roland@hack.frob.com>
 
+	* bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
+	(O_DSYNC, O_RSYNC): New macros (with NetBSD values).
+
 	* misc/lseek.c: File moved to ...
 	* io/lseek.c: ... here.
 
diff --git a/bits/fcntl.h b/bits/fcntl.h
index ddf7ab2b61..65b366ab7f 100644
--- a/bits/fcntl.h
+++ b/bits/fcntl.h
@@ -44,6 +44,10 @@
 # define O_NOFOLLOW	0x00000100	/* Do not follow links.	 */
 # define O_CLOEXEC	0x00400000      /* Set close_on_exec.  */
 #endif
+#if defined __USE_POSIX199309 || defined __USE_UNIX98
+# define O_DSYNC	0x00010000	/* Synchronize data.  */
+# define O_RSYNC	0x00020000	/* Synchronize read operations.	 */
+#endif
 
 /* All opens support large file sizes, so there is no flag bit for this.  */
 #ifdef __USE_LARGEFILE64