Changeset 09b1f1a in rtems


Ignore:
Timestamp:
Jun 6, 1996, 5:57:39 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
782bdfd
Parents:
e754dd1d
Message:

patch from Tony Bennett on the ifdef for O_NDELAY

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/libio.c

    re754dd1d r09b1f1a  
    11/*
    2  * Provide UNIX/POSIX-like io system calls for RTEMS using the
     2 *  Provide UNIX/POSIX-like io system calls for RTEMS using the
    33 *  RTEMS IO manager
    44 *
    5  * TODO
    6  *
    75 *  $Id$
    86 */
     
    1412#include <fcntl.h>                      /* O_RDONLY, et.al. */
    1513
    16 #if defined(solaris2)
    17 #define O_NDELAY O_NONBLOCK
    18 #elif defined(RTEMS_NEWLIB)
    19 #define O_NDELAY _FNBIO
     14#if ! defined(O_NDELAY)
     15# if defined(solaris2)
     16#  define O_NDELAY O_NONBLOCK
     17# elif defined(RTEMS_NEWLIB)
     18#  define O_NDELAY _FNBIO
     19# endif
    2020#endif
     21
    2122
    2223#include <errno.h>
  • c/src/lib/libc/libio.c

    re754dd1d r09b1f1a  
    11/*
    2  * Provide UNIX/POSIX-like io system calls for RTEMS using the
     2 *  Provide UNIX/POSIX-like io system calls for RTEMS using the
    33 *  RTEMS IO manager
    44 *
    5  * TODO
    6  *
    75 *  $Id$
    86 */
     
    1412#include <fcntl.h>                      /* O_RDONLY, et.al. */
    1513
    16 #if defined(solaris2)
    17 #define O_NDELAY O_NONBLOCK
    18 #elif defined(RTEMS_NEWLIB)
    19 #define O_NDELAY _FNBIO
     14#if ! defined(O_NDELAY)
     15# if defined(solaris2)
     16#  define O_NDELAY O_NONBLOCK
     17# elif defined(RTEMS_NEWLIB)
     18#  define O_NDELAY _FNBIO
     19# endif
    2020#endif
     21
    2122
    2223#include <errno.h>
  • cpukit/libcsupport/src/libio.c

    re754dd1d r09b1f1a  
    11/*
    2  * Provide UNIX/POSIX-like io system calls for RTEMS using the
     2 *  Provide UNIX/POSIX-like io system calls for RTEMS using the
    33 *  RTEMS IO manager
    44 *
    5  * TODO
    6  *
    75 *  $Id$
    86 */
     
    1412#include <fcntl.h>                      /* O_RDONLY, et.al. */
    1513
    16 #if defined(solaris2)
    17 #define O_NDELAY O_NONBLOCK
    18 #elif defined(RTEMS_NEWLIB)
    19 #define O_NDELAY _FNBIO
     14#if ! defined(O_NDELAY)
     15# if defined(solaris2)
     16#  define O_NDELAY O_NONBLOCK
     17# elif defined(RTEMS_NEWLIB)
     18#  define O_NDELAY _FNBIO
     19# endif
    2020#endif
     21
    2122
    2223#include <errno.h>
Note: See TracChangeset for help on using the changeset viewer.