Skip to content

Commit

Permalink
fix wrong definitions of getpwent_r and getgrent_r on solarish os
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Sep 18, 2022
1 parent 9cdd42e commit 85451c6
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions src/unix/solarish/mod.rs
Expand Up @@ -3010,26 +3010,10 @@ extern "C" {
buflen: ::size_t,
result: *mut *mut passwd,
) -> ::c_int;
#[cfg_attr(
any(target_os = "solaris", target_os = "illumos"),
link_name = "__posix_getpwent_r"
)]
pub fn getpwent_r(
pwd: *mut passwd,
buf: *mut ::c_char,
buflen: ::size_t,
result: *mut *mut passwd,
) -> ::c_int;
#[cfg_attr(
any(target_os = "solaris", target_os = "illumos"),
link_name = "__posix_getgrent_r"
)]
pub fn getgrent_r(
grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,
result: *mut *mut ::group,
) -> ::c_int;
#[cfg(any(target_os = "solaris", target_os = "illumos"))]
pub fn getpwent_r(pwd: *mut passwd, buf: *mut ::c_char, buflen: ::c_int) -> *mut passwd;
#[cfg(any(target_os = "solaris", target_os = "illumos"))]
pub fn getgrent_r(grp: *mut ::group, buf: *mut ::c_char, buflen: ::c_int) -> *mut ::group;
#[cfg_attr(
any(target_os = "solaris", target_os = "illumos"),
link_name = "__posix_sigwait"
Expand Down

0 comments on commit 85451c6

Please sign in to comment.