diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-01-15 21:50:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-01-15 21:50:28 +0000 |
commit | c64e4ed48285a0c944905bc02de89c20038f428b (patch) | |
tree | 7804e08b98cb9e6b9ac4de5e010c6fb70f9a011b /c/src/lib/libc/libio.c | |
parent | changes remerged after lost in disk crash -- recovered from snapshot, partial... (diff) | |
download | rtems-c64e4ed48285a0c944905bc02de89c20038f428b.tar.bz2 |
updates from Tony Bennett for PA and UNIX ports
Diffstat (limited to 'c/src/lib/libc/libio.c')
-rw-r--r-- | c/src/lib/libc/libio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/c/src/lib/libc/libio.c b/c/src/lib/libc/libio.c index a7ac5b2d3c..73b6adf298 100644 --- a/c/src/lib/libc/libio.c +++ b/c/src/lib/libc/libio.c @@ -15,12 +15,13 @@ #include <stdio.h> /* O_RDONLY, et.al. */ #include <fcntl.h> /* O_RDONLY, et.al. */ -#include <sys/fcntl.h> /* O_RDONLY, et.al. */ + #if defined(solaris2) #define O_NDELAY O_NONBLOCK #elif defined(RTEMS_NEWLIB) #define O_NDELAY _FNBIO #endif + #include <errno.h> #include <string.h> /* strcmp */ #include <unistd.h> @@ -208,7 +209,7 @@ rtems_libio_allocate(void) rc = rtems_semaphore_create( RTEMS_LIBIO_IOP_SEM(iop - rtems_libio_iops), - 1, + 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &iop->sem |