Skip to content

Commit

Permalink
Merge pull request #2961 from SteveLauC/netbsd-wrong-xattr-syscall
Browse files Browse the repository at this point in the history
fix wrong xattr syscalls on NetBSD
  • Loading branch information
tgross35 authored Nov 25, 2024
2 parents 0808995 + 91f1fea commit 42e5708
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3057,12 +3057,14 @@ extern "C" {
name: *const ::c_char,
value: *const ::c_void,
size: ::size_t,
flags: ::c_int,
) -> ::c_int;
pub fn lsetxattr(
path: *const ::c_char,
name: *const ::c_char,
value: *const ::c_void,
size: ::size_t,
flags: ::c_int,
) -> ::c_int;
pub fn fsetxattr(
filedes: ::c_int,
Expand All @@ -3076,7 +3078,7 @@ extern "C" {
pub fn flistxattr(filedes: ::c_int, list: *mut ::c_char, size: ::size_t) -> ::ssize_t;
pub fn removexattr(path: *const ::c_char, name: *const ::c_char) -> ::c_int;
pub fn lremovexattr(path: *const ::c_char, name: *const ::c_char) -> ::c_int;
pub fn fremovexattr(fd: ::c_int, path: *const ::c_char, name: *const ::c_char) -> ::c_int;
pub fn fremovexattr(fd: ::c_int, name: *const ::c_char) -> ::c_int;

pub fn string_to_flags(
string_p: *mut *mut ::c_char,
Expand Down

0 comments on commit 42e5708

Please sign in to comment.