File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,18 @@ cfg_if! {
280
280
extern {
281
281
pub fn getgrnam ( name : * const :: c_char ) -> * mut group ;
282
282
pub fn getgrgid ( gid : :: gid_t ) -> * mut group ;
283
+ #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getgrnam_r" ) ]
284
+ pub fn getgrnam_r ( name : * const :: c_char ,
285
+ grp : * mut group ,
286
+ buf : * mut :: c_char ,
287
+ buflen : :: size_t ,
288
+ result : * mut * mut group ) -> :: c_int ;
289
+ #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getgrgid_r" ) ]
290
+ pub fn getgrgid_r ( uid : :: uid_t ,
291
+ grp : * mut group ,
292
+ buf : * mut :: c_char ,
293
+ buflen : :: size_t ,
294
+ result : * mut * mut group ) -> :: c_int ;
283
295
284
296
#[ cfg_attr( target_os = "netbsd" , link_name = "__getpwnam50" ) ]
285
297
pub fn getpwnam ( name : * const :: c_char ) -> * mut passwd ;
You can’t perform that action at this time.
0 commit comments