54
54
pub ss_flags: :: c_int,
55
55
}
56
56
57
+ pub struct ipc_perm {
58
+ pub __ipc_perm_key: :: key_t,
59
+ pub uid: :: uid_t,
60
+ pub gid: :: gid_t,
61
+ pub cuid: :: uid_t,
62
+ pub cgid: :: gid_t,
63
+ pub mode: :: mode_t,
64
+ pub __seq: :: c_int,
65
+ __unused1: :: c_long,
66
+ __unused2: :: c_long
67
+ }
68
+
57
69
pub struct shmid_ds {
58
70
pub shm_perm: :: ipc_perm,
59
71
pub shm_segsz: :: size_t,
162
174
}
163
175
}
164
176
177
+ pub const SIGSTKSZ : :: size_t = 8192 ;
178
+ pub const MINSIGSTKSZ : :: size_t = 2048 ;
179
+
165
180
pub const O_DIRECT : :: c_int = 0o100000 ;
166
181
pub const O_DIRECTORY : :: c_int = 0o200000 ;
167
182
pub const O_NOFOLLOW : :: c_int = 0o400000 ;
@@ -176,6 +191,76 @@ pub const RLIMIT_NOFILE: ::c_int = 5;
176
191
pub const RLIMIT_AS : :: c_int = 6 ;
177
192
pub const RLIMIT_NPROC : :: c_int = 8 ;
178
193
pub const RLIMIT_MEMLOCK : :: c_int = 9 ;
194
+ pub const RLIMIT_NLIMITS : :: c_int = 16 ;
195
+
196
+ pub const MCL_CURRENT : :: c_int = 0x0001 ;
197
+ pub const MCL_FUTURE : :: c_int = 0x0002 ;
198
+ pub const CBAUD : :: tcflag_t = 0o0010017 ;
199
+ pub const TAB1 : :: c_int = 0x00000800 ;
200
+ pub const TAB2 : :: c_int = 0x00001000 ;
201
+ pub const TAB3 : :: c_int = 0x00001800 ;
202
+ pub const CR1 : :: c_int = 0x00000200 ;
203
+ pub const CR2 : :: c_int = 0x00000400 ;
204
+ pub const CR3 : :: c_int = 0x00000600 ;
205
+ pub const FF1 : :: c_int = 0x00008000 ;
206
+ pub const BS1 : :: c_int = 0x00002000 ;
207
+ pub const VT1 : :: c_int = 0x00004000 ;
208
+ pub const VWERASE : usize = 14 ;
209
+ pub const VREPRINT : usize = 12 ;
210
+ pub const VSUSP : usize = 10 ;
211
+ pub const VSTART : usize = 8 ;
212
+ pub const VSTOP : usize = 9 ;
213
+ pub const VDISCARD : usize = 13 ;
214
+ pub const VTIME : usize = 5 ;
215
+ pub const IXON : :: tcflag_t = 0x00000400 ;
216
+ pub const IXOFF : :: tcflag_t = 0x00001000 ;
217
+ pub const ONLCR : :: tcflag_t = 0x4 ;
218
+ pub const CSIZE : :: tcflag_t = 0x00000030 ;
219
+ pub const CS6 : :: tcflag_t = 0x00000010 ;
220
+ pub const CS7 : :: tcflag_t = 0x00000020 ;
221
+ pub const CS8 : :: tcflag_t = 0x00000030 ;
222
+ pub const CSTOPB : :: tcflag_t = 0x00000040 ;
223
+ pub const CREAD : :: tcflag_t = 0x00000080 ;
224
+ pub const PARENB : :: tcflag_t = 0x00000100 ;
225
+ pub const PARODD : :: tcflag_t = 0x00000200 ;
226
+ pub const HUPCL : :: tcflag_t = 0x00000400 ;
227
+ pub const CLOCAL : :: tcflag_t = 0x00000800 ;
228
+ pub const ECHOKE : :: tcflag_t = 0x00000800 ;
229
+ pub const ECHOE : :: tcflag_t = 0x00000010 ;
230
+ pub const ECHOK : :: tcflag_t = 0x00000020 ;
231
+ pub const ECHONL : :: tcflag_t = 0x00000040 ;
232
+ pub const ECHOPRT : :: tcflag_t = 0x00000400 ;
233
+ pub const ECHOCTL : :: tcflag_t = 0x00000200 ;
234
+ pub const ISIG : :: tcflag_t = 0x00000001 ;
235
+ pub const ICANON : :: tcflag_t = 0x00000002 ;
236
+ pub const PENDIN : :: tcflag_t = 0x00004000 ;
237
+ pub const NOFLSH : :: tcflag_t = 0x00000080 ;
238
+ pub const CIBAUD : :: tcflag_t = 0o02003600000 ;
239
+ pub const CBAUDEX : :: tcflag_t = 0o010000 ;
240
+ pub const VSWTC : usize = 7 ;
241
+ pub const OLCUC : :: tcflag_t = 0o000002 ;
242
+ pub const NLDLY : :: tcflag_t = 0o000400 ;
243
+ pub const CRDLY : :: tcflag_t = 0o003000 ;
244
+ pub const TABDLY : :: tcflag_t = 0o014000 ;
245
+ pub const BSDLY : :: tcflag_t = 0o020000 ;
246
+ pub const FFDLY : :: tcflag_t = 0o100000 ;
247
+ pub const VTDLY : :: tcflag_t = 0o040000 ;
248
+ pub const XTABS : :: tcflag_t = 0o014000 ;
249
+ pub const B57600 : :: speed_t = 0o010001 ;
250
+ pub const B115200 : :: speed_t = 0o010002 ;
251
+ pub const B230400 : :: speed_t = 0o010003 ;
252
+ pub const B460800 : :: speed_t = 0o010004 ;
253
+ pub const B500000 : :: speed_t = 0o010005 ;
254
+ pub const B576000 : :: speed_t = 0o010006 ;
255
+ pub const B921600 : :: speed_t = 0o010007 ;
256
+ pub const B1000000 : :: speed_t = 0o010010 ;
257
+ pub const B1152000 : :: speed_t = 0o010011 ;
258
+ pub const B1500000 : :: speed_t = 0o010012 ;
259
+ pub const B2000000 : :: speed_t = 0o010013 ;
260
+ pub const B2500000 : :: speed_t = 0o010014 ;
261
+ pub const B3000000 : :: speed_t = 0o010015 ;
262
+ pub const B3500000 : :: speed_t = 0o010016 ;
263
+ pub const B4000000 : :: speed_t = 0o010017 ;
179
264
180
265
pub const O_APPEND : :: c_int = 0o010 ;
181
266
pub const O_CREAT : :: c_int = 0o400 ;
0 commit comments