@@ -204,6 +204,19 @@ pub const passwd = switch (native_os) {
204
204
shell : ? [* :0 ]const u8 , // default shell
205
205
expire : time_t , // account expiration
206
206
},
207
+ .dragonfly , .freebsd = > extern struct {
208
+ name : ? [* :0 ]const u8 , // user name
209
+ passwd : ? [* :0 ]const u8 , // encrypted password
210
+ uid : uid_t , // user uid
211
+ gid : gid_t , // user gid
212
+ change : time_t , // password change time
213
+ class : ? [* :0 ]const u8 , // user access class
214
+ gecos : ? [* :0 ]const u8 , // Honeywell login info
215
+ dir : ? [* :0 ]const u8 , // home directory
216
+ shell : ? [* :0 ]const u8 , // default shell
217
+ expire : time_t , // account expiration
218
+ fields : c_int , // internal
219
+ },
207
220
else = > void ,
208
221
};
209
222
@@ -10271,9 +10284,13 @@ pub const fstatat = switch (native_os) {
10271
10284
},
10272
10285
else = > private .fstatat ,
10273
10286
};
10274
-
10287
+ pub extern "c" fn getpwent () ? * passwd ;
10288
+ pub extern "c" fn endpwent () void ;
10289
+ pub extern "c" fn setpwent () void ;
10275
10290
pub extern "c" fn getpwnam (name : [* :0 ]const u8 ) ? * passwd ;
10291
+ pub extern "c" fn getpwnam_r (name : [* :0 ]const u8 , pwd : * passwd , buf : [* ]u8 , buflen : usize , result : * ? * passwd ) c_int ;
10276
10292
pub extern "c" fn getpwuid (uid : uid_t ) ? * passwd ;
10293
+ pub extern "c" fn getpwuid_r (uid : uid_t , pwd : * passwd , buf : [* ]u8 , buflen : usize , result : * ? * passwd ) c_int ;
10277
10294
pub extern "c" fn getgrent () ? * group ;
10278
10295
pub extern "c" fn setgrent () void ;
10279
10296
pub extern "c" fn endgrent () void ;
@@ -11009,11 +11026,7 @@ pub const bcrypt = openbsd.bcrypt;
11009
11026
pub const bcrypt_checkpass = openbsd .bcrypt_checkpass ;
11010
11027
pub const bcrypt_gensalt = openbsd .bcrypt_gensalt ;
11011
11028
pub const bcrypt_newhash = openbsd .bcrypt_newhash ;
11012
- pub const endpwent = openbsd .endpwent ;
11013
- pub const getpwent = openbsd .getpwent ;
11014
- pub const getpwnam_r = openbsd .getpwnam_r ;
11015
11029
pub const getpwnam_shadow = openbsd .getpwnam_shadow ;
11016
- pub const getpwuid_r = openbsd .getpwuid_r ;
11017
11030
pub const getpwuid_shadow = openbsd .getpwuid_shadow ;
11018
11031
pub const getthrid = openbsd .getthrid ;
11019
11032
pub const login_cap_t = openbsd .login_cap_t ;
@@ -11030,7 +11043,6 @@ pub const pthread_spinlock_t = openbsd.pthread_spinlock_t;
11030
11043
pub const pw_dup = openbsd .pw_dup ;
11031
11044
pub const setclasscontext = openbsd .setclasscontext ;
11032
11045
pub const setpassent = openbsd .setpassent ;
11033
- pub const setpwent = openbsd .setpwent ;
11034
11046
pub const setusercontext = openbsd .setusercontext ;
11035
11047
pub const uid_from_user = openbsd .uid_from_user ;
11036
11048
pub const unveil = openbsd .unveil ;
0 commit comments