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