diff options
author | bors <bors@rust-lang.org> | 2023-05-12 11:20:45 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-05-12 11:20:45 +0000 |
commit | e1c4a383d1f049518f0595614632ff773b4c4c5f (patch) | |
tree | 82eb23d397e4d7dce0b9abbad73f09b859c85293 /src/unix/linux_like/linux/musl/b64/s390x.rs | |
parent | 632c93c8821b6e60a97990634a910dec18629f1b (diff) | |
parent | b4aacbebb277d7e18a0bd4cbbf7bf7524ca77d1f (diff) | |
download | rust-libc-e1c4a383d1f049518f0595614632ff773b4c4c5f.tar.gz |
Auto merge of #3245 - emilengler:musl-sysemu, r=JohnTitor
Support for `PTRACE_SYSEMU` and `PTRACE_SYSEMU_SINGLESTEP` on musl
This adds support for the `PTRACE_SYSEMU` and `PTRACE_SYSEMU_SINGLESTEP` on certain musl architectures. I grabbed these constants by doing a `git grep -rnI PTRACE_SYSEMU` in the musl repository and got a list of certain architecture directories.
See #1774
By the way: I am not sure if I should have added support for that many architectures, just because musl supports them. After all, the corresponding glibc only supports `x86(_64)` anyway.
Diffstat (limited to 'src/unix/linux_like/linux/musl/b64/s390x.rs')
-rw-r--r-- | src/unix/linux_like/linux/musl/b64/s390x.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/musl/b64/s390x.rs b/src/unix/linux_like/linux/musl/b64/s390x.rs index d7dcce615c..c7d6b1bd2c 100644 --- a/src/unix/linux_like/linux/musl/b64/s390x.rs +++ b/src/unix/linux_like/linux/musl/b64/s390x.rs @@ -179,6 +179,9 @@ pub const MAP_STACK: ::c_int = 0x020000; pub const MAP_HUGETLB: ::c_int = 0x040000; pub const MAP_SYNC: ::c_int = 0x080000; +pub const PTRACE_SYSEMU: ::c_int = 31; +pub const PTRACE_SYSEMU_SINGLESTEP: ::c_int = 32; + pub const EDEADLOCK: ::c_int = 35; pub const ENAMETOOLONG: ::c_int = 36; pub const ENOLCK: ::c_int = 37; |