Type utsname [src]

Source

pub const utsname = switch (native_os) { .linux => linux.utsname, .emscripten => emscripten.utsname, .solaris, .illumos => extern struct { sysname: [256:0]u8, nodename: [256:0]u8, release: [256:0]u8, version: [256:0]u8, machine: [256:0]u8, domainname: [256:0]u8, }, .macos => extern struct { sysname: [256:0]u8, nodename: [256:0]u8, release: [256:0]u8, version: [256:0]u8, machine: [256:0]u8, }, // https://github.com/SerenityOS/serenity/blob/d794ed1de7a46482272683f8dc4c858806390f29/Kernel/API/POSIX/sys/utsname.h#L17-L23 .serenity => extern struct { sysname: [UTSNAME_ENTRY_LEN:0]u8, nodename: [UTSNAME_ENTRY_LEN:0]u8, release: [UTSNAME_ENTRY_LEN:0]u8, version: [UTSNAME_ENTRY_LEN:0]u8, machine: [UTSNAME_ENTRY_LEN:0]u8, const UTSNAME_ENTRY_LEN = 65; }, else => void, }