root/include/asm-mips/socket.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef __ASM_MIPS_SOCKET_H
   2 #define __ASM_MIPS_SOCKET_H
   3 
   4 #include <linux/types.h>
   5 #include <asm/ioctl.h>
   6 
   7 /* Socket-level I/O control calls. */
   8 #define FIOGETOWN       _IOR('f', 123, int)
   9 #define FIOSETOWN       _IOW('f', 124, int)
  10 
  11 #define SIOCATMARK      _IOR('s', 7, int)
  12 #define SIOCSPGRP       _IOW('s', 8, pid_t)
  13 #define SIOCGPGRP       _IOR('s', 9, pid_t)
  14 
  15 #define SIOCGSTAMP      0x8906                  /* Get stamp - linux-specific */
  16 
  17 /*
  18  * For setsockoptions(2)
  19  *
  20  * This defines are ABI conformant as far as Linux supports these ...
  21  */
  22 #define SOL_SOCKET      0xffff
  23 
  24 #define SO_DEBUG        0x0001
  25 #define SO_REUSEADDR    0x0004
  26 #define SO_KEEPALIVE    0x0008
  27 #define SO_DONTROUTE    0x0010
  28 #define SO_BROADCAST    0x0020
  29 #define SO_LINGER       0x0080
  30 #define SO_OOBINLINE    0x0100
  31 /* To add: #define SO_REUSEPORT 0x0200 */
  32 
  33 #define SO_TYPE         0x1008
  34 #define SO_ERROR        0x1007
  35 #define SO_SNDBUF       0x1001
  36 #define SO_RCVBUF       0x1002
  37 
  38 /* linux-specific, might as well be the same as on i386 */
  39 #define SO_NO_CHECK     11
  40 #define SO_PRIORITY     12
  41 #define SO_BSDCOMPAT    14
  42 
  43 /*
  44  * Wierd.  There are two ABIs; in the old one SOCK_STREAM and SOCK_DGRAM
  45  * have swapped values.  I choose to be compatible with the new one.
  46  */
  47 #define SOCK_DGRAM      1               /* datagram (conn.less) socket  */
  48 #define SOCK_STREAM     2               /* stream (connection) socket   */
  49 #define SOCK_RAW        3               /* raw socket                   */
  50 #define SOCK_RDM        4               /* reliably-delivered message   */
  51 #define SOCK_SEQPACKET  5               /* sequential packet socket     */
  52 #define SOCK_PACKET     10              /* linux specific way of        */
  53                                         /* getting packets at the dev   */
  54                                         /* level.  For writing rarp and */
  55                                         /* other similar things on the  */
  56                                         /* user level.                  */
  57 
  58 #endif /* __ASM_MIPS_SOCKET_H */

/* [previous][next][first][last][top][bottom][index][help] */