Skip to content

Commit 56fd329

Browse files
committed
NetBSD: these extattr functions are not in libutil, but libc
- extattr_namespace_to_string() - extattr_string_to_namespace()
1 parent 091669f commit 56fd329

File tree

1 file changed

+4
-4
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+4
-4
lines changed

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,8 @@ extern {
10511051
attrname: *const ::c_char,
10521052
data: *mut ::c_void,
10531053
nbytes: ::size_t) -> ::ssize_t;
1054+
pub fn extattr_namespace_to_string(attrnamespace: ::c_int,
1055+
string: *mut *mut ::c_char) -> ::c_int;
10541056
pub fn extattr_set_fd(fd: ::c_int,
10551057
attrnamespace: ::c_int,
10561058
attrname: *const ::c_char,
@@ -1066,6 +1068,8 @@ extern {
10661068
attrname: *const ::c_char,
10671069
data: *const ::c_void,
10681070
nbytes: ::size_t) -> ::c_int;
1071+
pub fn extattr_string_to_namespace(string: *const ::c_char,
1072+
attrnamespace: *mut ::c_int) -> ::c_int;
10691073

10701074
#[link_name = "__lutimes50"]
10711075
pub fn lutimes(file: *const ::c_char, times: *const ::timeval) -> ::c_int;
@@ -1166,10 +1170,6 @@ extern {
11661170

11671171
#[link(name = "util")]
11681172
extern {
1169-
pub fn extattr_namespace_to_string(attrnamespace: ::c_int,
1170-
string: *mut *mut ::c_char) -> ::c_int;
1171-
pub fn extattr_string_to_namespace(string: *const ::c_char,
1172-
attrnamespace: *mut ::c_int) -> ::c_int;
11731173
#[cfg_attr(target_os = "netbsd", link_name = "__getpwent_r50")]
11741174
pub fn getpwent_r(pwd: *mut ::passwd,
11751175
buf: *mut ::c_char,

0 commit comments

Comments
 (0)