]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define O_DSYNC and O_RSYNC in generic/4.4 bits/fcntl.h file.
authorRoland McGrath <roland@hack.frob.com>
Wed, 15 Aug 2012 22:47:52 +0000 (15:47 -0700)
committerRoland McGrath <roland@hack.frob.com>
Wed, 15 Aug 2012 22:47:52 +0000 (15:47 -0700)
ChangeLog
bits/fcntl.h

index 3dd5842b082f74a10b52d0a4fe65d8a733cd7969..a31fa486b450b0c45edcf726e60286177ffd71d0 100644 (file)
--- 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.
 
index ddf7ab2b616355682b8e76c133ad4decdd221e16..65b366ab7f3270fc9f9b4e31d1091d4e6a1b4ee9 100644 (file)
 # 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