diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-12-14 09:06:00 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-12-14 09:06:00 +0000 |
commit | 10cba930d401056aed4b2fb360b5e084d61ecabb (patch) | |
tree | ded38bfd218f430044f904e2e24a705f8d4d1461 /newlib | |
parent | fbe7cb7681a4def929729940fb298a3c46ecad32 (diff) | |
download | newlib-10cba930d401056aed4b2fb360b5e084d61ecabb.zip newlib-10cba930d401056aed4b2fb360b5e084d61ecabb.tar.gz newlib-10cba930d401056aed4b2fb360b5e084d61ecabb.tar.bz2 |
* libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix
typo in O_NDELAY comment.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/sys/fcntl.h | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 76bf01d..65d8dd7 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2005-12-14 Corinna Vinschen <corinna@vinschen.de> + + * libc/include/sys/fcntl.h: Define O_SYNC unconditionally. Fix + typo in O_NDELAY comment. + 2005-12-13 Nathan Sidwell <nathan@codesourcery.com> * libc/include/machine/ieeefp.h (__mt__): Renamed from __ms1__. diff --git a/newlib/libc/include/sys/fcntl.h b/newlib/libc/include/sys/fcntl.h index 0a680a1..fd8917d 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) */ |