Fix utx related functions for DragonFly

This commit is contained in:
Michael Neumann 2016-12-04 12:55:25 +01:00
parent 97eed0eb7c
commit 73a2380b65
3 changed files with 5 additions and 2 deletions

View File

@ -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;
}

View File

@ -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! {

View File

@ -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")]