Fix utx related functions for DragonFly
This commit is contained in:
parent
97eed0eb7c
commit
73a2380b65
@ -348,4 +348,6 @@ extern {
|
||||
-> ::c_int;
|
||||
pub fn clock_getres(clk_id: clockid_t, tp: *mut ::timespec) -> ::c_int;
|
||||
pub fn clock_gettime(clk_id: clockid_t, tp: *mut ::timespec) -> ::c_int;
|
||||
|
||||
pub fn setutxdb(_type: ::c_int, file: *mut ::c_char) -> ::c_int;
|
||||
}
|
||||
|
@ -349,6 +349,9 @@ extern {
|
||||
pub fn mkostemps(template: *mut ::c_char,
|
||||
suffixlen: ::c_int,
|
||||
flags: ::c_int) -> ::c_int;
|
||||
|
||||
pub fn getutxuser(user: *const ::c_char) -> *mut utmpx;
|
||||
pub fn setutxdb(_type: ::c_int, file: *const ::c_char) -> ::c_int;
|
||||
}
|
||||
|
||||
cfg_if! {
|
||||
|
@ -741,8 +741,6 @@ extern {
|
||||
pub fn getutxline(ut: *const utmpx) -> *mut utmpx;
|
||||
pub fn pututxline(ut: *const utmpx) -> *mut utmpx;
|
||||
pub fn setutxent();
|
||||
pub fn getutxuser(user: *const ::c_char) -> *mut utmpx;
|
||||
pub fn setutxdb(_type: ::c_int, file: *const ::c_char) -> ::c_int;
|
||||
}
|
||||
|
||||
#[link(name = "util")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user