File tree 1 file changed +0
-11
lines changed
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -483,7 +483,6 @@ pub fn home_dir() -> Option<PathBuf> {
483
483
target_os = "nacl" ,
484
484
target_os = "emscripten" ) ) ) ]
485
485
unsafe fn fallback ( ) -> Option < OsString > {
486
- #[ cfg( not( target_os = "solaris" ) ) ]
487
486
unsafe fn getpwduid_r ( me : libc:: uid_t , passwd : & mut libc:: passwd ,
488
487
buf : & mut Vec < c_char > ) -> Option < ( ) > {
489
488
let mut result = ptr:: null_mut ( ) ;
@@ -495,16 +494,6 @@ pub fn home_dir() -> Option<PathBuf> {
495
494
}
496
495
}
497
496
498
- #[ cfg( target_os = "solaris" ) ]
499
- unsafe fn getpwduid_r ( me : libc:: uid_t , passwd : & mut libc:: passwd ,
500
- buf : & mut Vec < c_char > ) -> Option < ( ) > {
501
- // getpwuid_r semantics is different on Illumos/Solaris:
502
- // http://illumos.org/man/3c/getpwuid_r
503
- let result = libc:: getpwuid_r ( me, passwd, buf. as_mut_ptr ( ) ,
504
- buf. capacity ( ) ) ;
505
- if result. is_null ( ) { None } else { Some ( ( ) ) }
506
- }
507
-
508
497
let amt = match libc:: sysconf ( libc:: _SC_GETPW_R_SIZE_MAX) {
509
498
n if n < 0 => 512 as usize ,
510
499
n => n as usize ,
You can’t perform that action at this time.
0 commit comments