Skip to content

Commit

Permalink
Fix getgrgid_r to accept gid_t.
Browse files Browse the repository at this point in the history
  • Loading branch information
crlf0710 committed Apr 29, 2019
1 parent f9818f1 commit 1cf0294
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/fuchsia/mod.rs
Expand Up @@ -4168,7 +4168,7 @@ extern {
offset: *mut off_t,
count: ::size_t) -> ::ssize_t;
pub fn sigsuspend(mask: *const ::sigset_t) -> ::c_int;
pub fn getgrgid_r(uid: ::uid_t,
pub fn getgrgid_r(gid: ::gid_t,
grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,
Expand Down
2 changes: 1 addition & 1 deletion src/unix/bsd/mod.rs
Expand Up @@ -594,7 +594,7 @@ extern {

pub fn sync();
#[cfg_attr(target_os = "solaris", link_name = "__posix_getgrgid_r")]
pub fn getgrgid_r(uid: ::uid_t,
pub fn getgrgid_r(gid: ::gid_t,
grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,
Expand Down
2 changes: 1 addition & 1 deletion src/unix/haiku/mod.rs
Expand Up @@ -1306,7 +1306,7 @@ extern {
pub fn execvpe(file: *const ::c_char, argv: *const *const ::c_char,
environment: *const *const ::c_char) -> ::c_int;
#[cfg_attr(target_os = "solaris", link_name = "__posix_getgrgid_r")]
pub fn getgrgid_r(uid: ::uid_t,
pub fn getgrgid_r(gid: ::gid_t,
grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,
Expand Down
2 changes: 1 addition & 1 deletion src/unix/newlib/mod.rs
Expand Up @@ -581,7 +581,7 @@ extern {
envp: *const *const ::c_char)
-> ::c_int;
#[cfg_attr(target_os = "solaris", link_name = "__posix_getgrgid_r")]
pub fn getgrgid_r(uid: ::uid_t,
pub fn getgrgid_r(gid: ::gid_t,
grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,
Expand Down
2 changes: 1 addition & 1 deletion src/unix/notbsd/android/mod.rs
Expand Up @@ -2031,7 +2031,7 @@ extern {
pub fn setfsuid(uid: ::uid_t) -> ::c_int;
pub fn sigsuspend(mask: *const ::sigset_t) -> ::c_int;
#[cfg_attr(target_os = "solaris", link_name = "__posix_getgrgid_r")]
pub fn getgrgid_r(uid: ::uid_t,
pub fn getgrgid_r(gid: ::gid_t,
grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,
Expand Down
2 changes: 1 addition & 1 deletion src/unix/notbsd/linux/mod.rs
Expand Up @@ -2278,7 +2278,7 @@ extern {
count: ::size_t) -> ::ssize_t;
pub fn sigsuspend(mask: *const ::sigset_t) -> ::c_int;
#[cfg_attr(target_os = "solaris", link_name = "__posix_getgrgid_r")]
pub fn getgrgid_r(uid: ::uid_t,
pub fn getgrgid_r(gid: ::gid_t,
grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,
Expand Down
2 changes: 1 addition & 1 deletion src/unix/solarish/mod.rs
Expand Up @@ -1937,7 +1937,7 @@ extern {
-> ::c_int;
#[cfg_attr(any(target_os = "solaris", target_os = "illumos"),
link_name = "__posix_getgrgid_r")]
pub fn getgrgid_r(uid: ::uid_t,
pub fn getgrgid_r(gid: ::gid_t,
grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,
Expand Down
2 changes: 1 addition & 1 deletion src/unix/uclibc/mod.rs
Expand Up @@ -1837,7 +1837,7 @@ extern {
pub fn recvmsg(fd: ::c_int, msg: *mut ::msghdr, flags: ::c_int)
-> ::ssize_t;
#[cfg_attr(target_os = "solaris", link_name = "__posix_getgrgid_r")]
pub fn getgrgid_r(uid: ::uid_t,
pub fn getgrgid_r(gid: ::gid_t,
grp: *mut ::group,
buf: *mut ::c_char,
buflen: ::size_t,
Expand Down

0 comments on commit 1cf0294

Please sign in to comment.