This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMITTED PATCH] add O_DSYNC/O_RSYNC to generic/4.4 bits/fcntl.h


	* bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
	(O_DSYNC, O_RSYNC): New macros (with NetBSD values).


diff --git a/bits/fcntl.h b/bits/fcntl.h
index ddf7ab2..65b366a 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]