Skip to content

Commit 4d0cd9a

Browse files
committed
Auto merge of #2143 - coolreader18:rlim-nlimits-linux, r=JohnTitor
Add RLIM_NLIMITS constant as alias of RLIMIT_NLIMITS on linux_like At least on my machine (amd64 Arch) both `RLIMIT_NLIMITS` and `RLIM_NLIMITS` are defined as the same.
2 parents b80b32b + 4b60b76 commit 4d0cd9a

File tree

11 files changed

+11
-0
lines changed

11 files changed

+11
-0
lines changed

src/fuchsia/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2717,6 +2717,7 @@ pub const POSIX_MADV_DONTNEED: ::c_int = 4;
27172717
pub const RLIM_INFINITY: ::rlim_t = !0;
27182718
pub const RLIMIT_RTTIME: ::c_int = 15;
27192719
pub const RLIMIT_NLIMITS: ::c_int = 16;
2720+
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
27202721

27212722
pub const MAP_ANONYMOUS: ::c_int = MAP_ANON;
27222723

src/unix/linux_like/emscripten/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,7 @@ pub const POSIX_MADV_DONTNEED: ::c_int = 0;
13371337

13381338
pub const RLIM_INFINITY: ::rlim_t = !0;
13391339
pub const RLIMIT_NLIMITS: ::c_int = 15;
1340+
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
13401341

13411342
pub const MAP_ANONYMOUS: ::c_int = MAP_ANON;
13421343

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ pub const RLIMIT_NICE: ::__rlimit_resource_t = 13;
541541
pub const RLIMIT_RTPRIO: ::__rlimit_resource_t = 14;
542542
pub const RLIMIT_RTTIME: ::__rlimit_resource_t = 15;
543543
pub const RLIMIT_NLIMITS: ::__rlimit_resource_t = 16;
544+
pub const RLIM_NLIMITS: ::__rlimit_resource_t = RLIMIT_NLIMITS;
544545

545546
pub const PRIO_PROCESS: ::__priority_which_t = 0;
546547
pub const PRIO_PGRP: ::__priority_which_t = 1;

src/unix/linux_like/linux/musl/b32/arm/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ pub const RLIMIT_AS: ::c_int = 9;
171171
pub const RLIMIT_NPROC: ::c_int = 6;
172172
pub const RLIMIT_MEMLOCK: ::c_int = 8;
173173
pub const RLIMIT_NLIMITS: ::c_int = 15;
174+
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
174175

175176
pub const MADV_SOFT_OFFLINE: ::c_int = 101;
176177
pub const MCL_CURRENT: ::c_int = 0x0001;

src/unix/linux_like/linux/musl/b32/mips/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ pub const RLIMIT_AS: ::c_int = 6;
182182
pub const RLIMIT_NPROC: ::c_int = 8;
183183
pub const RLIMIT_MEMLOCK: ::c_int = 9;
184184
pub const RLIMIT_NLIMITS: ::c_int = 15;
185+
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
185186

186187
pub const MCL_CURRENT: ::c_int = 0x0001;
187188
pub const MCL_FUTURE: ::c_int = 0x0002;

src/unix/linux_like/linux/musl/b32/powerpc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ pub const RLIMIT_AS: ::c_int = 9;
175175
pub const RLIMIT_NPROC: ::c_int = 6;
176176
pub const RLIMIT_MEMLOCK: ::c_int = 8;
177177
pub const RLIMIT_NLIMITS: ::c_int = 15;
178+
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
178179

179180
pub const MCL_CURRENT: ::c_int = 0x2000;
180181
pub const MCL_FUTURE: ::c_int = 0x4000;

src/unix/linux_like/linux/musl/b32/x86/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ pub const RLIMIT_AS: ::c_int = 9;
231231
pub const RLIMIT_NPROC: ::c_int = 6;
232232
pub const RLIMIT_MEMLOCK: ::c_int = 8;
233233
pub const RLIMIT_NLIMITS: ::c_int = 15;
234+
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
234235

235236
pub const MADV_SOFT_OFFLINE: ::c_int = 101;
236237
pub const MCL_CURRENT: ::c_int = 0x0001;

src/unix/linux_like/linux/musl/b64/aarch64/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ pub const SYS_epoll_pwait2: ::c_long = 441;
516516
pub const SYS_mount_setattr: ::c_long = 442;
517517

518518
pub const RLIMIT_NLIMITS: ::c_int = 15;
519+
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
519520
pub const TIOCINQ: ::c_int = ::FIONREAD;
520521
pub const MCL_CURRENT: ::c_int = 0x0001;
521522
pub const MCL_FUTURE: ::c_int = 0x0002;

src/unix/linux_like/linux/musl/b64/powerpc64.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ pub const TIOCGRS485: ::c_int = 0x542E;
659659
pub const TIOCSRS485: ::c_int = 0x542F;
660660

661661
pub const RLIMIT_NLIMITS: ::c_int = 15;
662+
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
662663
pub const TIOCINQ: ::c_int = ::FIONREAD;
663664
pub const MCL_CURRENT: ::c_int = 0x2000;
664665
pub const MCL_FUTURE: ::c_int = 0x4000;

src/unix/linux_like/linux/musl/b64/x86_64/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,7 @@ pub const MAP_HUGETLB: ::c_int = 0x040000;
821821
pub const MAP_SYNC: ::c_int = 0x080000;
822822

823823
pub const RLIMIT_NLIMITS: ::c_int = 15;
824+
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
824825
pub const TIOCINQ: ::c_int = ::FIONREAD;
825826
pub const MCL_CURRENT: ::c_int = 0x0001;
826827
pub const MCL_FUTURE: ::c_int = 0x0002;

src/unix/linux_like/linux/uclibc/mips/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ pub const RLIMIT_RSS: ::c_int = 7;
4949
pub const RLIMIT_NPROC: ::c_int = 8;
5050
pub const RLIMIT_MEMLOCK: ::c_int = 9;
5151
pub const RLIMIT_NLIMITS: ::c_int = 15;
52+
pub const RLIM_NLIMITS: ::c_int = RLIMIT_NLIMITS;
5253

5354
pub const O_APPEND: ::c_int = 8;
5455
pub const O_CREAT: ::c_int = 256;

0 commit comments

Comments
 (0)