File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1798,6 +1798,10 @@ extern {
1798
1798
pub fn fremovexattr ( filedes : :: c_int , name : * const :: c_char ,
1799
1799
flags : :: c_int ) -> :: c_int ;
1800
1800
1801
+ pub fn getgrouplist ( name : * const :: c_char ,
1802
+ basegid : :: c_int ,
1803
+ groups : * mut :: c_int ,
1804
+ ngroups : * mut :: c_int ) -> :: c_int ;
1801
1805
pub fn initgroups ( user : * const :: c_char , basegroup : :: c_int ) -> :: c_int ;
1802
1806
1803
1807
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
Original file line number Diff line number Diff line change @@ -964,6 +964,10 @@ extern {
964
964
pub fn setutxent ( ) ;
965
965
pub fn setresgid ( rgid : :: gid_t , egid : :: gid_t , sgid : :: gid_t ) -> :: c_int ;
966
966
pub fn setresuid ( ruid : :: uid_t , euid : :: uid_t , suid : :: uid_t ) -> :: c_int ;
967
+ pub fn getgrouplist ( name : * const :: c_char ,
968
+ basegid : :: gid_t ,
969
+ groups : * mut :: gid_t ,
970
+ ngroups : * mut :: c_int ) -> :: c_int ;
967
971
pub fn initgroups ( name : * const :: c_char , basegid : :: gid_t ) -> :: c_int ;
968
972
}
969
973
Original file line number Diff line number Diff line change @@ -617,6 +617,10 @@ extern {
617
617
abstime : * const :: timespec ) -> :: c_int ;
618
618
pub fn pipe2 ( fds : * mut :: c_int , flags : :: c_int ) -> :: c_int ;
619
619
620
+ pub fn getgrouplist ( name : * const :: c_char ,
621
+ basegid : :: gid_t ,
622
+ groups : * mut :: gid_t ,
623
+ ngroups : * mut :: c_int ) -> :: c_int ;
620
624
pub fn initgroups ( name : * const :: c_char , basegid : :: gid_t ) -> :: c_int ;
621
625
}
622
626
Original file line number Diff line number Diff line change @@ -880,6 +880,10 @@ extern {
880
880
pub fn memalign ( align : :: size_t , size : :: size_t ) -> * mut :: c_void ;
881
881
pub fn setgroups ( ngroups : :: size_t ,
882
882
ptr : * const :: gid_t ) -> :: c_int ;
883
+ pub fn getgrouplist ( user : * const :: c_char ,
884
+ group : :: gid_t ,
885
+ groups : * mut :: gid_t ,
886
+ ngroups : * mut :: c_int ) -> :: c_int ;
883
887
pub fn initgroups ( user : * const :: c_char , group : :: gid_t ) -> :: c_int ;
884
888
pub fn sched_setscheduler ( pid : :: pid_t ,
885
889
policy : :: c_int ,
You can’t perform that action at this time.
0 commit comments