From 10cba930d401056aed4b2fb360b5e084d61ecabb Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 14 Dec 2005 09:06:00 +0000 Subject: * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix typo in O_NDELAY comment. --- newlib/libc/include/sys/fcntl.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'newlib/libc') diff --git a/newlib/libc/include/sys/fcntl.h b/newlib/libc/include/sys/fcntl.h index 0a680a1da..fd8917d1e 100644 --- a/newlib/libc/include/sys/fcntl.h +++ b/newlib/libc/include/sys/fcntl.h @@ -37,9 +37,9 @@ extern "C" { #define O_CREAT _FCREAT #define O_TRUNC _FTRUNC #define O_EXCL _FEXCL -/* O_SYNC _FSYNC not posix, defined below */ +#define O_SYNC _FSYNC /* O_NDELAY _FNDELAY set in include/fcntl.h */ -/* O_NDELAY _FNBIO set in 5include/fcntl.h */ +/* O_NDELAY _FNBIO set in include/fcntl.h */ #define O_NONBLOCK _FNONBLOCK #define O_NOCTTY _FNOCTTY /* For machines which care - */ @@ -68,8 +68,6 @@ extern "C" { #ifndef _POSIX_SOURCE -#define O_SYNC _FSYNC - /* * Flags that work for fcntl(fd, F_SETFL, FXXXX) */ -- cgit v1.2.3