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
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 #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
32
33 #define SO_TYPE 0x1008
34 #define SO_ERROR 0x1007
35 #define SO_SNDBUF 0x1001
36 #define SO_RCVBUF 0x1002
37
38
39 #define SO_NO_CHECK 11
40 #define SO_PRIORITY 12
41 #define SO_BSDCOMPAT 14
42
43
44
45
46
47 #define SOCK_DGRAM 1
48 #define SOCK_STREAM 2
49 #define SOCK_RAW 3
50 #define SOCK_RDM 4
51 #define SOCK_SEQPACKET 5
52 #define SOCK_PACKET 10
53
54
55
56
57
58 #endif