Skip to content

Commit 938ad95

Browse files
committed
Add RLIMIT_* constants for RISC-V 64-bit GNU/Linux
1 parent af181f0 commit 938ad95

File tree

1 file changed

+5
-0
lines changed
  • src/unix/linux_like/linux/gnu/b64/riscv64

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@ pub const TIOCGSOFTCAR: ::c_ulong = 21529;
208208
pub const TIOCSSOFTCAR: ::c_ulong = 21530;
209209
pub const TIOCGRS485: ::c_int = 21550;
210210
pub const TIOCSRS485: ::c_int = 21551;
211+
pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
212+
pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
213+
pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
214+
pub const RLIMIT_NOFILE: ::__rlimit_resource_t = 7;
215+
pub const RLIMIT_NPROC: ::__rlimit_resource_t = 6;
211216
pub const O_APPEND: ::c_int = 1024;
212217
pub const O_CREAT: ::c_int = 64;
213218
pub const O_EXCL: ::c_int = 128;

0 commit comments

Comments
 (0)