Skip to content

Commit

Permalink
fix wrong xattr syscalls on netbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC authored and tgross35 committed Nov 25, 2024
1 parent 951cab5 commit 91f1fea
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 91f1fea

Please sign in to comment.