From 93a0dfdaf4bdb1d0366da171794dd3e6b10287fe Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 15 Dec 2009 18:11:38 +0000 Subject: [PATCH] Update MIPS O_SYNC. --- ChangeLog.mips | 5 +++++ sysdeps/unix/sysv/linux/mips/bits/fcntl.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog.mips b/ChangeLog.mips index b3125f46d27..9dfe2a5d1b4 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,3 +1,8 @@ +2009-12-15 Joseph Myers + + * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Redefine O_SYNC and + O_DSYNC to match 2.6.33+ kernels. + 2009-12-09 Joseph Myers * sysdeps/unix/sysv/linux/mips/bits/socket.h: Define mmsghdr and diff --git a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h index 5496912b7a7..24fb9740749 100644 --- a/sysdeps/unix/sysv/linux/mips/bits/fcntl.h +++ b/sysdeps/unix/sysv/linux/mips/bits/fcntl.h @@ -36,7 +36,7 @@ #define O_WRONLY 01 #define O_RDWR 02 #define O_APPEND 0x0008 -#define O_SYNC 0x0010 +#define O_SYNC 0x4010 #define O_NONBLOCK 0x0080 #define O_NDELAY O_NONBLOCK #define O_CREAT 0x0100 /* not fcntl */ @@ -58,7 +58,7 @@ 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_DSYNC 0x0010 /* Synchronize data. */ # define O_RSYNC O_SYNC /* Synchronize read operations. */ #endif -- 2.47.2