• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef	_SYS_IOCTL_H
2 #define	_SYS_IOCTL_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #include <bits/alltypes.h>
8 #include <bits/ioctl.h>
9 
10 #define N_TTY           0
11 #define N_SLIP          1
12 #define N_MOUSE         2
13 #define N_PPP           3
14 #define N_STRIP         4
15 #define N_AX25          5
16 #define N_X25           6
17 #define N_6PACK         7
18 #define N_MASC          8
19 #define N_R3964         9
20 #define N_PROFIBUS_FDL  10
21 #define N_IRDA          11
22 #define N_SMSBLOCK      12
23 #define N_HDLC          13
24 #define N_SYNC_PPP      14
25 #define N_HCI           15
26 #define N_GIGASET_M101  16
27 #define N_SLCAN         17
28 #define N_PPS           18
29 #define N_V253          19
30 #define N_CAIF          20
31 #define N_GSM0710       21
32 #define N_TI_WL         22
33 #define N_TRACESINK     23
34 #define N_TRACEROUTER   24
35 #define N_NCI           25
36 #define N_SPEAKUP       26
37 #define N_NULL          27
38 
39 #define TIOCPKT_DATA       0
40 #define TIOCPKT_FLUSHREAD  1
41 #define TIOCPKT_FLUSHWRITE 2
42 #define TIOCPKT_STOP       4
43 #define TIOCPKT_START      8
44 #define TIOCPKT_NOSTOP    16
45 #define TIOCPKT_DOSTOP    32
46 #define TIOCPKT_IOCTL     64
47 
48 #define TIOCSER_TEMT 1
49 
50 struct winsize {
51 	unsigned short ws_row;
52 	unsigned short ws_col;
53 	unsigned short ws_xpixel;
54 	unsigned short ws_ypixel;
55 };
56 
57 #define SIOCADDRT          0x890B
58 #define SIOCDELRT          0x890C
59 #define SIOCRTMSG          0x890D
60 
61 #define SIOCGIFNAME        0x8910
62 #define SIOCSIFLINK        0x8911
63 #define SIOCGIFCONF        0x8912
64 #define SIOCGIFFLAGS       0x8913
65 #define SIOCSIFFLAGS       0x8914
66 #define SIOCGIFADDR        0x8915
67 #define SIOCSIFADDR        0x8916
68 #define SIOCGIFDSTADDR     0x8917
69 #define SIOCSIFDSTADDR     0x8918
70 #define SIOCGIFBRDADDR     0x8919
71 #define SIOCSIFBRDADDR     0x891a
72 #define SIOCGIFNETMASK     0x891b
73 #define SIOCSIFNETMASK     0x891c
74 #define SIOCGIFMETRIC      0x891d
75 #define SIOCSIFMETRIC      0x891e
76 #define SIOCGIFMEM         0x891f
77 #define SIOCSIFMEM         0x8920
78 #define SIOCGIFMTU         0x8921
79 #define SIOCSIFMTU         0x8922
80 #define SIOCSIFNAME        0x8923
81 #define SIOCSIFHWADDR      0x8924
82 #define SIOCGIFENCAP       0x8925
83 #define SIOCSIFENCAP       0x8926
84 #define SIOCGIFHWADDR      0x8927
85 #define SIOCGIFSLAVE       0x8929
86 #define SIOCSIFSLAVE       0x8930
87 #define SIOCADDMULTI       0x8931
88 #define SIOCDELMULTI       0x8932
89 #define SIOCGIFINDEX       0x8933
90 #define SIOGIFINDEX        SIOCGIFINDEX
91 #define SIOCSIFPFLAGS      0x8934
92 #define SIOCGIFPFLAGS      0x8935
93 #define SIOCDIFADDR        0x8936
94 #define SIOCSIFHWBROADCAST 0x8937
95 #define SIOCGIFCOUNT       0x8938
96 
97 #define SIOCGIFBR          0x8940
98 #define SIOCSIFBR          0x8941
99 
100 #define SIOCGIFTXQLEN      0x8942
101 #define SIOCSIFTXQLEN      0x8943
102 
103 #define SIOCDARP           0x8953
104 #define SIOCGARP           0x8954
105 #define SIOCSARP           0x8955
106 
107 #define SIOCDRARP          0x8960
108 #define SIOCGRARP          0x8961
109 #define SIOCSRARP          0x8962
110 
111 #define SIOCGIFMAP         0x8970
112 #define SIOCSIFMAP         0x8971
113 
114 #define SIOCADDDLCI        0x8980
115 #define SIOCDELDLCI        0x8981
116 
117 #define SIOCDEVPRIVATE     0x89F0
118 #define SIOCPROTOPRIVATE   0x89E0
119 
120 int ioctl (int, int, ...);
121 
122 #ifdef __cplusplus
123 }
124 #endif
125 #endif
126