Skip to content

Commit c095cbc

Browse files
committed
Haiku: Add getgrouplist function
1 parent 3e328bd commit c095cbc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unix/haiku/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,12 @@ extern "C" {
15101510
buflen: ::size_t,
15111511
result: *mut *mut ::group,
15121512
) -> ::c_int;
1513+
pub fn getgrouplist(
1514+
user: *const ::c_char,
1515+
basegroup: ::gid_t,
1516+
grouplist: *mut ::gid_t,
1517+
groupcount: *mut ::c_int,
1518+
) -> ::c_int;
15131519
pub fn sigaltstack(ss: *const stack_t, oss: *mut stack_t) -> ::c_int;
15141520
pub fn sem_close(sem: *mut sem_t) -> ::c_int;
15151521
pub fn getdtablesize() -> ::c_int;

0 commit comments

Comments
 (0)