summaryrefslogtreecommitdiff
path: root/src/sys/ptrace
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2020-06-04 21:12:05 -0600
committerAlan Somers <asomers@gmail.com>2020-06-04 21:56:09 -0600
commitf698fd3807cae9a2c55d4f7aca3ac4791750713e (patch)
tree5e49b0e25b40ddaaec07484d4a365f6f37a3b9a6 /src/sys/ptrace
parenta777389c13ae0d64eb3ec28f29ba77d3eaec565a (diff)
downloadnix-f698fd3807cae9a2c55d4f7aca3ac4791750713e.zip
Remove several deprecated constants and functions
* `unistd::daemon` on Apple * `unistd::pipe2` on Apple * `sys::event::FilterFlag::NOTE_EXIT_REPARENTED` on Apple * `sys::event::FilterFlag::NOTE_REAP` on Apple * `sys::ptrace::ptrace` on Android and Linux All have been deprecated for more than two releases and one year.
Diffstat (limited to 'src/sys/ptrace')
-rw-r--r--src/sys/ptrace/linux.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/sys/ptrace/linux.rs b/src/sys/ptrace/linux.rs
index 49a45d64..a0bae14f 100644
--- a/src/sys/ptrace/linux.rs
+++ b/src/sys/ptrace/linux.rs
@@ -168,22 +168,6 @@ libc_bitflags! {
}
}
-/// Performs a ptrace request. If the request in question is provided by a specialised function
-/// this function will return an unsupported operation error.
-#[deprecated(
- since="0.10.0",
- note="usages of `ptrace()` should be replaced with the specialized helper functions instead"
-)]
-pub unsafe fn ptrace(request: Request, pid: Pid, addr: AddressType, data: *mut c_void) -> Result<c_long> {
- use self::Request::*;
- match request {
- PTRACE_PEEKTEXT | PTRACE_PEEKDATA | PTRACE_GETSIGINFO |
- PTRACE_GETEVENTMSG | PTRACE_SETSIGINFO | PTRACE_SETOPTIONS |
- PTRACE_POKETEXT | PTRACE_POKEDATA | PTRACE_KILL => Err(Error::UnsupportedOperation),
- _ => ptrace_other(request, pid, addr, data)
- }
-}
-
fn ptrace_peek(request: Request, pid: Pid, addr: AddressType, data: *mut c_void) -> Result<c_long> {
let ret = unsafe {
Errno::clear();