aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-17 01:28:07 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-17 01:28:07 +0000
commit23d914d96abe41e282a65329ee9e32e108b74d2c (patch)
tree7c198dcb2f62ee61f5c3f17b7e8165c4c3780411
parent22318b7b137c63cb1512f286d3c2a2a42cec561f (diff)
downloadglibc-23d914d96abe41e282a65329ee9e32e108b74d2c.tar
glibc-23d914d96abe41e282a65329ee9e32e108b74d2c.tar.gz
glibc-23d914d96abe41e282a65329ee9e32e108b74d2c.tar.bz2
glibc-23d914d96abe41e282a65329ee9e32e108b74d2c.zip
Update.
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define O_DSYNC and O_RSYNC. Patch by Christian Gafton.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/unix/sysv/linux/sparc/bits/fcntl.h8
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4f4d6e4be4..ca0a789f0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
1999-08-16 Ulrich Drepper <drepper@cygnus.com>
+ * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define O_DSYNC and
+ O_RSYNC. Patch by Christian Gafton.
+
* stdio-common/vfprintf.c (process_string_arg) [printf]: Handle
possibly unterminated strings for %ls when a precision is
specified.
diff --git a/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h b/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
index 30fb0b78a8..4a3392c8a0 100644
--- a/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
+++ b/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
@@ -56,6 +56,14 @@
# define O_RSYNC O_SYNC /* Synchronize read operations. */
#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
+ 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. */