File tree 3 files changed +16
-0
lines changed
src/unix/bsd/freebsdlike/freebsd
3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -2034,6 +2034,9 @@ fn test_freebsd(target: &str) {
2034
2034
true
2035
2035
}
2036
2036
2037
+ // Added in FreeBSD 12.1
2038
+ "PT_GET_SC_RET" | "PT_GET_SC_ARGS" if Some ( 11 ) == freebsd_ver => true ,
2039
+
2037
2040
// Added in in FreeBSD 13.0 (r367776 and r367287)
2038
2041
"SCM_CREDS2" | "LOCAL_CREDS_PERSISTENT" if Some ( 13 ) > freebsd_ver => true ,
2039
2042
@@ -2065,6 +2068,9 @@ fn test_freebsd(target: &str) {
2065
2068
// `procstat` is a private struct
2066
2069
"procstat" => true ,
2067
2070
2071
+ // `ptrace_sc_ret` is not available in FreeBSD 11
2072
+ "ptrace_sc_ret" if Some ( 11 ) == freebsd_ver => true ,
2073
+
2068
2074
_ => false ,
2069
2075
}
2070
2076
} ) ;
Original file line number Diff line number Diff line change @@ -916,6 +916,8 @@ PT_GETLWPLIST
916
916
PT_GETNUMLWPS
917
917
PT_GETREGS
918
918
PT_GET_EVENT_MASK
919
+ PT_GET_SC_ARGS
920
+ PT_GET_SC_RET
919
921
PT_IO
920
922
PT_KILL
921
923
PT_LWPINFO
@@ -1691,6 +1693,7 @@ pthread_spinlock_t
1691
1693
ptrace
1692
1694
ptrace_io_desc
1693
1695
ptrace_lwpinfo
1696
+ ptrace_sc_ret
1694
1697
ptrace_vm_entry
1695
1698
pututxline
1696
1699
pwritev
Original file line number Diff line number Diff line change @@ -153,6 +153,11 @@ s! {
153
153
pub pl_syscall_narg: :: c_uint,
154
154
}
155
155
156
+ pub struct ptrace_sc_ret {
157
+ pub sr_retval: [ :: register_t; 2 ] ,
158
+ pub sr_error: :: c_int,
159
+ }
160
+
156
161
pub struct cpuset_t {
157
162
#[ cfg( target_pointer_width = "64" ) ]
158
163
__bits: [ :: c_long; 4 ] ,
@@ -1139,6 +1144,8 @@ pub const PT_FOLLOW_FORK: ::c_int = 23;
1139
1144
pub const PT_LWP_EVENTS : :: c_int = 24 ;
1140
1145
pub const PT_GET_EVENT_MASK : :: c_int = 25 ;
1141
1146
pub const PT_SET_EVENT_MASK : :: c_int = 26 ;
1147
+ pub const PT_GET_SC_ARGS : :: c_int = 27 ;
1148
+ pub const PT_GET_SC_RET : :: c_int = 28 ;
1142
1149
pub const PT_GETREGS : :: c_int = 33 ;
1143
1150
pub const PT_SETREGS : :: c_int = 34 ;
1144
1151
pub const PT_GETFPREGS : :: c_int = 35 ;
You can’t perform that action at this time.
0 commit comments