Skip to content

Commit d5f6f7a

Browse files
committed
Auto merge of #2668 - CoelacanthusHex:feat/riscv64/const/PTRACE, r=Amanieu
feat(riscv64,gnu): add some const PTRACE_* * PTRACE_GETFPREGS * PTRACE_SETFPREGS * PTRACE_GETFPXREGS * PTRACE_SETFPXREGS * PTRACE_GETREGS * PTRACE_SETREGS get from sys/ptrace.h of riscv64 glibc Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2 parents ebc145f + a08edb4 commit d5f6f7a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
PTRACE_GETFPREGS
2+
PTRACE_SETFPREGS
3+
PTRACE_GETFPXREGS
4+
PTRACE_SETFPXREGS
5+
PTRACE_GETREGS
6+
PTRACE_SETREGS

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,12 @@ pub const ENOTNAM: ::c_int = 118;
393393
pub const ENAVAIL: ::c_int = 119;
394394
pub const EISNAM: ::c_int = 120;
395395
pub const EREMOTEIO: ::c_int = 121;
396+
pub const PTRACE_GETFPREGS: ::c_uint = 14;
397+
pub const PTRACE_SETFPREGS: ::c_uint = 15;
398+
pub const PTRACE_GETFPXREGS: ::c_uint = 18;
399+
pub const PTRACE_SETFPXREGS: ::c_uint = 19;
400+
pub const PTRACE_GETREGS: ::c_uint = 12;
401+
pub const PTRACE_SETREGS: ::c_uint = 13;
396402
pub const MCL_CURRENT: ::c_int = 1;
397403
pub const MCL_FUTURE: ::c_int = 2;
398404
pub const SIGSTKSZ: ::size_t = 8192;

0 commit comments

Comments
 (0)