Auto merge of #903 - gnzlbg:bsd_domainname, r=alexcrichton
Bsd domainname Closes #868 .
This commit is contained in:
commit
5e290c57b3
@ -2352,7 +2352,8 @@ extern {
|
||||
pub fn querylocale(mask: ::c_int, loc: ::locale_t) -> *const ::c_char;
|
||||
pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int;
|
||||
pub fn setpriority(which: ::c_int, who: ::id_t, prio: ::c_int) -> ::c_int;
|
||||
|
||||
pub fn getdomainname(name: *mut ::c_char, len: ::c_int) -> ::c_int;
|
||||
pub fn setdomainname(name: *const ::c_char, len: ::c_int) -> ::c_int;
|
||||
pub fn getxattr(path: *const ::c_char, name: *const ::c_char,
|
||||
value: *mut ::c_void, size: ::size_t, position: u32,
|
||||
flags: ::c_int) -> ::ssize_t;
|
||||
|
@ -1157,6 +1157,8 @@ extern {
|
||||
timeout: *const ::timespec,
|
||||
sigmask: *const sigset_t) -> ::c_int;
|
||||
pub fn settimeofday(tv: *const ::timeval, tz: *const ::timezone) -> ::c_int;
|
||||
pub fn getdomainname(name: *mut ::c_char, len: ::c_int) -> ::c_int;
|
||||
pub fn setdomainname(name: *const ::c_char, len: ::c_int) -> ::c_int;
|
||||
}
|
||||
|
||||
cfg_if! {
|
||||
|
@ -625,6 +625,8 @@ extern {
|
||||
pub fn fexecve(fd: ::c_int, argv: *const *const ::c_char,
|
||||
envp: *const *const ::c_char)
|
||||
-> ::c_int;
|
||||
pub fn getdomainname(name: *mut ::c_char, len: ::size_t) -> ::c_int;
|
||||
pub fn setdomainname(name: *const ::c_char, len: ::size_t) -> ::c_int;
|
||||
}
|
||||
|
||||
cfg_if! {
|
||||
|
Loading…
Reference in New Issue
Block a user