patch from Tony Bennett on the ifdef for O_NDELAY

This commit is contained in:
Joel Sherrill
1996-06-06 17:57:39 +00:00
parent e754dd1df9
commit 09b1f1ad2c
3 changed files with 24 additions and 21 deletions

View File

@@ -1,9 +1,7 @@
/* /*
* Provide UNIX/POSIX-like io system calls for RTEMS using the * Provide UNIX/POSIX-like io system calls for RTEMS using the
* RTEMS IO manager * RTEMS IO manager
* *
* TODO
*
* $Id$ * $Id$
*/ */
@@ -13,12 +11,15 @@
#include <stdio.h> /* O_RDONLY, et.al. */ #include <stdio.h> /* O_RDONLY, et.al. */
#include <fcntl.h> /* O_RDONLY, et.al. */ #include <fcntl.h> /* O_RDONLY, et.al. */
#if defined(solaris2) #if ! defined(O_NDELAY)
#define O_NDELAY O_NONBLOCK # if defined(solaris2)
#elif defined(RTEMS_NEWLIB) # define O_NDELAY O_NONBLOCK
#define O_NDELAY _FNBIO # elif defined(RTEMS_NEWLIB)
# define O_NDELAY _FNBIO
# endif
#endif #endif
#include <errno.h> #include <errno.h>
#include <string.h> /* strcmp */ #include <string.h> /* strcmp */
#include <unistd.h> #include <unistd.h>

View File

@@ -1,9 +1,7 @@
/* /*
* Provide UNIX/POSIX-like io system calls for RTEMS using the * Provide UNIX/POSIX-like io system calls for RTEMS using the
* RTEMS IO manager * RTEMS IO manager
* *
* TODO
*
* $Id$ * $Id$
*/ */
@@ -13,12 +11,15 @@
#include <stdio.h> /* O_RDONLY, et.al. */ #include <stdio.h> /* O_RDONLY, et.al. */
#include <fcntl.h> /* O_RDONLY, et.al. */ #include <fcntl.h> /* O_RDONLY, et.al. */
#if defined(solaris2) #if ! defined(O_NDELAY)
#define O_NDELAY O_NONBLOCK # if defined(solaris2)
#elif defined(RTEMS_NEWLIB) # define O_NDELAY O_NONBLOCK
#define O_NDELAY _FNBIO # elif defined(RTEMS_NEWLIB)
# define O_NDELAY _FNBIO
# endif
#endif #endif
#include <errno.h> #include <errno.h>
#include <string.h> /* strcmp */ #include <string.h> /* strcmp */
#include <unistd.h> #include <unistd.h>

View File

@@ -1,9 +1,7 @@
/* /*
* Provide UNIX/POSIX-like io system calls for RTEMS using the * Provide UNIX/POSIX-like io system calls for RTEMS using the
* RTEMS IO manager * RTEMS IO manager
* *
* TODO
*
* $Id$ * $Id$
*/ */
@@ -13,12 +11,15 @@
#include <stdio.h> /* O_RDONLY, et.al. */ #include <stdio.h> /* O_RDONLY, et.al. */
#include <fcntl.h> /* O_RDONLY, et.al. */ #include <fcntl.h> /* O_RDONLY, et.al. */
#if defined(solaris2) #if ! defined(O_NDELAY)
#define O_NDELAY O_NONBLOCK # if defined(solaris2)
#elif defined(RTEMS_NEWLIB) # define O_NDELAY O_NONBLOCK
#define O_NDELAY _FNBIO # elif defined(RTEMS_NEWLIB)
# define O_NDELAY _FNBIO
# endif
#endif #endif
#include <errno.h> #include <errno.h>
#include <string.h> /* strcmp */ #include <string.h> /* strcmp */
#include <unistd.h> #include <unistd.h>