Changeset 836803f in rtems


Ignore:
Timestamp:
Nov 17, 2015, 1:57:47 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f757bb7c
Parents:
78cac9b
Message:

Import latest <sys/filio.h> from FreeBSD

Required by new network stack.

Location:
cpukit/libcsupport/include/sys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/sys/filio.h

    r78cac9b r836803f  
    1616 *    notice, this list of conditions and the following disclaimer in the
    1717 *    documentation and/or other materials provided with the distribution.
    18  * 3. All advertising materials mentioning features or use of this software
    19  *    must display the following acknowledgement:
    20  *      This product includes software developed by the University of
    21  *      California, Berkeley and its contributors.
    2218 * 4. Neither the name of the University nor the names of its contributors
    2319 *    may be used to endorse or promote products derived from this software
     
    3733 *
    3834 *      @(#)filio.h     8.1 (Berkeley) 3/28/94
     35 * $FreeBSD r195191 2009-06-30T13:38:49Z$
    3936 */
    4037
     
    4441#include <sys/ioccom.h>
    4542
    46 /* RTEMS defines all of these in sys/ioccom.h */
    47 #if 0
    4843/* Generic file-descriptor ioctl's. */
    4944#define FIOCLEX          _IO('f', 1)            /* set close on exec on fd */
     
    5449#define FIOSETOWN       _IOW('f', 124, int)     /* set owner */
    5550#define FIOGETOWN       _IOR('f', 123, int)     /* get owner */
    56 #endif
     51#define FIODTYPE        _IOR('f', 122, int)     /* get d_flags type part */
     52#define FIOGETLBA       _IOR('f', 121, int)     /* get start blk # */
     53struct fiodgname_arg {
     54        int     len;
     55        void    *buf;
     56};
     57#define FIODGNAME       _IOW('f', 120, struct fiodgname_arg) /* get dev. name */
     58#define FIONWRITE       _IOR('f', 119, int)     /* get # bytes (yet) to write */
     59#define FIONSPACE       _IOR('f', 118, int)     /* get space in send queue */
     60/* Handle lseek SEEK_DATA and SEEK_HOLE for holey file knowledge. */
     61#define FIOSEEKDATA     _IOWR('f', 97, off_t)   /* SEEK_DATA */
     62#define FIOSEEKHOLE     _IOWR('f', 98, off_t)   /* SEEK_HOLE */
    5763
    5864#endif /* !_SYS_FILIO_H_ */
  • cpukit/libcsupport/include/sys/ioccom.h

    r78cac9b r836803f  
    8181#define       RTEMS_IO_TCFLUSH        6
    8282
    83 /* copied from libnetworking/sys/filio.h and commented out there */
    84 /* Generic file-descriptor ioctl's. */
    85 #define FIOCLEX          _IO('f', 1)            /* set close on exec on fd */
    86 #define FIONCLEX         _IO('f', 2)            /* remove close on exec */
    87 #define FIONREAD        _IOR('f', 127, int)     /* get # bytes to read */
    88 #define FIONBIO         _IOW('f', 126, int)     /* set/clear non-blocking i/o */
    89 #define FIOASYNC        _IOW('f', 125, int)     /* set/clear async i/o */
    90 #define FIOSETOWN       _IOW('f', 124, int)     /* set owner */
    91 #define FIOGETOWN       _IOR('f', 123, int)     /* get owner */
    92 
    9383#ifdef _KERNEL
    9484
Note: See TracChangeset for help on using the changeset viewer.