Skip to content

Commit 4c7c337

Browse files
committed
Auto merge of #2606 - devnexen:ptrace_get_syscall_info_linux_gnu, r=Amanieu
linux add ptrace_syscall_info ptrace query. closes #1920
2 parents fd48bbb + 1dd86b2 commit 4c7c337

File tree

11 files changed

+90
-1
lines changed

11 files changed

+90
-1
lines changed

libc-test/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3325,7 +3325,9 @@ fn test_linux(target: &str) {
33253325
// FIXME: It now takes mode_t since glibc 2.31 on some targets.
33263326
(struct_ == "ipc_perm" && field == "mode"
33273327
&& ((x86_64 || i686 || arm || riscv64) && gnu || x86_64_gnux32)
3328-
)
3328+
) ||
3329+
// the `u` field is in fact an anonymous union
3330+
(gnu && struct_ == "ptrace_syscall_info" && (field == "u" || field == "pad"))
33293331
});
33303332

33313333
cfg.skip_roundtrip(move |s| match s {

libc-test/semver/linux-gnu.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ PF_MPLS
350350
PF_XDP
351351
PROC_SUPER_MAGIC
352352
PTHREAD_MUTEX_ADAPTIVE_NP
353+
PTRACE_GET_SYSCALL_INFO
353354
QNX4_SUPER_MAGIC
354355
QNX6_SUPER_MAGIC
355356
RDTGROUP_SUPER_MAGIC
@@ -617,6 +618,7 @@ pthread_rwlockattr_getpshared
617618
pthread_rwlockattr_setkind_np
618619
pthread_setname_np
619620
ptrace_peeksiginfo_args
621+
ptrace_syscall_info
620622
pututxline
621623
pwritev2
622624
pwritev64

src/unix/linux_like/linux/gnu/b32/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pub type msgqnum_t = ::c_ulong;
1111
pub type msglen_t = ::c_ulong;
1212
pub type nlink_t = u32;
1313
pub type __u64 = ::c_ulonglong;
14+
pub type __s64 = ::c_longlong;
1415
pub type __fsword_t = i32;
1516
pub type fsblkcnt64_t = u64;
1617
pub type fsfilcnt64_t = u64;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub type nlink_t = u32;
66
pub type blksize_t = i32;
77
pub type suseconds_t = i64;
88
pub type __u64 = ::c_ulonglong;
9+
pub type __s64 = ::c_longlong;
910

1011
s! {
1112
pub struct sigaction {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub type nlink_t = u64;
88
pub type suseconds_t = i64;
99
pub type wchar_t = i32;
1010
pub type __u64 = ::c_ulong;
11+
pub type __s64 = ::c_long;
1112

1213
s! {
1314
pub struct stat {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub type nlink_t = u64;
1010
pub type blksize_t = i64;
1111
pub type suseconds_t = i64;
1212
pub type __u64 = ::c_ulong;
13+
pub type __s64 = ::c_long;
1314

1415
s! {
1516
pub struct sigaction {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pub type fsblkcnt64_t = ::c_ulong;
1111
pub type fsfilcnt64_t = ::c_ulong;
1212
pub type suseconds_t = i64;
1313
pub type __u64 = ::c_ulonglong;
14+
pub type __s64 = ::c_longlong;
1415

1516
s! {
1617
pub struct pthread_attr_t {

src/unix/linux_like/linux/gnu/b64/s390x.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ pub type suseconds_t = i64;
1111
pub type wchar_t = i32;
1212
pub type greg_t = u64;
1313
pub type __u64 = u64;
14+
pub type __s64 = i64;
1415

1516
s! {
1617
pub struct sigaction {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pub type nlink_t = u32;
1010
pub type blksize_t = i64;
1111
pub type suseconds_t = i32;
1212
pub type __u64 = ::c_ulonglong;
13+
pub type __s64 = ::c_longlong;
1314

1415
s! {
1516
pub struct sigaction {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pub type blksize_t = i64;
77
pub type greg_t = i64;
88
pub type suseconds_t = i64;
99
pub type __u64 = ::c_ulonglong;
10+
pub type __s64 = ::c_longlong;
1011

1112
s! {
1213
pub struct sigaction {

0 commit comments

Comments
 (0)