summaryrefslogtreecommitdiff
path: root/src/unix/bsd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-22 08:25:08 +0000
committerbors <bors@rust-lang.org>2023-01-22 08:25:08 +0000
commit3911bfa13a8dfdb683ef56649413d29275681d41 (patch)
treefefd7447fcb37854663326e99a409ea2b04801f0 /src/unix/bsd
parentc1ce30ebc9fdc1aaa4c53a769ddf24ed37d08c3e (diff)
parent3350f367074c4adc05c74ecdfd3abccd255ab486 (diff)
downloadrust-libc-3911bfa13a8dfdb683ef56649413d29275681d41.tar.gz
Auto merge of #3073 - devnexen:fbsd14_ptrace_upd2, r=JohnTitor
freebsd 14 add ptrace_sc_remote.
Diffstat (limited to 'src/unix/bsd')
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs
index 2a4fbbf05f..0245cdb643 100644
--- a/src/unix/bsd/freebsdlike/freebsd/mod.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs
@@ -355,6 +355,13 @@ s! {
pub pc_limit: ::off_t,
}
+ pub struct ptrace_sc_remote {
+ pub pscr_ret: ptrace_sc_ret,
+ pub pscr_syscall: ::c_uint,
+ pub pscr_nargs: ::c_uint,
+ pub pscr_args: *mut ::register_t,
+ }
+
pub struct cpuset_t {
#[cfg(target_pointer_width = "64")]
__bits: [::c_long; 4],
@@ -2356,6 +2363,7 @@ pub const PT_VM_TIMESTAMP: ::c_int = 40;
pub const PT_VM_ENTRY: ::c_int = 41;
pub const PT_GETREGSET: ::c_int = 42;
pub const PT_SETREGSET: ::c_int = 43;
+pub const PT_SC_REMOTE: ::c_int = 44;
pub const PT_FIRSTMACH: ::c_int = 64;
pub const PTRACE_EXEC: ::c_int = 0x0001;