Changeset 9b05600 in rtems


Ignore:
Timestamp:
06/14/00 20:22:31 (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5e77d129
Parents:
07f0442
Message:

* empty log message *

Files:
3 added
39 edited
1 moved

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/include/rtems/libio.h

    r07f0442 r9b05600  
    2323#include <sys/types.h>
    2424#include <sys/stat.h>
     25#include <sys/ioctl.h>
    2526
    2627/*
     
    447448
    448449/*
    449  *  IOCTL values
    450  */
    451 
    452 #define       RTEMS_IO_GET_ATTRIBUTES 1
    453 #define       RTEMS_IO_SET_ATTRIBUTES 2
    454 #define       RTEMS_IO_TCDRAIN        3
    455 #define       FIONREAD                4
    456 
    457 /*
    458450 *  The following macros are used to build up the permissions sets
    459451 *  used to check permissions.  These are similar in style to the
  • c/src/exec/libcsupport/include/sys/filio.h

    r07f0442 r9b05600  
    4545#include <sys/ioccom.h>
    4646
     47/* RTEMS defines all of these in sys/ioccom.h */
     48#if 0
    4749/* Generic file-descriptor ioctl's. */
    4850#define FIOCLEX          _IO('f', 1)            /* set close on exec on fd */
     
    5355#define FIOSETOWN       _IOW('f', 124, int)     /* set owner */
    5456#define FIOGETOWN       _IOR('f', 123, int)     /* get owner */
     57#endif
    5558
    5659#endif /* !_SYS_FILIO_H_ */
  • c/src/exec/libcsupport/src/ioctl.c

    r07f0442 r9b05600  
    1717#include "libio_.h"
    1818
     19#include <unistd.h>
     20
    1921int ioctl(
    20   int         fd,
    21   unsigned32  command,
    22   void *      buffer
     22  int  fd,
     23  int  command,
     24  ...
    2325)
    2426{
     27  va_list            ap;
    2528  rtems_status_code  rc;
    2629  rtems_libio_t     *iop;
     30  void              *buffer;
    2731
    2832  rtems_libio_check_fd( fd );
    2933  iop = rtems_libio_iop( fd );
    3034  rtems_libio_check_is_open(iop);
     35
     36  va_start(ap, command);
     37
     38  buffer = va_arg(ap, void *);
    3139
    3240  /*
  • c/src/exec/libcsupport/src/tcdrain.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/exec/libcsupport/src/tcflow.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/exec/libcsupport/src/tcflush.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/exec/libcsupport/src/tcgetattr.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/exec/libcsupport/src/tcgetprgrp.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/exec/libcsupport/src/tcsendbreak.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/exec/libcsupport/src/tcsetattr.c

    r07f0442 r9b05600  
    2020#include <termios.h>
    2121/* #include <sys/ioctl.h> */
    22 
    23 int ioctl();
    2422
    2523#include <rtems/libio.h>
  • c/src/exec/libcsupport/src/tcsetpgrp.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/exec/libnetworking/sys/Makefile.am

    r07f0442 r9b05600  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 H_FILES = buf.h callout.h cdefs.h conf.h domain.h filio.h ioccom.h \
     7H_FILES = buf.h callout.h cdefs.h conf.h domain.h filio.h \
    88    ioctl.h kernel.h libkern.h malloc.h mbuf.h mount.h param.h proc.h \
    99    protosw.h queue.h reboot.h resourcevar.h rtprio.h select.h signalvar.h \
  • c/src/lib/include/ioccom.h

    r07f0442 r9b05600  
    3838#define _SYS_IOCCOM_H_
    3939
     40/* the definitions were moved to a common placed so they could be shared */
     41#include <sys/rtems_ioccom.h>
     42
     43#if 0
    4044/*
    4145 * Ioctl's have the command encoded in the lower word, and the size of
     
    6266/* this should be _IORW, but stdio got there first */
    6367#define _IOWR(g,n,t)    _IOC(IOC_INOUT, (g), (n), sizeof(t))
     68#endif
    6469
    6570#ifndef KERNEL
  • c/src/lib/include/rtems/libio.h

    r07f0442 r9b05600  
    2323#include <sys/types.h>
    2424#include <sys/stat.h>
     25#include <sys/ioctl.h>
    2526
    2627/*
     
    447448
    448449/*
    449  *  IOCTL values
    450  */
    451 
    452 #define       RTEMS_IO_GET_ATTRIBUTES 1
    453 #define       RTEMS_IO_SET_ATTRIBUTES 2
    454 #define       RTEMS_IO_TCDRAIN        3
    455 #define       FIONREAD                4
    456 
    457 /*
    458450 *  The following macros are used to build up the permissions sets
    459451 *  used to check permissions.  These are similar in style to the
  • c/src/lib/include/sys/Makefile.am

    r07f0442 r9b05600  
    1515endif
    1616
    17 H_FILES = utime.h $(NEWLIB_H_FILES) $(NETWORKING_H_FILES)
     17H_FILES = ioccom.h utime.h $(NEWLIB_H_FILES) $(NETWORKING_H_FILES)
    1818
    19 noinst_HEADERS = utime.h termios.h ioctl.h
     19noinst_HEADERS = utime.h termios.h ioctl.h rtems_ioccom.h
    2020
    2121PREINSTALL_FILES += $(PROJECT_INCLUDE)/sys \
  • c/src/lib/include/sys/filio.h

    r07f0442 r9b05600  
    4545#include <sys/ioccom.h>
    4646
     47/* RTEMS defines all of these in sys/ioccom.h */
     48#if 0
    4749/* Generic file-descriptor ioctl's. */
    4850#define FIOCLEX          _IO('f', 1)            /* set close on exec on fd */
     
    5355#define FIOSETOWN       _IOW('f', 124, int)     /* set owner */
    5456#define FIOGETOWN       _IOR('f', 123, int)     /* get owner */
     57#endif
    5558
    5659#endif /* !_SYS_FILIO_H_ */
  • c/src/lib/libc/ioctl.c

    r07f0442 r9b05600  
    1717#include "libio_.h"
    1818
     19#include <unistd.h>
     20
    1921int ioctl(
    20   int         fd,
    21   unsigned32  command,
    22   void *      buffer
     22  int  fd,
     23  int  command,
     24  ...
    2325)
    2426{
     27  va_list            ap;
    2528  rtems_status_code  rc;
    2629  rtems_libio_t     *iop;
     30  void              *buffer;
    2731
    2832  rtems_libio_check_fd( fd );
    2933  iop = rtems_libio_iop( fd );
    3034  rtems_libio_check_is_open(iop);
     35
     36  va_start(ap, command);
     37
     38  buffer = va_arg(ap, void *);
    3139
    3240  /*
  • c/src/lib/libc/libio.h

    r07f0442 r9b05600  
    2323#include <sys/types.h>
    2424#include <sys/stat.h>
     25#include <sys/ioctl.h>
    2526
    2627/*
     
    447448
    448449/*
    449  *  IOCTL values
    450  */
    451 
    452 #define       RTEMS_IO_GET_ATTRIBUTES 1
    453 #define       RTEMS_IO_SET_ATTRIBUTES 2
    454 #define       RTEMS_IO_TCDRAIN        3
    455 #define       FIONREAD                4
    456 
    457 /*
    458450 *  The following macros are used to build up the permissions sets
    459451 *  used to check permissions.  These are similar in style to the
  • c/src/lib/libc/tcdrain.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/lib/libc/tcflow.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/lib/libc/tcflush.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/lib/libc/tcgetattr.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/lib/libc/tcgetprgrp.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/lib/libc/tcsendbreak.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/lib/libc/tcsetattr.c

    r07f0442 r9b05600  
    2020#include <termios.h>
    2121/* #include <sys/ioctl.h> */
    22 
    23 int ioctl();
    2422
    2523#include <rtems/libio.h>
  • c/src/lib/libc/tcsetpgrp.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • c/src/libnetworking/sys/Makefile.am

    r07f0442 r9b05600  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 H_FILES = buf.h callout.h cdefs.h conf.h domain.h filio.h ioccom.h \
     7H_FILES = buf.h callout.h cdefs.h conf.h domain.h filio.h \
    88    ioctl.h kernel.h libkern.h malloc.h mbuf.h mount.h param.h proc.h \
    99    protosw.h queue.h reboot.h resourcevar.h rtprio.h select.h signalvar.h \
  • c/src/libnetworking/sys/filio.h

    r07f0442 r9b05600  
    4545#include <sys/ioccom.h>
    4646
     47/* RTEMS defines all of these in sys/ioccom.h */
     48#if 0
    4749/* Generic file-descriptor ioctl's. */
    4850#define FIOCLEX          _IO('f', 1)            /* set close on exec on fd */
     
    5355#define FIOSETOWN       _IOW('f', 124, int)     /* set owner */
    5456#define FIOGETOWN       _IOR('f', 123, int)     /* get owner */
     57#endif
    5558
    5659#endif /* !_SYS_FILIO_H_ */
  • cpukit/libcsupport/include/rtems/libio.h

    r07f0442 r9b05600  
    2323#include <sys/types.h>
    2424#include <sys/stat.h>
     25#include <sys/ioctl.h>
    2526
    2627/*
     
    447448
    448449/*
    449  *  IOCTL values
    450  */
    451 
    452 #define       RTEMS_IO_GET_ATTRIBUTES 1
    453 #define       RTEMS_IO_SET_ATTRIBUTES 2
    454 #define       RTEMS_IO_TCDRAIN        3
    455 #define       FIONREAD                4
    456 
    457 /*
    458450 *  The following macros are used to build up the permissions sets
    459451 *  used to check permissions.  These are similar in style to the
  • cpukit/libcsupport/include/sys/filio.h

    r07f0442 r9b05600  
    4545#include <sys/ioccom.h>
    4646
     47/* RTEMS defines all of these in sys/ioccom.h */
     48#if 0
    4749/* Generic file-descriptor ioctl's. */
    4850#define FIOCLEX          _IO('f', 1)            /* set close on exec on fd */
     
    5355#define FIOSETOWN       _IOW('f', 124, int)     /* set owner */
    5456#define FIOGETOWN       _IOR('f', 123, int)     /* get owner */
     57#endif
    5558
    5659#endif /* !_SYS_FILIO_H_ */
  • cpukit/libcsupport/src/ioctl.c

    r07f0442 r9b05600  
    1717#include "libio_.h"
    1818
     19#include <unistd.h>
     20
    1921int ioctl(
    20   int         fd,
    21   unsigned32  command,
    22   void *      buffer
     22  int  fd,
     23  int  command,
     24  ...
    2325)
    2426{
     27  va_list            ap;
    2528  rtems_status_code  rc;
    2629  rtems_libio_t     *iop;
     30  void              *buffer;
    2731
    2832  rtems_libio_check_fd( fd );
    2933  iop = rtems_libio_iop( fd );
    3034  rtems_libio_check_is_open(iop);
     35
     36  va_start(ap, command);
     37
     38  buffer = va_arg(ap, void *);
    3139
    3240  /*
  • cpukit/libcsupport/src/tcdrain.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • cpukit/libcsupport/src/tcflow.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • cpukit/libcsupport/src/tcflush.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • cpukit/libcsupport/src/tcgetattr.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • cpukit/libcsupport/src/tcgetprgrp.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • cpukit/libcsupport/src/tcsendbreak.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • cpukit/libcsupport/src/tcsetattr.c

    r07f0442 r9b05600  
    2020#include <termios.h>
    2121/* #include <sys/ioctl.h> */
    22 
    23 int ioctl();
    2422
    2523#include <rtems/libio.h>
  • cpukit/libcsupport/src/tcsetpgrp.c

    r07f0442 r9b05600  
    2121/* #include <sys/ioctl.h> */
    2222
    23 int ioctl();
    24 
    2523#include <rtems/libio.h>
    2624
  • cpukit/libnetworking/sys/Makefile.am

    r07f0442 r9b05600  
    55AUTOMAKE_OPTIONS = foreign 1.4
    66
    7 H_FILES = buf.h callout.h cdefs.h conf.h domain.h filio.h ioccom.h \
     7H_FILES = buf.h callout.h cdefs.h conf.h domain.h filio.h \
    88    ioctl.h kernel.h libkern.h malloc.h mbuf.h mount.h param.h proc.h \
    99    protosw.h queue.h reboot.h resourcevar.h rtprio.h select.h signalvar.h \
Note: See TracChangeset for help on using the changeset viewer.