feature. See also
. The project being documented here (as the example) is the Zig library itself.
c.passwd
pub const passwd = switch (native_os)
File
Code
pub const passwd = switch (native_os) {
.linux, .serenity => extern struct {
name: ?[*:0]const u8,
passwd: ?[*:0]const u8,
uid: uid_t,
gid: gid_t,
gecos: ?[*:0]const u8,
dir: ?[*:0]const u8,
shell: ?[*:0]const u8,
},
.netbsd, .openbsd, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => extern struct {
name: ?[*:0]const u8,
passwd: ?[*:0]const u8,
uid: uid_t,
gid: gid_t,
change: time_t,
class: ?[*:0]const u8,
gecos: ?[*:0]const u8,
dir: ?[*:0]const u8,
shell: ?[*:0]const u8,
expire: time_t,
},
.dragonfly, .freebsd => extern struct {
name: ?[*:0]const u8,
passwd: ?[*:0]const u8,
uid: uid_t,
gid: gid_t,
change: time_t,
class: ?[*:0]const u8,
gecos: ?[*:0]const u8,
dir: ?[*:0]const u8,
shell: ?[*:0]const u8,
expire: time_t,
fields: c_int,
},
else => void,
}