| ... | @@ -204,6 +204,19 @@ pub const passwd = switch (native_os) { | ... | @@ -204,6 +204,19 @@ pub const passwd = switch (native_os) { |
| 204 | shell: ?[*:0]const u8, // default shell | 204 | shell: ?[*:0]const u8, // default shell |
| 205 | expire: time_t, // account expiration | 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 | else => void, | 220 | else => void, |
| 208 | }; | 221 | }; |
| 209 | | 222 | |
| ... | @@ -10271,9 +10284,13 @@ pub const fstatat = switch (native_os) { | ... | @@ -10271,9 +10284,13 @@ pub const fstatat = switch (native_os) { |
| 10271 | }, | 10284 | }, |
| 10272 | else => private.fstatat, | 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 | pub extern "c" fn getpwnam(name: [*:0]const u8) ?*passwd; | 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 | pub extern "c" fn getpwuid(uid: uid_t) ?*passwd; | 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 | pub extern "c" fn getgrent() ?*group; | 10294 | pub extern "c" fn getgrent() ?*group; |
| 10278 | pub extern "c" fn setgrent() void; | 10295 | pub extern "c" fn setgrent() void; |
| 10279 | pub extern "c" fn endgrent() void; | 10296 | pub extern "c" fn endgrent() void; |
| ... | @@ -11009,11 +11026,7 @@ pub const bcrypt = openbsd.bcrypt; | ... | @@ -11009,11 +11026,7 @@ pub const bcrypt = openbsd.bcrypt; |
| 11009 | pub const bcrypt_checkpass = openbsd.bcrypt_checkpass; | 11026 | pub const bcrypt_checkpass = openbsd.bcrypt_checkpass; |
| 11010 | pub const bcrypt_gensalt = openbsd.bcrypt_gensalt; | 11027 | pub const bcrypt_gensalt = openbsd.bcrypt_gensalt; |
| 11011 | pub const bcrypt_newhash = openbsd.bcrypt_newhash; | 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 | pub const getpwnam_shadow = openbsd.getpwnam_shadow; | 11029 | pub const getpwnam_shadow = openbsd.getpwnam_shadow; |
| 11016 | pub const getpwuid_r = openbsd.getpwuid_r; | | |
| 11017 | pub const getpwuid_shadow = openbsd.getpwuid_shadow; | 11030 | pub const getpwuid_shadow = openbsd.getpwuid_shadow; |
| 11018 | pub const getthrid = openbsd.getthrid; | 11031 | pub const getthrid = openbsd.getthrid; |
| 11019 | pub const login_cap_t = openbsd.login_cap_t; | 11032 | pub const login_cap_t = openbsd.login_cap_t; |
| ... | @@ -11030,7 +11043,6 @@ pub const pthread_spinlock_t = openbsd.pthread_spinlock_t; | ... | @@ -11030,7 +11043,6 @@ pub const pthread_spinlock_t = openbsd.pthread_spinlock_t; |
| 11030 | pub const pw_dup = openbsd.pw_dup; | 11043 | pub const pw_dup = openbsd.pw_dup; |
| 11031 | pub const setclasscontext = openbsd.setclasscontext; | 11044 | pub const setclasscontext = openbsd.setclasscontext; |
| 11032 | pub const setpassent = openbsd.setpassent; | 11045 | pub const setpassent = openbsd.setpassent; |
| 11033 | pub const setpwent = openbsd.setpwent; | | |
| 11034 | pub const setusercontext = openbsd.setusercontext; | 11046 | pub const setusercontext = openbsd.setusercontext; |
| 11035 | pub const uid_from_user = openbsd.uid_from_user; | 11047 | pub const uid_from_user = openbsd.uid_from_user; |
| 11036 | pub const unveil = openbsd.unveil; | 11048 | pub const unveil = openbsd.unveil; |