Skip to content

Commit d7a1995

Browse files
committed
Auto merge of #1260 - nbaksalyar:add-missing-solaris-fns, r=gnzlbg
Add missing group entry functions for Solaris/Illumos This commit adds definitions for `setgrent`, `endgrent`, and `getgrent` which were missing (but available for FreeBSD and other *nix systems).
2 parents bf749e6 + 4e6fe8c commit d7a1995

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/solarish/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,6 +1781,9 @@ extern {
17811781
parent: ::Option<unsafe extern fn()>,
17821782
child: ::Option<unsafe extern fn()>) -> ::c_int;
17831783
pub fn getgrgid(gid: ::gid_t) -> *mut ::group;
1784+
pub fn setgrent();
1785+
pub fn endgrent();
1786+
pub fn getgrent() -> *mut ::group;
17841787
pub fn popen(command: *const c_char,
17851788
mode: *const c_char) -> *mut ::FILE;
17861789

0 commit comments

Comments
 (0)