Skip to content

Commit f21d91f

Browse files
committed
Fix value of RLIM_INFINITY on mips32
1 parent fc7c408 commit f21d91f

File tree

6 files changed

+5
-2
lines changed

6 files changed

+5
-2
lines changed

src/unix/linux_like/linux/gnu/b32/arm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ s! {
150150
}
151151
}
152152

153+
pub const RLIM_INFINITY: ::rlim_t = !0;
153154
pub const VEOF: usize = 4;
154155
pub const RTLD_DEEPBIND: ::c_int = 0x8;
155156
pub const RTLD_GLOBAL: ::c_int = 0x100;

src/unix/linux_like/linux/gnu/b32/mips.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ pub const O_DIRECT: ::c_int = 0x8000;
516516
pub const O_DIRECTORY: ::c_int = 0x10000;
517517
pub const O_NOFOLLOW: ::c_int = 0x20000;
518518

519+
pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff;
519520
pub const RLIMIT_NOFILE: ::__rlimit_resource_t = 5;
520521
pub const RLIMIT_AS: ::__rlimit_resource_t = 6;
521522
pub const RLIMIT_RSS: ::__rlimit_resource_t = 7;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ s! {
139139
}
140140
}
141141

142+
pub const RLIM_INFINITY: ::rlim_t = !0;
142143
pub const VEOF: usize = 4;
143144
pub const RTLD_DEEPBIND: ::c_int = 0x8;
144145
pub const RTLD_GLOBAL: ::c_int = 0x100;

src/unix/linux_like/linux/gnu/b32/x86.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ cfg_if! {
351351
}
352352
}
353353

354+
pub const RLIM_INFINITY: ::rlim_t = !0;
354355
pub const VEOF: usize = 4;
355356
pub const RTLD_DEEPBIND: ::c_int = 0x8;
356357
pub const RTLD_GLOBAL: ::c_int = 0x100;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ s! {
5454

5555
}
5656

57+
pub const RLIM_INFINITY: ::rlim_t = !0;
5758
pub const __SIZEOF_PTHREAD_RWLOCKATTR_T: usize = 8;
5859

5960
pub const O_LARGEFILE: ::c_int = 0;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,6 @@ pub const USER_PROCESS: ::c_short = 7;
375375
pub const DEAD_PROCESS: ::c_short = 8;
376376
pub const ACCOUNTING: ::c_short = 9;
377377

378-
pub const RLIM_INFINITY: ::rlim_t = !0;
379-
380378
pub const SOCK_NONBLOCK: ::c_int = O_NONBLOCK;
381379

382380
pub const SOL_RXRPC: ::c_int = 272;

0 commit comments

Comments
 (0)