Skip to content

Commit 86b1213

Browse files
committed
Updated types of PTRACE requests for musl to be consistent.
For some reason the type of ptrace request constants in musl change for the register based requests. As they are used in the same way and this doesn't mimic musl this has been changed for consistency and ease of use.
1 parent 2f4ca87 commit 86b1213

File tree

1 file changed

+6
-7
lines changed
  • src/unix/notbsd/linux/musl

1 file changed

+6
-7
lines changed

src/unix/notbsd/linux/musl/mod.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,14 @@ pub const PTRACE_POKEUSER: ::c_int = 6;
171171
pub const PTRACE_CONT: ::c_int = 7;
172172
pub const PTRACE_KILL: ::c_int = 8;
173173
pub const PTRACE_SINGLESTEP: ::c_int = 9;
174+
pub const PTRACE_GETREGS: ::c_int = 12;
175+
pub const PTRACE_SETREGS: ::c_int = 13;
176+
pub const PTRACE_GETFPREGS: ::c_int = 14;
177+
pub const PTRACE_SETFPREGS: ::c_int = 15;
174178
pub const PTRACE_ATTACH: ::c_int = 16;
175179
pub const PTRACE_DETACH: ::c_int = 17;
180+
pub const PTRACE_GETFPXREGS: ::c_int = 18;
181+
pub const PTRACE_SETFPXREGS: ::c_int = 19;
176182
pub const PTRACE_SYSCALL: ::c_int = 24;
177183
pub const PTRACE_SETOPTIONS: ::c_int = 0x4200;
178184
pub const PTRACE_GETEVENTMSG: ::c_int = 0x4201;
@@ -187,13 +193,6 @@ pub const PTRACE_PEEKSIGINFO: ::c_int = 0x4209;
187193

188194
pub const EPOLLWAKEUP: ::c_int = 0x20000000;
189195

190-
pub const PTRACE_GETFPREGS: ::c_uint = 14;
191-
pub const PTRACE_SETFPREGS: ::c_uint = 15;
192-
pub const PTRACE_GETFPXREGS: ::c_uint = 18;
193-
pub const PTRACE_SETFPXREGS: ::c_uint = 19;
194-
pub const PTRACE_GETREGS: ::c_uint = 12;
195-
pub const PTRACE_SETREGS: ::c_uint = 13;
196-
197196
pub const EFD_NONBLOCK: ::c_int = ::O_NONBLOCK;
198197

199198
pub const SFD_NONBLOCK: ::c_int = ::O_NONBLOCK;

0 commit comments

Comments
 (0)