add #[allow(deprecated)] annotations
allow using deprecated functions and data structures in deprecated functions
This commit is contained in:
committed by
sourceturner
parent
885118ccac
commit
4ffd337b9b
@@ -69,6 +69,7 @@ pub struct timezone {
|
||||
/// The `getitimer()` function was marked obsolescent in the Open Group Base
|
||||
/// Specifications Issue 7, and removed in Issue 8.
|
||||
#[deprecated]
|
||||
#[allow(deprecated)]
|
||||
#[unsafe(no_mangle)]
|
||||
pub unsafe extern "C" fn getitimer(which: c_int, value: *mut itimerval) -> c_int {
|
||||
Sys::getitimer(which, unsafe { &mut *value })
|
||||
@@ -100,6 +101,7 @@ pub unsafe extern "C" fn gettimeofday(tp: *mut timeval, tzp: *mut timezone) -> c
|
||||
/// The `setitimer()` function was marked obsolescent in the Open Group Base
|
||||
/// Specifications Issue 7, and removed in Issue 8.
|
||||
#[deprecated]
|
||||
#[allow(deprecated)]
|
||||
#[unsafe(no_mangle)]
|
||||
pub unsafe extern "C" fn setitimer(
|
||||
which: c_int,
|
||||
|
||||
Reference in New Issue
Block a user