Skip to content

Commit 42e5708

Browse files
authored
Merge pull request #2961 from SteveLauC/netbsd-wrong-xattr-syscall
fix wrong xattr syscalls on NetBSD
2 parents 0808995 + 91f1fea commit 42e5708

File tree

1 file changed

+3
-1
lines changed
  • src/unix/bsd/netbsdlike/netbsd

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -3057,12 +3057,14 @@ extern "C" {
30573057
name: *const ::c_char,
30583058
value: *const ::c_void,
30593059
size: ::size_t,
3060+
flags: ::c_int,
30603061
) -> ::c_int;
30613062
pub fn lsetxattr(
30623063
path: *const ::c_char,
30633064
name: *const ::c_char,
30643065
value: *const ::c_void,
30653066
size: ::size_t,
3067+
flags: ::c_int,
30663068
) -> ::c_int;
30673069
pub fn fsetxattr(
30683070
filedes: ::c_int,
@@ -3076,7 +3078,7 @@ extern "C" {
30763078
pub fn flistxattr(filedes: ::c_int, list: *mut ::c_char, size: ::size_t) -> ::ssize_t;
30773079
pub fn removexattr(path: *const ::c_char, name: *const ::c_char) -> ::c_int;
30783080
pub fn lremovexattr(path: *const ::c_char, name: *const ::c_char) -> ::c_int;
3079-
pub fn fremovexattr(fd: ::c_int, path: *const ::c_char, name: *const ::c_char) -> ::c_int;
3081+
pub fn fremovexattr(fd: ::c_int, name: *const ::c_char) -> ::c_int;
30803082

30813083
pub fn string_to_flags(
30823084
string_p: *mut *mut ::c_char,

0 commit comments

Comments
 (0)