Lines Matching refs:passwd
1704 /// in `/etc/passwd`). If the `www-data` user's UID and GID were `33` and `33`,
2960 /// Representation of a User, based on `libc::passwd`
2966 #[cfg(not(target_os = "redox"))] // RedoxFS does not support passwd
2972 pub passwd: CString,
3013 #[cfg(not(target_os = "redox"))] //RedoxFS does not support passwd
3014 impl From<&libc::passwd> for User {
3015 fn from(pw: &libc::passwd) -> User {
3019 passwd: if pw.pw_passwd.is_null() { Default::default() } else { CString::new(CStr::from_ptr(pw.pw_passwd).to_bytes()).unwrap() },
3052 #[cfg(not(target_os = "redox"))] // RedoxFS does not support passwd
3053 impl From<User> for libc::passwd {
3069 pw_passwd: u.passwd.into_raw(),
3107 #[cfg(not(target_os = "redox"))] // RedoxFS does not support passwd
3111 F: Fn(*mut libc::passwd,
3114 *mut *mut libc::passwd) -> libc::c_int
3123 let mut pwd = mem::MaybeUninit::<libc::passwd>::uninit();
3188 #[cfg(not(target_os = "redox"))] // RedoxFS does not support passwd
3194 pub passwd: CString,
3201 #[cfg(not(target_os = "redox"))] // RedoxFS does not support passwd
3207 passwd: CString::new(CStr::from_ptr(gr.gr_passwd).to_bytes()).unwrap(),
3215 #[cfg(not(target_os = "redox"))] // RedoxFS does not support passwd