The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386/ibcs2/ibcs2_socksys.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Copyright (c) 1994, 1995 Scott Bartram
    3  * Copyright (c) 1994 Arne H Juul
    4  * All rights reserved.
    5  *
    6  * Redistribution and use in source and binary forms, with or without
    7  * modification, are permitted provided that the following conditions
    8  * are met:
    9  * 1. Redistributions of source code must retain the above copyright
   10  *    notice, this list of conditions and the following disclaimer.
   11  * 2. The name of the author may not be used to endorse or promote products
   12  *    derived from this software without specific prior written permission
   13  *
   14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   15  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   16  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   17  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   18  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   19  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   20  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   21  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   22  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   23  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   24  */
   25 
   26 #ifndef _I386_IBCS2_IBCS2_SOCKSYS_H_
   27 #define _I386_IBCS2_IBCS2_SOCKSYS_H_
   28 
   29 #include <sys/ioccom.h>
   30 
   31 #include <i386/ibcs2/ibcs2_types.h>
   32 
   33 #define SOCKSYS_ACCEPT          1
   34 #define SOCKSYS_BIND            2
   35 #define SOCKSYS_CONNECT         3
   36 #define SOCKSYS_GETPEERNAME     4
   37 #define SOCKSYS_GETSOCKNAME     5
   38 #define SOCKSYS_GETSOCKOPT      6
   39 #define SOCKSYS_LISTEN          7
   40 #define SOCKSYS_RECV            8
   41 #define SOCKSYS_RECVFROM        9
   42 #define SOCKSYS_SEND            10
   43 #define SOCKSYS_SENDTO          11
   44 #define SOCKSYS_SETSOCKOPT      12
   45 #define SOCKSYS_SHUTDOWN        13
   46 #define SOCKSYS_SOCKET          14
   47 #define SOCKSYS_SELECT          15
   48 #define SOCKSYS_GETIPDOMAIN     16
   49 #define SOCKSYS_SETIPDOMAIN     17
   50 #define SOCKSYS_ADJTIME         18
   51 #define SOCKSYS_SETREUID        19
   52 #define SOCKSYS_SETREGID        20
   53 #define SOCKSYS_GETTIME         21
   54 #define SOCKSYS_SETTIME         22
   55 #define SOCKSYS_GETITIMER       23
   56 #define SOCKSYS_SETITIMER       24
   57 
   58 #define IBCS2_SIOCSHIWAT        _IOW('S', 1, int)       
   59 #define IBCS2_SIOCGHIWAT        _IOR('S', 2, int)       
   60 #define IBCS2_SIOCSLOWAT        _IOW('S', 3, int)       
   61 #define IBCS2_SIOCGLOWAT        _IOR('S', 4, int)       
   62 #define IBCS2_SIOCATMARK        _IOR('S', 5, int)       
   63 #define IBCS2_SIOCSPGRP         _IOW('S', 6, int)       
   64 #define IBCS2_SIOCGPGRP         _IOR('S', 7, int)       
   65 #define IBCS2_FIONREAD          _IOR('S', 8, int)       
   66 #define IBCS2_FIONBIO           _IOW('S', 9, int)       
   67 #define IBCS2_FIOASYNC          _IOW('S', 10, int)      
   68 #define IBCS2_SIOCPROTO         _IOW('S', 11, struct socknewproto)      
   69 #define IBCS2_SIOCGETNAME       _IOR('S', 12, struct sockaddr)  
   70 #define IBCS2_SIOCGETPEER       _IOR('S', 13, struct sockaddr)  
   71 #define IBCS2_IF_UNITSEL        _IOW('S', 14, int)      
   72 #define IBCS2_SIOCXPROTO        _IO('S', 15)    
   73 
   74 #define IBCS2_SIOCADDRT         _IOW('R', 9, struct rtentry)    
   75 #define IBCS2_SIOCDELRT         _IOW('R', 10, struct rtentry)   
   76 
   77 #define IBCS2_SIOCSIFADDR       _IOW('I', 11, struct ifreq)     
   78 #define IBCS2_SIOCGIFADDR       _IOWR('I', 12, struct ifreq)    
   79 #define IBCS2_SIOCSIFDSTADDR    _IOW('I', 13, struct ifreq)     
   80 #define IBCS2_SIOCGIFDSTADDR    _IOWR('I', 14, struct ifreq)    
   81 #define IBCS2_SIOCSIFFLAGS      _IOW('I', 15, struct ifreq)     
   82 #define IBCS2_SIOCGIFFLAGS      _IOWR('I', 16, struct ifreq)    
   83 #define IBCS2_SIOCGIFCONF       _IOWR('I', 17, struct ifconf)   
   84 #define IBCS2_SIOCSIFMTU        _IOW('I', 21, struct ifreq)     
   85 #define IBCS2_SIOCGIFMTU        _IOWR('I', 22, struct ifreq)    
   86 #define IBCS2_SIOCIFDETACH      _IOW('I', 26, struct ifreq)     
   87 #define IBCS2_SIOCGENPSTATS     _IOWR('I', 27, struct ifreq)    
   88 #define IBCS2_SIOCX25XMT        _IOWR('I', 29, struct ifreq)
   89 #define IBCS2_SIOCX25RCV        _IOWR('I', 30, struct ifreq)
   90 #define IBCS2_SIOCX25TBL        _IOWR('I', 31, struct ifreq)
   91 #define IBCS2_SIOCGIFBRDADDR    _IOWR('I', 32, struct ifreq)    
   92 #define IBCS2_SIOCSIFBRDADDR    _IOW('I', 33, struct ifreq)     
   93 #define IBCS2_SIOCGIFNETMASK    _IOWR('I', 34, struct ifreq)    
   94 #define IBCS2_SIOCSIFNETMASK    _IOW('I', 35, struct ifreq)     
   95 #define IBCS2_SIOCGIFMETRIC     _IOWR('I', 36, struct ifreq)    
   96 #define IBCS2_SIOCSIFMETRIC     _IOW('I', 37, struct ifreq)     
   97 #define IBCS2_SIOCSARP          _IOW('I', 38, struct arpreq)    
   98 #define IBCS2_SIOCGARP          _IOWR('I', 39, struct arpreq)   
   99 #define IBCS2_SIOCDARP          _IOW('I', 40, struct arpreq)    
  100 #define IBCS2_SIOCSIFNAME       _IOW('I', 41, struct ifreq)     
  101 #define IBCS2_SIOCGIFONEP       _IOWR('I', 42, struct ifreq)    
  102 #define IBCS2_SIOCSIFONEP       _IOW('I', 43, struct ifreq)     
  103 #define IBCS2_SIOCGENADDR       _IOWR('I', 65, struct ifreq)    
  104 #define IBCS2_SIOCSOCKSYS       _IOW('I', 66, struct socksysreq)        
  105 
  106 struct socksysreq {
  107         int realargs[7];
  108 };
  109 
  110 struct socknewproto {
  111         int family;
  112         int type;
  113         int proto;
  114         ibcs2_dev_t dev;
  115         int flags;
  116 };
  117 
  118 struct ibcs2_socksys_args {
  119         int     fd;
  120         int     magic;
  121         caddr_t argsp;
  122 };
  123 
  124 int ibcs2_socksys __P((struct proc *, struct ibcs2_socksys_args *));
  125 
  126 #endif /* !_I386_IBCS2_IBCS2_SOCKSYS_H_ */

Cache object: 6790cab9b191b15e405eb3a385cff58e


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.