]>
Commit | Line | Data |
---|---|---|
476ff2be SL |
1 | pub type c_char = u8; |
2 | pub type wchar_t = i32; | |
3 | ||
4 | s! { | |
5 | pub struct ipc_perm { | |
6 | __key: ::key_t, | |
7 | pub uid: ::uid_t, | |
8 | pub gid: ::gid_t, | |
9 | pub cuid: ::uid_t, | |
10 | pub cgid: ::gid_t, | |
11 | pub mode: ::mode_t, | |
12 | __seq: ::uint32_t, | |
13 | __pad1: ::uint32_t, | |
14 | __glibc_reserved1: ::uint64_t, | |
15 | __glibc_reserved2: ::uint64_t, | |
16 | } | |
17 | ||
18 | pub struct stat64 { | |
19 | pub st_dev: ::dev_t, | |
20 | pub st_ino: ::ino64_t, | |
21 | pub st_mode: ::mode_t, | |
22 | pub st_nlink: ::nlink_t, | |
23 | pub st_uid: ::uid_t, | |
24 | pub st_gid: ::gid_t, | |
25 | pub st_rdev: ::dev_t, | |
26 | __pad2: ::c_ushort, | |
27 | pub st_size: ::off64_t, | |
28 | pub st_blksize: ::blksize_t, | |
29 | pub st_blocks: ::blkcnt64_t, | |
30 | pub st_atime: ::time_t, | |
31 | pub st_atime_nsec: ::c_long, | |
32 | pub st_mtime: ::time_t, | |
33 | pub st_mtime_nsec: ::c_long, | |
34 | pub st_ctime: ::time_t, | |
35 | pub st_ctime_nsec: ::c_long, | |
36 | __glibc_reserved4: ::c_ulong, | |
37 | __glibc_reserved5: ::c_ulong, | |
38 | } | |
39 | ||
40 | pub struct shmid_ds { | |
41 | pub shm_perm: ::ipc_perm, | |
42 | __glibc_reserved1: ::c_uint, | |
43 | pub shm_atime: ::time_t, | |
44 | __glibc_reserved2: ::c_uint, | |
45 | pub shm_dtime: ::time_t, | |
46 | __glibc_reserved3: ::c_uint, | |
47 | pub shm_ctime: ::time_t, | |
48 | __glibc_reserved4: ::c_uint, | |
49 | pub shm_segsz: ::size_t, | |
50 | pub shm_cpid: ::pid_t, | |
51 | pub shm_lpid: ::pid_t, | |
52 | pub shm_nattch: ::shmatt_t, | |
53 | __glibc_reserved5: ::c_ulong, | |
54 | __glibc_reserved6: ::c_ulong, | |
55 | } | |
56 | ||
57 | pub struct msqid_ds { | |
58 | pub msg_perm: ::ipc_perm, | |
59 | __glibc_reserved1: ::c_uint, | |
60 | pub msg_stime: ::time_t, | |
61 | __glibc_reserved2: ::c_uint, | |
62 | pub msg_rtime: ::time_t, | |
63 | __glibc_reserved3: ::c_uint, | |
64 | pub msg_ctime: ::time_t, | |
65 | __msg_cbytes: ::c_ulong, | |
66 | pub msg_qnum: ::msgqnum_t, | |
67 | pub msg_qbytes: ::msglen_t, | |
68 | pub msg_lspid: ::pid_t, | |
69 | pub msg_lrpid: ::pid_t, | |
70 | __glibc_reserved4: ::c_ulong, | |
71 | __glibc_reserved5: ::c_ulong, | |
72 | } | |
73 | } | |
74 | ||
75 | pub const O_DIRECT: ::c_int = 0x20000; | |
76 | pub const O_DIRECTORY: ::c_int = 0x4000; | |
77 | pub const O_NOFOLLOW: ::c_int = 0x8000; | |
78 | ||
79 | pub const MAP_LOCKED: ::c_int = 0x00080; | |
80 | pub const MAP_NORESERVE: ::c_int = 0x00040; | |
81 | ||
82 | pub const EDEADLOCK: ::c_int = 58; | |
83 | ||
8bb4bdeb XL |
84 | pub const SO_SNDBUFFORCE: ::c_int = 32; |
85 | pub const SO_RCVBUFFORCE: ::c_int = 33; | |
86 | pub const SO_NO_CHECK: ::c_int = 11; | |
476ff2be SL |
87 | pub const SO_RCVLOWAT: ::c_int = 16; |
88 | pub const SO_SNDLOWAT: ::c_int = 17; | |
89 | pub const SO_RCVTIMEO: ::c_int = 18; | |
90 | pub const SO_SNDTIMEO: ::c_int = 19; | |
8bb4bdeb XL |
91 | pub const SO_PASSCRED: ::c_int = 20; |
92 | pub const SO_PEERCRED: ::c_int = 21; | |
476ff2be SL |
93 | |
94 | pub const FIOCLEX: ::c_ulong = 0x20006601; | |
95 | pub const FIONBIO: ::c_ulong = 0x8004667e; | |
96 | ||
97 | pub const SYS_gettid: ::c_long = 207; | |
98 | pub const SYS_perf_event_open: ::c_long = 319; | |
99 | ||
100 | pub const MCL_CURRENT: ::c_int = 0x2000; | |
101 | pub const MCL_FUTURE: ::c_int = 0x4000; | |
102 | ||
103 | pub const SIGSTKSZ: ::size_t = 0x4000; | |
7cac9316 | 104 | pub const MINSIGSTKSZ: ::size_t = 4096; |
476ff2be SL |
105 | pub const CBAUD: ::tcflag_t = 0xff; |
106 | pub const TAB1: ::c_int = 0x400; | |
107 | pub const TAB2: ::c_int = 0x800; | |
108 | pub const TAB3: ::c_int = 0xc00; | |
109 | pub const CR1: ::c_int = 0x1000; | |
110 | pub const CR2: ::c_int = 0x2000; | |
111 | pub const CR3: ::c_int = 0x3000; | |
112 | pub const FF1: ::c_int = 0x4000; | |
113 | pub const BS1: ::c_int = 0x8000; | |
114 | pub const VT1: ::c_int = 0x10000; | |
115 | pub const VWERASE: usize = 0xa; | |
116 | pub const VREPRINT: usize = 0xb; | |
117 | pub const VSUSP: usize = 0xc; | |
118 | pub const VSTART: usize = 0xd; | |
119 | pub const VSTOP: usize = 0xe; | |
120 | pub const VDISCARD: usize = 0x10; | |
121 | pub const VTIME: usize = 0x7; | |
122 | pub const IXON: ::tcflag_t = 0x200; | |
123 | pub const IXOFF: ::tcflag_t = 0x400; | |
124 | pub const ONLCR: ::tcflag_t = 0x2; | |
125 | pub const CSIZE: ::tcflag_t = 0x300; | |
126 | pub const CS6: ::tcflag_t = 0x100; | |
127 | pub const CS7: ::tcflag_t = 0x200; | |
128 | pub const CS8: ::tcflag_t = 0x300; | |
129 | pub const CSTOPB: ::tcflag_t = 0x400; | |
130 | pub const CREAD: ::tcflag_t = 0x800; | |
131 | pub const PARENB: ::tcflag_t = 0x1000; | |
132 | pub const PARODD: ::tcflag_t = 0x2000; | |
133 | pub const HUPCL: ::tcflag_t = 0x4000; | |
134 | pub const CLOCAL: ::tcflag_t = 0x8000; | |
135 | pub const ECHOKE: ::tcflag_t = 0x1; | |
136 | pub const ECHOE: ::tcflag_t = 0x2; | |
137 | pub const ECHOK: ::tcflag_t = 0x4; | |
138 | pub const ECHONL: ::tcflag_t = 0x10; | |
139 | pub const ECHOPRT: ::tcflag_t = 0x20; | |
140 | pub const ECHOCTL: ::tcflag_t = 0x40; | |
141 | pub const ISIG: ::tcflag_t = 0x80; | |
142 | pub const ICANON: ::tcflag_t = 0x100; | |
143 | pub const PENDIN: ::tcflag_t = 0x20000000; | |
144 | pub const NOFLSH: ::tcflag_t = 0x80000000; | |
041b39d2 XL |
145 | pub const VSWTC: usize = 9; |
146 | pub const OLCUC: ::tcflag_t = 0o000004; | |
147 | pub const NLDLY: ::tcflag_t = 0o001400; | |
148 | pub const CRDLY: ::tcflag_t = 0o030000; | |
149 | pub const TABDLY: ::tcflag_t = 0o006000; | |
150 | pub const BSDLY: ::tcflag_t = 0o100000; | |
151 | pub const FFDLY: ::tcflag_t = 0o040000; | |
152 | pub const VTDLY: ::tcflag_t = 0o200000; | |
153 | pub const XTABS: ::tcflag_t = 0o006000; | |
476ff2be | 154 | |
8bb4bdeb XL |
155 | pub const B0: ::speed_t = 0o000000; |
156 | pub const B50: ::speed_t = 0o000001; | |
157 | pub const B75: ::speed_t = 0o000002; | |
158 | pub const B110: ::speed_t = 0o000003; | |
159 | pub const B134: ::speed_t = 0o000004; | |
160 | pub const B150: ::speed_t = 0o000005; | |
161 | pub const B200: ::speed_t = 0o000006; | |
162 | pub const B300: ::speed_t = 0o000007; | |
163 | pub const B600: ::speed_t = 0o000010; | |
164 | pub const B1200: ::speed_t = 0o000011; | |
165 | pub const B1800: ::speed_t = 0o000012; | |
166 | pub const B2400: ::speed_t = 0o000013; | |
167 | pub const B4800: ::speed_t = 0o000014; | |
168 | pub const B9600: ::speed_t = 0o000015; | |
169 | pub const B19200: ::speed_t = 0o000016; | |
170 | pub const B38400: ::speed_t = 0o000017; | |
171 | pub const EXTA: ::speed_t = B19200; | |
172 | pub const EXTB: ::speed_t = B38400; | |
173 | pub const CBAUDEX: ::speed_t = 0o000020; | |
174 | pub const B57600: ::speed_t = 0o0020; | |
175 | pub const B115200: ::speed_t = 0o0021; | |
176 | pub const B230400: ::speed_t = 0o0022; | |
177 | pub const B460800: ::speed_t = 0o0023; | |
178 | pub const B500000: ::speed_t = 0o0024; | |
179 | pub const B576000: ::speed_t = 0o0025; | |
180 | pub const B921600: ::speed_t = 0o0026; | |
181 | pub const B1000000: ::speed_t = 0o0027; | |
182 | pub const B1152000: ::speed_t = 0o0030; | |
183 | pub const B1500000: ::speed_t = 0o0031; | |
184 | pub const B2000000: ::speed_t = 0o0032; | |
185 | pub const B2500000: ::speed_t = 0o0033; | |
186 | pub const B3000000: ::speed_t = 0o0034; | |
187 | pub const B3500000: ::speed_t = 0o0035; | |
188 | pub const B4000000: ::speed_t = 0o0036; | |
189 | ||
476ff2be SL |
190 | pub const VEOL: usize = 6; |
191 | pub const VEOL2: usize = 8; | |
192 | pub const VMIN: usize = 5; | |
193 | pub const IEXTEN: ::tcflag_t = 0x400; | |
194 | pub const TOSTOP: ::tcflag_t = 0x400000; | |
195 | pub const FLUSHO: ::tcflag_t = 0x800000; | |
196 | pub const EXTPROC: ::tcflag_t = 0x10000000; | |
197 | pub const TCGETS: ::c_ulong = 0x403c7413; | |
198 | pub const TCSETS: ::c_ulong = 0x803c7414; | |
199 | pub const TCSETSW: ::c_ulong = 0x803c7415; | |
200 | pub const TCSETSF: ::c_ulong = 0x803c7416; | |
201 | pub const TCGETA: ::c_ulong = 0x40147417; | |
202 | pub const TCSETA: ::c_ulong = 0x80147418; | |
203 | pub const TCSETAW: ::c_ulong = 0x80147419; | |
204 | pub const TCSETAF: ::c_ulong = 0x8014741c; | |
205 | pub const TCSBRK: ::c_ulong = 0x2000741d; | |
206 | pub const TCXONC: ::c_ulong = 0x2000741e; | |
207 | pub const TCFLSH: ::c_ulong = 0x2000741f; | |
208 | pub const TIOCINQ: ::c_ulong = 0x4004667f; | |
209 | pub const TIOCGPGRP: ::c_ulong = 0x40047477; | |
210 | pub const TIOCSPGRP: ::c_ulong = 0x80047476; | |
211 | pub const TIOCOUTQ: ::c_ulong = 0x40047473; | |
212 | pub const TIOCGWINSZ: ::c_ulong = 0x40087468; | |
213 | pub const TIOCSWINSZ: ::c_ulong = 0x80087467; | |
214 | pub const FIONREAD: ::c_ulong = 0x4004667f; |