File tree Expand file tree Collapse file tree 8 files changed +66
-13
lines changed
Expand file tree Collapse file tree 8 files changed +66
-13
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " libc"
3- version = " 0.2.56 "
3+ version = " 0.2.57 "
44authors = [" The Rust Project Developers" ]
55license = " MIT OR Apache-2.0"
66readme = " README.md"
Original file line number Diff line number Diff line change @@ -1102,11 +1102,21 @@ pub const F_GETOWN: ::c_int = 9;
11021102pub const F_SETOWN : :: c_int = 8 ;
11031103pub const F_SETLK : :: c_int = 6 ;
11041104pub const F_SETLKW : :: c_int = 7 ;
1105-
11061105pub const F_RDLCK : :: c_int = 0 ;
11071106pub const F_WRLCK : :: c_int = 1 ;
11081107pub const F_UNLCK : :: c_int = 2 ;
11091108
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+
11101120pub const TCGETS : :: c_int = 0x5401 ;
11111121pub const TCSETS : :: c_int = 0x5402 ;
11121122pub 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;
14101410pub const RLIMIT_AS : :: c_int = 9 ;
14111411pub const RLIMIT_NPROC : :: c_int = 6 ;
14121412pub 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 ;
14131423
14141424pub const O_APPEND : :: c_int = 1024 ;
14151425pub 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;
894894pub const NFT_NG_INCREMENTAL : :: c_int = 0 ;
895895pub const NFT_NG_RANDOM : :: c_int = 1 ;
896896
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+
897908#[ doc( hidden) ]
898909#[ deprecated(
899910 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;
331331pub const SO_PEEK_OFF : :: c_int = 42 ;
332332pub const SO_BUSY_POLL : :: c_int = 46 ;
333333
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+
334345extern {
335346 pub fn sendmmsg ( sockfd : :: c_int , msgvec : * mut :: mmsghdr , vlen : :: c_uint ,
336347 flags : :: c_uint ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -340,6 +340,17 @@ cfg_if! {
340340 }
341341}
342342
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+
343354pub const MADV_SOFT_OFFLINE : :: c_int = 101 ;
344355pub const MS_RMT_MASK : :: c_ulong = 0x02800051 ;
345356
Original file line number Diff line number Diff line change @@ -992,6 +992,17 @@ pub const POLLWRBAND: ::c_short = 0x200;
992992pub const IXON : :: tcflag_t = 0o002000 ;
993993pub const IXOFF : :: tcflag_t = 0o010000 ;
994994
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+
9951006pub const SYS_exit : :: c_long = 1 ;
9961007pub const SYS_fork : :: c_long = 2 ;
9971008pub const SYS_read : :: c_long = 3 ;
Original file line number Diff line number Diff line change @@ -457,17 +457,6 @@ pub const CLOCK_BOOTTIME_ALARM: ::clockid_t = 9;
457457// pub const CLOCK_TAI: ::clockid_t = 11;
458458pub const TIMER_ABSTIME : :: c_int = 1 ;
459459
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-
471460pub const RUSAGE_SELF : :: c_int = 0 ;
472461
473462pub const O_RDONLY : :: c_int = 0 ;
You can’t perform that action at this time.
0 commit comments