This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: O_SYNC


Corinna Vinschen wrote:
Hi,

in libc/include/sys/fcntl.h, the O_SYNC flag is guarded by "#ifndef
_POSIX_SOURCE", together with these unlucky BSD defines FAPPEND, FSYNC,
etc.  However, O_SYNC is defined by SUSv3 as part of the "Synchronized
Input and Output" extension [SIO], together with its siblings O_DSYNC
and O_RSYNC.  Shouldn't O_SYNC be taken out of the "#ifndef _POSIX_SOURCE"
guarded part and be always defined instead?


Yes, it is documented in the POSIX standard and should be outside of the #ifndef.


-- Jeff J.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]