File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -637,15 +637,6 @@ extern {
637
637
groups : * mut :: gid_t ,
638
638
ngroups : * mut :: c_int ) -> :: c_int ;
639
639
pub fn initgroups ( name : * const :: c_char , basegid : :: gid_t ) -> :: c_int ;
640
- #[ cfg_attr( target_os = "netbsd" , link_name = "__getpwent_r50" ) ]
641
- pub fn getpwent_r ( pwd : * mut :: passwd ,
642
- buf : * mut :: c_char ,
643
- buflen : :: size_t ,
644
- result : * mut * mut :: passwd ) -> :: c_int ;
645
- pub fn getgrent_r ( grp : * mut :: group ,
646
- buf : * mut :: c_char ,
647
- buflen : :: size_t ,
648
- result : * mut * mut :: group ) -> :: c_int ;
649
640
pub fn fexecve ( fd : :: c_int , argv : * const * const :: c_char ,
650
641
envp : * const * const :: c_char )
651
642
-> :: c_int ;
Original file line number Diff line number Diff line change @@ -1074,5 +1074,18 @@ extern {
1074
1074
pub fn settimeofday ( tv : * const :: timeval , tz : * const :: c_void ) -> :: c_int ;
1075
1075
}
1076
1076
1077
+ #[ link( name = "util" ) ]
1078
+ extern {
1079
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__getpwent_r50" ) ]
1080
+ pub fn getpwent_r ( pwd : * mut :: passwd ,
1081
+ buf : * mut :: c_char ,
1082
+ buflen : :: size_t ,
1083
+ result : * mut * mut :: passwd ) -> :: c_int ;
1084
+ pub fn getgrent_r ( grp : * mut :: group ,
1085
+ buf : * mut :: c_char ,
1086
+ buflen : :: size_t ,
1087
+ result : * mut * mut :: group ) -> :: c_int ;
1088
+ }
1089
+
1077
1090
mod other;
1078
1091
pub use self :: other:: * ;
You can’t perform that action at this time.
0 commit comments