diff options
author | Jonathan A. Kollasch <jakllsch@kollasch.net> | 2018-11-02 17:25:40 +0000 |
---|---|---|
committer | Jonathan A. Kollasch <jakllsch@kollasch.net> | 2018-11-02 17:49:14 +0000 |
commit | 56fd32966c663fe7e6e1d47484b690e9b0aa30e7 (patch) | |
tree | 5ebf35c11db4f6c75606f494aadc78e7970cf76e /src | |
parent | 091669f144baa205e6093233b732e9e0cfd6d53f (diff) | |
download | rust-libc-56fd32966c663fe7e6e1d47484b690e9b0aa30e7.tar.gz |
NetBSD: these extattr functions are not in libutil, but libc
- extattr_namespace_to_string()
- extattr_string_to_namespace()
Diffstat (limited to 'src')
-rw-r--r-- | src/unix/bsd/netbsdlike/netbsd/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index 7cdd868996..4ceb4ee9d5 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -1051,6 +1051,8 @@ extern { attrname: *const ::c_char, data: *mut ::c_void, nbytes: ::size_t) -> ::ssize_t; + pub fn extattr_namespace_to_string(attrnamespace: ::c_int, + string: *mut *mut ::c_char) -> ::c_int; pub fn extattr_set_fd(fd: ::c_int, attrnamespace: ::c_int, attrname: *const ::c_char, @@ -1066,6 +1068,8 @@ extern { attrname: *const ::c_char, data: *const ::c_void, nbytes: ::size_t) -> ::c_int; + pub fn extattr_string_to_namespace(string: *const ::c_char, + attrnamespace: *mut ::c_int) -> ::c_int; #[link_name = "__lutimes50"] pub fn lutimes(file: *const ::c_char, times: *const ::timeval) -> ::c_int; @@ -1166,10 +1170,6 @@ extern { #[link(name = "util")] extern { - pub fn extattr_namespace_to_string(attrnamespace: ::c_int, - string: *mut *mut ::c_char) -> ::c_int; - pub fn extattr_string_to_namespace(string: *const ::c_char, - attrnamespace: *mut ::c_int) -> ::c_int; #[cfg_attr(target_os = "netbsd", link_name = "__getpwent_r50")] pub fn getpwent_r(pwd: *mut ::passwd, buf: *mut ::c_char, |