diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-09-05 18:29:53 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-09-05 18:29:53 +0000 |
commit | f825dfda7886e8766337e6856f986af768360f00 (patch) | |
tree | 09e2503c8d9ff64f76625d4713b3681a0c8fb6a9 /newlib | |
parent | f589a77e000608d85184d873794690e9527868f8 (diff) | |
download | newlib-f825dfda7886e8766337e6856f986af768360f00.zip newlib-f825dfda7886e8766337e6856f986af768360f00.tar.gz newlib-f825dfda7886e8766337e6856f986af768360f00.tar.bz2 |
2000-09-05 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to
make O_NDELAY and O_NONBLOCK have the same value.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/sys/fcntl.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 08ed4c2..564b8af 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2000-09-05 Jeff Johnston <jjohnstn@redhat.com> + + * libc/include/fcntl.h (_FNDELAY): Changed to be _FNONBLOCK to + make O_NDELAY and O_NONBLOCK have the same value. + 2000-08-30 Kazu Hirata <kazu@hxi.com> * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size. diff --git a/newlib/libc/include/sys/fcntl.h b/newlib/libc/include/sys/fcntl.h index ed32fab..5f3137e 100644 --- a/newlib/libc/include/sys/fcntl.h +++ b/newlib/libc/include/sys/fcntl.h @@ -8,7 +8,6 @@ extern "C" { #define _FOPEN (-1) /* from sys/file.h, kernel use only */ #define _FREAD 0x0001 /* read enabled */ #define _FWRITE 0x0002 /* write enabled */ -#define _FNDELAY 0x0004 /* non blocking I/O (4.2 style) */ #define _FAPPEND 0x0008 /* append (writes guaranteed at the end) */ #define _FMARK 0x0010 /* internal; mark during gc() */ #define _FDEFER 0x0020 /* internal; defer for next gc pass */ @@ -21,6 +20,7 @@ extern "C" { #define _FNBIO 0x1000 /* non blocking I/O (sys5 style) */ #define _FSYNC 0x2000 /* do all writes synchronously */ #define _FNONBLOCK 0x4000 /* non blocking I/O (POSIX style) */ +#define _FNDELAY _FNONBLOCK /* non blocking I/O (4.2 style) */ #define _FNOCTTY 0x8000 /* don't assign a ctty on this open */ #define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR) |