Tue Dec 13 22:15:00 GMT 2005
Corinna Vinschen wrote:
> 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
-- Jeff J.
More information about the Newlib