1 #ifndef _ASM_SOCKET_H
2 #define _ASM_SOCKET_H
3
4 #include <linux/types.h>
5 #include <asm/ioctl.h>
6
7
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
16
17
18
19
20
21
22
23
24 #define SOL_SOCKET 0xffff
25
26 #define SO_DEBUG 0x0001
27 #define SO_REUSEADDR 0x0004
28 #define SO_KEEPALIVE 0x0008
29 #define SO_DONTROUTE 0x0010
30 #define SO_BROADCAST 0x0020
31 #define SO_LINGER 0x0080
32 #define SO_OOBINLINE 0x0100
33
34
35 #define SO_TYPE 0x1008
36 #define SO_ERROR 0x1007
37 #define SO_SNDBUF 0x1001
38 #define SO_RCVBUF 0x1002
39
40
41 #define SO_NO_CHECK 11
42 #define SO_PRIORITY 12
43
44 #endif