File tree Expand file tree Collapse file tree 7 files changed +66
-11
lines changed Expand file tree Collapse file tree 7 files changed +66
-11
lines changed Original file line number Diff line number Diff line change @@ -1102,11 +1102,21 @@ pub const F_GETOWN: ::c_int = 9;
1102
1102
pub const F_SETOWN : :: c_int = 8 ;
1103
1103
pub const F_SETLK : :: c_int = 6 ;
1104
1104
pub const F_SETLKW : :: c_int = 7 ;
1105
-
1106
1105
pub const F_RDLCK : :: c_int = 0 ;
1107
1106
pub const F_WRLCK : :: c_int = 1 ;
1108
1107
pub const F_UNLCK : :: c_int = 2 ;
1109
1108
1109
+ pub const RLIMIT_CPU : :: c_int = 0 ;
1110
+ pub const RLIMIT_FSIZE : :: c_int = 1 ;
1111
+ pub const RLIMIT_DATA : :: c_int = 2 ;
1112
+ pub const RLIMIT_STACK : :: c_int = 3 ;
1113
+ pub const RLIMIT_CORE : :: c_int = 4 ;
1114
+ pub const RLIMIT_LOCKS : :: c_int = 10 ;
1115
+ pub const RLIMIT_SIGPENDING : :: c_int = 11 ;
1116
+ pub const RLIMIT_MSGQUEUE : :: c_int = 12 ;
1117
+ pub const RLIMIT_NICE : :: c_int = 13 ;
1118
+ pub const RLIMIT_RTPRIO : :: c_int = 14 ;
1119
+
1110
1120
pub const TCGETS : :: c_int = 0x5401 ;
1111
1121
pub const TCSETS : :: c_int = 0x5402 ;
1112
1122
pub const TCSETSW : :: c_int = 0x5403 ;
Original file line number Diff line number Diff line change @@ -1410,6 +1410,16 @@ pub const RLIMIT_NOFILE: ::c_int = 7;
1410
1410
pub const RLIMIT_AS : :: c_int = 9 ;
1411
1411
pub const RLIMIT_NPROC : :: c_int = 6 ;
1412
1412
pub const RLIMIT_MEMLOCK : :: c_int = 8 ;
1413
+ pub const RLIMIT_CPU : :: c_int = 0 ;
1414
+ pub const RLIMIT_FSIZE : :: c_int = 1 ;
1415
+ pub const RLIMIT_DATA : :: c_int = 2 ;
1416
+ pub const RLIMIT_STACK : :: c_int = 3 ;
1417
+ pub const RLIMIT_CORE : :: c_int = 4 ;
1418
+ pub const RLIMIT_LOCKS : :: c_int = 10 ;
1419
+ pub const RLIMIT_SIGPENDING : :: c_int = 11 ;
1420
+ pub const RLIMIT_MSGQUEUE : :: c_int = 12 ;
1421
+ pub const RLIMIT_NICE : :: c_int = 13 ;
1422
+ pub const RLIMIT_RTPRIO : :: c_int = 14 ;
1413
1423
1414
1424
pub const O_APPEND : :: c_int = 1024 ;
1415
1425
pub const O_CREAT : :: c_int = 64 ;
Original file line number Diff line number Diff line change @@ -894,6 +894,17 @@ pub const NFT_TRACETYPE_RULE: ::c_int = 3;
894
894
pub const NFT_NG_INCREMENTAL : :: c_int = 0 ;
895
895
pub const NFT_NG_RANDOM : :: c_int = 1 ;
896
896
897
+ pub const RLIMIT_CPU : :: __rlimit_resource_t = 0 ;
898
+ pub const RLIMIT_FSIZE : :: __rlimit_resource_t = 1 ;
899
+ pub const RLIMIT_DATA : :: __rlimit_resource_t = 2 ;
900
+ pub const RLIMIT_STACK : :: __rlimit_resource_t = 3 ;
901
+ pub const RLIMIT_CORE : :: __rlimit_resource_t = 4 ;
902
+ pub const RLIMIT_LOCKS : :: __rlimit_resource_t = 10 ;
903
+ pub const RLIMIT_SIGPENDING : :: __rlimit_resource_t = 11 ;
904
+ pub const RLIMIT_MSGQUEUE : :: __rlimit_resource_t = 12 ;
905
+ pub const RLIMIT_NICE : :: __rlimit_resource_t = 13 ;
906
+ pub const RLIMIT_RTPRIO : :: __rlimit_resource_t = 14 ;
907
+
897
908
#[ doc( hidden) ]
898
909
#[ deprecated(
899
910
since = "0.2.55" ,
Original file line number Diff line number Diff line change @@ -331,6 +331,17 @@ pub const SO_RXQ_OVFL: ::c_int = 40;
331
331
pub const SO_PEEK_OFF : :: c_int = 42 ;
332
332
pub const SO_BUSY_POLL : :: c_int = 46 ;
333
333
334
+ pub const RLIMIT_CPU : :: c_int = 0 ;
335
+ pub const RLIMIT_FSIZE : :: c_int = 1 ;
336
+ pub const RLIMIT_DATA : :: c_int = 2 ;
337
+ pub const RLIMIT_STACK : :: c_int = 3 ;
338
+ pub const RLIMIT_CORE : :: c_int = 4 ;
339
+ pub const RLIMIT_LOCKS : :: c_int = 10 ;
340
+ pub const RLIMIT_SIGPENDING : :: c_int = 11 ;
341
+ pub const RLIMIT_MSGQUEUE : :: c_int = 12 ;
342
+ pub const RLIMIT_NICE : :: c_int = 13 ;
343
+ pub const RLIMIT_RTPRIO : :: c_int = 14 ;
344
+
334
345
extern {
335
346
pub fn sendmmsg ( sockfd : :: c_int , msgvec : * mut :: mmsghdr , vlen : :: c_uint ,
336
347
flags : :: c_uint ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -340,6 +340,18 @@ cfg_if! {
340
340
}
341
341
}
342
342
343
+ pub const RLIMIT_CPU : :: __rlimit_resource_t = 0 ;
344
+ pub const RLIMIT_FSIZE : :: __rlimit_resource_t = 1 ;
345
+ pub const RLIMIT_DATA : :: __rlimit_resource_t = 2 ;
346
+ pub const RLIMIT_STACK : :: __rlimit_resource_t = 3 ;
347
+ pub const RLIMIT_CORE : :: __rlimit_resource_t = 4 ;
348
+ pub const RLIMIT_LOCKS : :: __rlimit_resource_t = 10 ;
349
+ pub const RLIMIT_SIGPENDING : :: __rlimit_resource_t = 11 ;
350
+ pub const RLIMIT_MSGQUEUE : :: __rlimit_resource_t = 12 ;
351
+ pub const RLIMIT_NICE : :: __rlimit_resource_t = 13 ;
352
+ pub const RLIMIT_RTPRIO : :: __rlimit_resource_t = 14 ;
353
+
354
+
343
355
pub const MADV_SOFT_OFFLINE : :: c_int = 101 ;
344
356
pub const MS_RMT_MASK : :: c_ulong = 0x02800051 ;
345
357
Original file line number Diff line number Diff line change @@ -992,6 +992,17 @@ pub const POLLWRBAND: ::c_short = 0x200;
992
992
pub const IXON : :: tcflag_t = 0o002000 ;
993
993
pub const IXOFF : :: tcflag_t = 0o010000 ;
994
994
995
+ pub const RLIMIT_CPU : :: __rlimit_resource_t = 0 ;
996
+ pub const RLIMIT_FSIZE : :: __rlimit_resource_t = 1 ;
997
+ pub const RLIMIT_DATA : :: __rlimit_resource_t = 2 ;
998
+ pub const RLIMIT_STACK : :: __rlimit_resource_t = 3 ;
999
+ pub const RLIMIT_CORE : :: __rlimit_resource_t = 4 ;
1000
+ pub const RLIMIT_LOCKS : :: __rlimit_resource_t = 10 ;
1001
+ pub const RLIMIT_SIGPENDING : :: __rlimit_resource_t = 11 ;
1002
+ pub const RLIMIT_MSGQUEUE : :: __rlimit_resource_t = 12 ;
1003
+ pub const RLIMIT_NICE : :: __rlimit_resource_t = 13 ;
1004
+ pub const RLIMIT_RTPRIO : :: __rlimit_resource_t = 14 ;
1005
+
995
1006
pub const SYS_exit : :: c_long = 1 ;
996
1007
pub const SYS_fork : :: c_long = 2 ;
997
1008
pub const SYS_read : :: c_long = 3 ;
Original file line number Diff line number Diff line change @@ -457,16 +457,6 @@ pub const CLOCK_BOOTTIME_ALARM: ::clockid_t = 9;
457
457
// pub const CLOCK_TAI: ::clockid_t = 11;
458
458
pub const TIMER_ABSTIME : :: c_int = 1 ;
459
459
460
- pub const RLIMIT_CPU : :: c_int = 0 ;
461
- pub const RLIMIT_FSIZE : :: c_int = 1 ;
462
- pub const RLIMIT_DATA : :: c_int = 2 ;
463
- pub const RLIMIT_STACK : :: c_int = 3 ;
464
- pub const RLIMIT_CORE : :: c_int = 4 ;
465
- pub const RLIMIT_LOCKS : :: c_int = 10 ;
466
- pub const RLIMIT_SIGPENDING : :: c_int = 11 ;
467
- pub const RLIMIT_MSGQUEUE : :: c_int = 12 ;
468
- pub const RLIMIT_NICE : :: c_int = 13 ;
469
- pub const RLIMIT_RTPRIO : :: c_int = 14 ;
470
460
471
461
pub const RUSAGE_SELF : :: c_int = 0 ;
472
462
You can’t perform that action at this time.
0 commit comments