This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
O_SYNC
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Tue, 13 Dec 2005 17:33:35 +0100
- Subject: O_SYNC
- Reply-to: newlib at sourceware dot org
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.