diff options
| author | Joseph Myers <joseph@codesourcery.com> | 2009-12-15 18:11:38 +0000 |
|---|---|---|
| committer | Joseph Myers <joseph@codesourcery.com> | 2009-12-15 18:11:38 +0000 |
| commit | 93a0dfdaf4bdb1d0366da171794dd3e6b10287fe (patch) | |
| tree | ef0bec16ffda5e670b859d456493212620ab6e32 | |
| parent | 4d0f4f9f26f6185fef0be270fb5140be573af0f2 (diff) | |
| download | glibc-93a0dfdaf4bdb1d0366da171794dd3e6b10287fe.tar.xz glibc-93a0dfdaf4bdb1d0366da171794dd3e6b10287fe.zip | |
Update MIPS O_SYNC.
| -rw-r--r-- | ChangeLog.mips | 5 | ||||
| -rw-r--r-- | 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 b3125f46d2..9dfe2a5d1b 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,3 +1,8 @@ +2009-12-15 Joseph Myers <joseph@codesourcery.com> + + * 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 <joseph@codesourcery.com> * 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 5496912b7a..24fb974074 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 |
