O_SYNC

Corinna Vinschen vinschen@redhat.com
Tue Dec 13 17:22:00 GMT 2005


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?


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.



More information about the Newlib mailing list