[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#577577: O_FSYNC used but not defined on some archs



On Mon, Apr 12, 2010 at 02:14:39PM -0600, dann frazier wrote:
> Package: libc6-dev
> Version: 2.10.2-6
> Severity: important
> 
> On some archs (hppa and sparc at least), there is no O_FSYNC define in
> bits/fcntl.h. However, even on these archs, we have this block of defines:
> 
> #ifdef __USE_BSD
> # define FAPPEND	O_APPEND
> # define FFSYNC		O_FSYNC
> # define FASYNC		O_ASYNC
> # define FNONBLOCK	O_NONBLOCK
> # define FNDELAY	O_NDELAY
> #endif /* Use BSD.  */
> 
> This makes code with an #ifdef FFSYNC do the wrong thing, as FFSYNC
> gets literally defined to the string "O_FSYNC".

Perhaps we could use O_SYNC instead, since this is defined on both
hppa and sparc.



Reply to: