This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Add O_FSYNC define to sparc just like other platforms.
- From: David Miller <davem at davemloft dot net>
- To: libc-alpha at sourceware dot org
- Date: Wed, 15 Feb 2012 18:14:52 -0500 (EST)
- Subject: [PATCH] Add O_FSYNC define to sparc just like other platforms.
/
[BZ #11494]
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
---
ChangeLog | 3 +++
sysdeps/unix/sysv/linux/sparc/bits/fcntl.h | 1 +
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d106b06..08460a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,9 @@
2012-02-16 David S. Miller <davem@davemloft.net>
+ [BZ #11494]
+ * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
+
* sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
* sysdeps/sparc/crti.S: New file.
* sysdeps/sparc/crtn.S: New file.
diff --git a/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h b/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
index 7f6c8cd..7ce09da 100644
--- a/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
+++ b/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
@@ -39,6 +39,7 @@
#define O_TRUNC 0x0400 /* not fcntl */
#define O_EXCL 0x0800 /* not fcntl */
#define O_SYNC 0x802000
+#define O_FSYNC O_SYNC
#define O_NONBLOCK 0x4000
#define O_NDELAY (0x0004 | O_NONBLOCK)
#define O_NOCTTY 0x8000 /* not fcntl */
--
1.7.6.401.g6a319