diff options
author | Alan Somers <asomers@gmail.com> | 2020-06-04 21:12:05 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2020-06-04 21:56:09 -0600 |
commit | f698fd3807cae9a2c55d4f7aca3ac4791750713e (patch) | |
tree | 5e49b0e25b40ddaaec07484d4a365f6f37a3b9a6 /src/sys | |
parent | a777389c13ae0d64eb3ec28f29ba77d3eaec565a (diff) | |
download | nix-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')
-rw-r--r-- | src/sys/event.rs | 9 | ||||
-rw-r--r-- | src/sys/ptrace/linux.rs | 16 |
2 files changed, 0 insertions, 25 deletions
diff --git a/src/sys/event.rs b/src/sys/event.rs index 2b403c1e..8050af31 100644 --- a/src/sys/event.rs +++ b/src/sys/event.rs @@ -128,10 +128,6 @@ libc_bitflags!( NOTE_EXEC; NOTE_EXIT; #[cfg(any(target_os = "macos", target_os = "ios"))] - #[deprecated( since="0.14.0", note="Deprecated since OSX 10.9")] - #[allow(deprecated)] - NOTE_EXIT_REPARENTED; - #[cfg(any(target_os = "macos", target_os = "ios"))] NOTE_EXITSTATUS; NOTE_EXTEND; #[cfg(any(target_os = "macos", @@ -177,11 +173,6 @@ libc_bitflags!( NOTE_OOB; NOTE_PCTRLMASK; NOTE_PDATAMASK; - #[cfg(any(target_os = "macos", target_os = "ios"))] - #[cfg(any(target_os = "macos", target_os = "ios"))] - #[deprecated( since="0.14.0", note="Deprecated since OSX 10.9")] - #[allow(deprecated)] - NOTE_REAP; NOTE_RENAME; NOTE_REVOKE; #[cfg(any(target_os = "macos", target_os = "ios", target_os = "freebsd"))] 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(); |