Skip to content

Commit 4e6fe8c

Browse files
committed
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).
1 parent 9a9e2e0 commit 4e6fe8c

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)