From 4b8a7d2c3f00ac9a4e31e3c8c132b4b9aefbc5fe Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 16 Dec 2009 12:37:07 +0000 Subject: [PATCH] Update M68K O_SYNC. --- ChangeLog.m68k | 5 +++++ sysdeps/unix/sysv/linux/m68k/bits/fcntl.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog.m68k b/ChangeLog.m68k index 42d6a9115b..8411570b03 100644 --- a/ChangeLog.m68k +++ b/ChangeLog.m68k @@ -1,3 +1,8 @@ +2009-12-16 Joseph Myers + + * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Redefine O_SYNC and + O_DSYNC to match 2.6.33+ kernels. + 2009-11-23 Andreas Schwab * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Use struct timespec diff --git a/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h b/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h index 8ed8eb6c31..1f98cf583f 100644 --- a/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h +++ b/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h @@ -40,7 +40,7 @@ #define O_APPEND 02000 #define O_NONBLOCK 04000 #define O_NDELAY O_NONBLOCK -#define O_SYNC 010000 +#define O_SYNC 04010000 #define O_FSYNC O_SYNC #define O_ASYNC 020000 @@ -56,7 +56,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 010000 /* Synchronize data. */ # define O_RSYNC O_SYNC /* Synchronize read operations. */ #endif