Skip to content

Commit

Permalink
Add PTRACE_* and RLIMIT_* constants for RISC-V 64-bit GNU/Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
msizanoen1 committed Apr 25, 2020
1 parent af181f0 commit b1856e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs
Expand Up @@ -208,6 +208,11 @@ pub const TIOCGSOFTCAR: ::c_ulong = 21529;
pub const TIOCSSOFTCAR: ::c_ulong = 21530;
pub const TIOCGRS485: ::c_int = 21550;
pub const TIOCSRS485: ::c_int = 21551;
pub const RLIMIT_RSS: ::__rlimit_resource_t = 5;
pub const RLIMIT_AS: ::__rlimit_resource_t = 9;
pub const RLIMIT_MEMLOCK: ::__rlimit_resource_t = 8;
pub const RLIMIT_NOFILE: ::__rlimit_resource_t = 7;
pub const RLIMIT_NPROC: ::__rlimit_resource_t = 6;
pub const O_APPEND: ::c_int = 1024;
pub const O_CREAT: ::c_int = 64;
pub const O_EXCL: ::c_int = 128;
Expand Down Expand Up @@ -467,6 +472,13 @@ pub const EREMOTEIO: ::c_int = 121;
pub const FIOCLEX: ::c_ulong = 21585;
pub const FIONCLEX: ::c_ulong = 21584;
pub const FIONBIO: ::c_ulong = 21537;
pub const PTRACE_GETFPREGS: ::c_uint = 14;
pub const PTRACE_SETFPREGS: ::c_uint = 15;
pub const PTRACE_GETFPXREGS: ::c_uint = 18;
pub const PTRACE_SETFPXREGS: ::c_uint = 19;
pub const PTRACE_GETREGS: ::c_uint = 12;
pub const PTRACE_SETREGS: ::c_uint = 13;
pub const PTRACE_PEEKSIGINFO_SHARED: ::c_uint = 1;
pub const MCL_CURRENT: ::c_int = 1;
pub const MCL_FUTURE: ::c_int = 2;
pub const SIGSTKSZ: ::size_t = 8192;
Expand Down

0 comments on commit b1856e2

Please sign in to comment.