File tree Expand file tree Collapse file tree 6 files changed +14
-50
lines changed Expand file tree Collapse file tree 6 files changed +14
-50
lines changed Original file line number Diff line number Diff line change @@ -371,18 +371,6 @@ extern {
371
371
pub fn kqueue ( ) -> :: c_int ;
372
372
pub fn unmount ( target : * const :: c_char , arg : :: c_int ) -> :: c_int ;
373
373
pub fn syscall ( num : :: c_int , ...) -> :: c_int ;
374
- #[ cfg_attr( target_os = "netbsd" , link_name = "__getpwnam_r50" ) ]
375
- pub fn getpwnam_r ( name : * const :: c_char ,
376
- pwd : * mut passwd ,
377
- buf : * mut :: c_char ,
378
- buflen : :: size_t ,
379
- result : * mut * mut passwd ) -> :: c_int ;
380
- #[ cfg_attr( target_os = "netbsd" , link_name = "__getpwuid_r50" ) ]
381
- pub fn getpwuid_r ( uid : :: uid_t ,
382
- pwd : * mut passwd ,
383
- buf : * mut :: c_char ,
384
- buflen : :: size_t ,
385
- result : * mut * mut passwd ) -> :: c_int ;
386
374
#[ cfg_attr( target_os = "netbsd" , link_name = "__getpwent50" ) ]
387
375
pub fn getpwent ( ) -> * mut passwd ;
388
376
pub fn setpwent ( ) ;
Original file line number Diff line number Diff line change @@ -791,11 +791,6 @@ extern {
791
791
pub fn memalign ( align : :: size_t , size : :: size_t ) -> * mut :: c_void ;
792
792
pub fn setgroups ( ngroups : :: size_t ,
793
793
ptr : * const :: gid_t ) -> :: c_int ;
794
- pub fn getpwuid_r ( uid : :: uid_t ,
795
- pwd : * mut passwd ,
796
- buffer : * mut :: c_char ,
797
- bufferSize : :: size_t ,
798
- result : * mut * mut passwd ) -> :: c_int ;
799
794
pub fn ioctl ( fd : :: c_int , request : :: c_int , ...) -> :: c_int ;
800
795
pub fn mprotect ( addr : * const :: c_void , len : :: size_t , prot : :: c_int )
801
796
-> :: c_int ;
Original file line number Diff line number Diff line change @@ -286,6 +286,20 @@ extern {
286
286
pub fn getpwnam ( name : * const :: c_char ) -> * mut passwd ;
287
287
#[ cfg_attr( target_os = "netbsd" , link_name = "__getpwuid50" ) ]
288
288
pub fn getpwuid ( uid : :: uid_t ) -> * mut passwd ;
289
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__getpwnam_r50" ) ]
290
+ #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getpwnam_r" ) ]
291
+ pub fn getpwnam_r ( name : * const :: c_char ,
292
+ pwd : * mut passwd ,
293
+ buf : * mut :: c_char ,
294
+ buflen : :: size_t ,
295
+ result : * mut * mut passwd ) -> :: c_int ;
296
+ #[ cfg_attr( target_os = "netbsd" , link_name = "__getpwuid_r50" ) ]
297
+ #[ cfg_attr( target_os = "solaris" , link_name = "__posix_getpwuid_r" ) ]
298
+ pub fn getpwuid_r ( uid : :: uid_t ,
299
+ pwd : * mut passwd ,
300
+ buf : * mut :: c_char ,
301
+ buflen : :: size_t ,
302
+ result : * mut * mut passwd ) -> :: c_int ;
289
303
290
304
pub fn fprintf ( stream : * mut :: FILE ,
291
305
format : * const :: c_char , ...) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -850,16 +850,6 @@ f! {
850
850
}
851
851
852
852
extern {
853
- pub fn getpwnam_r ( name : * const :: c_char ,
854
- pwd : * mut passwd ,
855
- buf : * mut :: c_char ,
856
- buflen : :: size_t ,
857
- result : * mut * mut passwd ) -> :: c_int ;
858
- pub fn getpwuid_r ( uid : :: uid_t ,
859
- pwd : * mut passwd ,
860
- buf : * mut :: c_char ,
861
- buflen : :: size_t ,
862
- result : * mut * mut passwd ) -> :: c_int ;
863
853
pub fn fdatasync ( fd : :: c_int ) -> :: c_int ;
864
854
pub fn mincore ( addr : * mut :: c_void , len : :: size_t ,
865
855
vec : * mut :: c_uchar ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -1187,19 +1187,6 @@ extern {
1187
1187
serv : * mut :: c_char ,
1188
1188
sevlen : :: socklen_t ,
1189
1189
flags : :: c_int ) -> :: c_int ;
1190
- #[ link_name = "__posix_getpwnam_r" ]
1191
- pub fn getpwnam_r ( name : * const :: c_char ,
1192
- pwd : * mut passwd ,
1193
- buf : * mut :: c_char ,
1194
- buflen : :: size_t ,
1195
- result : * mut * mut passwd ) -> :: c_int ;
1196
-
1197
- #[ link_name = "__posix_getpwuid_r" ]
1198
- pub fn getpwuid_r ( uid : :: uid_t ,
1199
- pwd : * mut passwd ,
1200
- buf : * mut :: c_char ,
1201
- buflen : :: size_t ,
1202
- result : * mut * mut passwd ) -> :: c_int ;
1203
1190
pub fn setpwent ( ) ;
1204
1191
pub fn getpwent ( ) -> * mut passwd ;
1205
1192
pub fn fdatasync ( fd : :: c_int ) -> :: c_int ;
Original file line number Diff line number Diff line change @@ -1422,16 +1422,6 @@ f! {
1422
1422
}
1423
1423
1424
1424
extern {
1425
- pub fn getpwnam_r ( name : * const :: c_char ,
1426
- pwd : * mut passwd ,
1427
- buf : * mut :: c_char ,
1428
- buflen : :: size_t ,
1429
- result : * mut * mut passwd ) -> :: c_int ;
1430
- pub fn getpwuid_r ( uid : :: uid_t ,
1431
- pwd : * mut passwd ,
1432
- buf : * mut :: c_char ,
1433
- buflen : :: size_t ,
1434
- result : * mut * mut passwd ) -> :: c_int ;
1435
1425
pub fn fdatasync ( fd : :: c_int ) -> :: c_int ;
1436
1426
pub fn mincore ( addr : * mut :: c_void , len : :: size_t ,
1437
1427
vec : * mut :: c_uchar ) -> :: c_int ;
You can’t perform that action at this time.
0 commit comments