File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 54
54
55
55
pub struct passwd {
56
56
pub pw_name: * const c_char,
57
+ pub pw_passwd: * const c_char,
57
58
pub pw_uid: u32 ,
58
59
pub pw_gid: u32 ,
59
60
pub pw_gecos: * const c_char,
128
129
pub tm_yday: i32 ,
129
130
pub tm_isdst: i32 ,
130
131
pub tm_gmtoff: isize ,
131
- pub tm_zone: * const i8 ,
132
+ pub tm_zone: * const c_char ,
132
133
__reserved: [ usize ; __DEFAULT_RESERVED_SIZE__] ,
133
134
}
134
135
165
166
166
167
pub struct dirent {
167
168
pub d_type: u8 ,
168
- pub d_name: [ i8 ; __NAME_MAX__ + 1 ] ,
169
+ pub d_name: [ c_char ; __NAME_MAX__ + 1 ] ,
169
170
}
170
171
171
172
pub struct fd_set {
247
248
// for example, struct passwd, https://pubs.opengroup.org/onlinepubs/009695399/basedefs/pwd.h.html,
248
249
// POSIX only defines following fields in struct passwd:
249
250
// char *pw_name User's login name.
251
+ // char *pw_passwd Encrypted password.
250
252
// uid_t pw_uid Numerical user ID.
251
253
// gid_t pw_gid Numerical group ID.
252
254
// char *pw_dir Initial working directory.
You can’t perform that action at this time.
0 commit comments