| ... | ... | @@ -106,7 +106,7 @@ pub const timespec = switch (native_os) { |
| 106 | 106 | sec: time_t, |
| 107 | 107 | nsec: c_long, |
| 108 | 108 | }, |
| 109 | | .dragonfly, .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => extern struct { |
| 109 | .dragonfly, .freebsd, .macos, .ios, .tvos, .watchos, .visionos => extern struct { |
| 110 | 110 | sec: isize, |
| 111 | 111 | nsec: isize, |
| 112 | 112 | }, |
| ... | ... | @@ -126,7 +126,7 @@ pub const dev_t = switch (native_os) { |
| 126 | 126 | .emscripten => emscripten.dev_t, |
| 127 | 127 | .wasi => wasi.device_t, |
| 128 | 128 | .openbsd, .haiku, .solaris, .illumos, .macos, .ios, .tvos, .watchos, .visionos => i32, |
| 129 | | .netbsd, .freebsd, .kfreebsd => u64, |
| 129 | .netbsd, .freebsd => u64, |
| 130 | 130 | else => void, |
| 131 | 131 | }; |
| 132 | 132 | |
| ... | ... | @@ -134,7 +134,7 @@ pub const mode_t = switch (native_os) { |
| 134 | 134 | .linux => linux.mode_t, |
| 135 | 135 | .emscripten => emscripten.mode_t, |
| 136 | 136 | .openbsd, .haiku, .netbsd, .solaris, .illumos, .wasi => u32, |
| 137 | | .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => u16, |
| 137 | .freebsd, .macos, .ios, .tvos, .watchos, .visionos => u16, |
| 138 | 138 | else => u0, |
| 139 | 139 | }; |
| 140 | 140 | |
| ... | ... | @@ -142,7 +142,7 @@ pub const nlink_t = switch (native_os) { |
| 142 | 142 | .linux => linux.nlink_t, |
| 143 | 143 | .emscripten => emscripten.nlink_t, |
| 144 | 144 | .wasi => c_ulonglong, |
| 145 | | .freebsd, .kfreebsd => u64, |
| 145 | .freebsd => u64, |
| 146 | 146 | .openbsd, .netbsd, .solaris, .illumos => u32, |
| 147 | 147 | .haiku => i32, |
| 148 | 148 | else => void, |
| ... | ... | @@ -235,7 +235,7 @@ pub const clockid_t = switch (native_os) { |
| 235 | 235 | /// clock measuring the used CPU time of the current thread |
| 236 | 236 | THREAD_CPUTIME_ID = -3, |
| 237 | 237 | }, |
| 238 | | .freebsd, .kfreebsd => enum(u32) { |
| 238 | .freebsd => enum(u32) { |
| 239 | 239 | REALTIME = 0, |
| 240 | 240 | VIRTUAL = 1, |
| 241 | 241 | PROF = 2, |
| ... | ... | @@ -389,7 +389,7 @@ pub const E = switch (native_os) { |
| 389 | 389 | _, |
| 390 | 390 | }, |
| 391 | 391 | .macos, .ios, .tvos, .watchos, .visionos => darwin.E, |
| 392 | | .freebsd, .kfreebsd => freebsd.E, |
| 392 | .freebsd => freebsd.E, |
| 393 | 393 | .solaris, .illumos => enum(u16) { |
| 394 | 394 | /// No error occurred. |
| 395 | 395 | SUCCESS = 0, |
| ... | ... | @@ -781,7 +781,7 @@ pub const F = switch (native_os) { |
| 781 | 781 | /// exclusive or write lock |
| 782 | 782 | pub const WRLCK = 3; |
| 783 | 783 | }, |
| 784 | | .freebsd, .kfreebsd => struct { |
| 784 | .freebsd => struct { |
| 785 | 785 | /// Duplicate file descriptor. |
| 786 | 786 | pub const DUPFD = 0; |
| 787 | 787 | /// Get file descriptor flags. |
| ... | ... | @@ -1075,7 +1075,7 @@ pub const Flock = switch (native_os) { |
| 1075 | 1075 | type: i16, |
| 1076 | 1076 | whence: i16, |
| 1077 | 1077 | }, |
| 1078 | | .freebsd, .kfreebsd => extern struct { |
| 1078 | .freebsd => extern struct { |
| 1079 | 1079 | /// Starting offset. |
| 1080 | 1080 | start: off_t, |
| 1081 | 1081 | /// Number of consecutive bytes to be locked. |
| ... | ... | @@ -1112,7 +1112,7 @@ pub const Flock = switch (native_os) { |
| 1112 | 1112 | pub const HOST_NAME_MAX = switch (native_os) { |
| 1113 | 1113 | .linux => linux.HOST_NAME_MAX, |
| 1114 | 1114 | .macos, .ios, .tvos, .watchos, .visionos => 72, |
| 1115 | | .openbsd, .haiku, .dragonfly, .netbsd, .solaris, .illumos, .freebsd, .kfreebsd => 255, |
| 1115 | .openbsd, .haiku, .dragonfly, .netbsd, .solaris, .illumos, .freebsd => 255, |
| 1116 | 1116 | else => {}, |
| 1117 | 1117 | }; |
| 1118 | 1118 | pub const IOV_MAX = switch (native_os) { |
| ... | ... | @@ -1120,11 +1120,11 @@ pub const IOV_MAX = switch (native_os) { |
| 1120 | 1120 | .emscripten => emscripten.IOV_MAX, |
| 1121 | 1121 | .openbsd, .haiku, .solaris, .illumos, .wasi => 1024, |
| 1122 | 1122 | .macos, .ios, .tvos, .watchos, .visionos => 16, |
| 1123 | | .dragonfly, .netbsd, .freebsd, .kfreebsd => KERN.IOV_MAX, |
| 1123 | .dragonfly, .netbsd, .freebsd => KERN.IOV_MAX, |
| 1124 | 1124 | else => {}, |
| 1125 | 1125 | }; |
| 1126 | 1126 | pub const CTL = switch (native_os) { |
| 1127 | | .freebsd, .kfreebsd => struct { |
| 1127 | .freebsd => struct { |
| 1128 | 1128 | pub const KERN = 1; |
| 1129 | 1129 | pub const DEBUG = 5; |
| 1130 | 1130 | }, |
| ... | ... | @@ -1162,7 +1162,7 @@ pub const CTL = switch (native_os) { |
| 1162 | 1162 | else => void, |
| 1163 | 1163 | }; |
| 1164 | 1164 | pub const KERN = switch (native_os) { |
| 1165 | | .freebsd, .kfreebsd => struct { |
| 1165 | .freebsd => struct { |
| 1166 | 1166 | /// struct: process entries |
| 1167 | 1167 | pub const PROC = 14; |
| 1168 | 1168 | /// path to executable |
| ... | ... | @@ -1338,7 +1338,7 @@ pub const KERN = switch (native_os) { |
| 1338 | 1338 | pub const MADV = switch (native_os) { |
| 1339 | 1339 | .linux => linux.MADV, |
| 1340 | 1340 | .emscripten => emscripten.MADV, |
| 1341 | | .freebsd, .kfreebsd => struct { |
| 1341 | .freebsd => struct { |
| 1342 | 1342 | pub const NORMAL = 0; |
| 1343 | 1343 | pub const RANDOM = 1; |
| 1344 | 1344 | pub const SEQUENTIAL = 2; |
| ... | ... | @@ -1403,7 +1403,7 @@ pub const MSF = switch (native_os) { |
| 1403 | 1403 | pub const DEACTIVATE = 0x8; |
| 1404 | 1404 | pub const SYNC = 0x10; |
| 1405 | 1405 | }, |
| 1406 | | .openbsd, .haiku, .dragonfly, .netbsd, .solaris, .illumos, .freebsd, .kfreebsd => struct { |
| 1406 | .openbsd, .haiku, .dragonfly, .netbsd, .solaris, .illumos, .freebsd => struct { |
| 1407 | 1407 | pub const ASYNC = 1; |
| 1408 | 1408 | pub const INVALIDATE = 2; |
| 1409 | 1409 | pub const SYNC = 4; |
| ... | ... | @@ -1420,7 +1420,7 @@ pub const NAME_MAX = switch (native_os) { |
| 1420 | 1420 | // Haiku's headers make this 256, to contain room for the terminating null |
| 1421 | 1421 | // character, but POSIX definition says that NAME_MAX does not include the |
| 1422 | 1422 | // terminating null. |
| 1423 | | .haiku, .openbsd, .dragonfly, .netbsd, .solaris, .illumos, .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => 255, |
| 1423 | .haiku, .openbsd, .dragonfly, .netbsd, .solaris, .illumos, .freebsd, .macos, .ios, .tvos, .watchos, .visionos => 255, |
| 1424 | 1424 | else => {}, |
| 1425 | 1425 | }; |
| 1426 | 1426 | pub const PATH_MAX = switch (native_os) { |
| ... | ... | @@ -1428,7 +1428,7 @@ pub const PATH_MAX = switch (native_os) { |
| 1428 | 1428 | .emscripten => emscripten.PATH_MAX, |
| 1429 | 1429 | .wasi => 4096, |
| 1430 | 1430 | .windows => 260, |
| 1431 | | .openbsd, .haiku, .dragonfly, .netbsd, .solaris, .illumos, .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => 1024, |
| 1431 | .openbsd, .haiku, .dragonfly, .netbsd, .solaris, .illumos, .freebsd, .macos, .ios, .tvos, .watchos, .visionos => 1024, |
| 1432 | 1432 | else => {}, |
| 1433 | 1433 | }; |
| 1434 | 1434 | |
| ... | ... | @@ -1465,7 +1465,7 @@ pub const POLL = switch (native_os) { |
| 1465 | 1465 | |
| 1466 | 1466 | pub const STANDARD = IN | PRI | OUT | RDNORM | RDBAND | WRBAND | ERR | HUP | NVAL; |
| 1467 | 1467 | }, |
| 1468 | | .freebsd, .kfreebsd => struct { |
| 1468 | .freebsd => struct { |
| 1469 | 1469 | /// any readable data available. |
| 1470 | 1470 | pub const IN = 0x0001; |
| 1471 | 1471 | /// OOB/Urgent readable data. |
| ... | ... | @@ -1568,7 +1568,7 @@ pub const POLL = switch (native_os) { |
| 1568 | 1568 | pub const PROT = switch (native_os) { |
| 1569 | 1569 | .linux => linux.PROT, |
| 1570 | 1570 | .emscripten => emscripten.PROT, |
| 1571 | | .openbsd, .haiku, .dragonfly, .netbsd, .solaris, .illumos, .freebsd, .kfreebsd, .windows => struct { |
| 1571 | .openbsd, .haiku, .dragonfly, .netbsd, .solaris, .illumos, .freebsd, .windows => struct { |
| 1572 | 1572 | /// page can not be accessed |
| 1573 | 1573 | pub const NONE = 0x0; |
| 1574 | 1574 | /// page can be read |
| ... | ... | @@ -1600,7 +1600,7 @@ pub const PROT = switch (native_os) { |
| 1600 | 1600 | pub const REG = switch (native_os) { |
| 1601 | 1601 | .linux => linux.REG, |
| 1602 | 1602 | .emscripten => emscripten.REG, |
| 1603 | | .freebsd, .kfreebsd => switch (builtin.cpu.arch) { |
| 1603 | .freebsd => switch (builtin.cpu.arch) { |
| 1604 | 1604 | .aarch64 => struct { |
| 1605 | 1605 | pub const FP = 29; |
| 1606 | 1606 | pub const SP = 31; |
| ... | ... | @@ -1683,7 +1683,7 @@ pub const REG = switch (native_os) { |
| 1683 | 1683 | pub const RLIM = switch (native_os) { |
| 1684 | 1684 | .linux => linux.RLIM, |
| 1685 | 1685 | .emscripten => emscripten.RLIM, |
| 1686 | | .openbsd, .haiku, .dragonfly, .netbsd, .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => struct { |
| 1686 | .openbsd, .haiku, .dragonfly, .netbsd, .freebsd, .macos, .ios, .tvos, .watchos, .visionos => struct { |
| 1687 | 1687 | /// No limit |
| 1688 | 1688 | pub const INFINITY: rlim_t = (1 << 63) - 1; |
| 1689 | 1689 | |
| ... | ... | @@ -1774,7 +1774,7 @@ pub const S = switch (native_os) { |
| 1774 | 1774 | return m & IFMT == IFWHT; |
| 1775 | 1775 | } |
| 1776 | 1776 | }, |
| 1777 | | .freebsd, .kfreebsd => struct { |
| 1777 | .freebsd => struct { |
| 1778 | 1778 | pub const IFMT = 0o170000; |
| 1779 | 1779 | |
| 1780 | 1780 | pub const IFIFO = 0o010000; |
| ... | ... | @@ -2137,7 +2137,7 @@ pub const SA = switch (native_os) { |
| 2137 | 2137 | /// signal handler with SIGINFO args with 64bit regs information |
| 2138 | 2138 | pub const @"64REGSET" = 0x0200; |
| 2139 | 2139 | }, |
| 2140 | | .freebsd, .kfreebsd => struct { |
| 2140 | .freebsd => struct { |
| 2141 | 2141 | pub const ONSTACK = 0x0001; |
| 2142 | 2142 | pub const RESTART = 0x0002; |
| 2143 | 2143 | pub const RESETHAND = 0x0004; |
| ... | ... | @@ -2214,7 +2214,7 @@ pub const SEEK = switch (native_os) { |
| 2214 | 2214 | pub const CUR: wasi.whence_t = .CUR; |
| 2215 | 2215 | pub const END: wasi.whence_t = .END; |
| 2216 | 2216 | }, |
| 2217 | | .openbsd, .haiku, .netbsd, .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos, .windows => struct { |
| 2217 | .openbsd, .haiku, .netbsd, .freebsd, .macos, .ios, .tvos, .watchos, .visionos, .windows => struct { |
| 2218 | 2218 | pub const SET = 0; |
| 2219 | 2219 | pub const CUR = 1; |
| 2220 | 2220 | pub const END = 2; |
| ... | ... | @@ -2353,7 +2353,7 @@ pub const SIG = switch (native_os) { |
| 2353 | 2353 | /// user defined signal 2 |
| 2354 | 2354 | pub const USR2 = 31; |
| 2355 | 2355 | }, |
| 2356 | | .freebsd, .kfreebsd => struct { |
| 2356 | .freebsd => struct { |
| 2357 | 2357 | pub const HUP = 1; |
| 2358 | 2358 | pub const INT = 2; |
| 2359 | 2359 | pub const QUIT = 3; |
| ... | ... | @@ -2735,7 +2735,7 @@ pub const Sigaction = switch (native_os) { |
| 2735 | 2735 | mask: sigset_t, |
| 2736 | 2736 | flags: c_uint, |
| 2737 | 2737 | }, |
| 2738 | | .dragonfly, .freebsd, .kfreebsd => extern struct { |
| 2738 | .dragonfly, .freebsd => extern struct { |
| 2739 | 2739 | pub const handler_fn = *align(1) const fn (i32) callconv(.C) void; |
| 2740 | 2740 | pub const sigaction_fn = *const fn (i32, *const siginfo_t, ?*anyopaque) callconv(.C) void; |
| 2741 | 2741 | |
| ... | ... | @@ -2807,7 +2807,7 @@ pub const T = switch (native_os) { |
| 2807 | 2807 | return (inout | ((len & IOCPARM_MASK) << 16) | ((group) << 8) | (num)); |
| 2808 | 2808 | } |
| 2809 | 2809 | }, |
| 2810 | | .freebsd, .kfreebsd => struct { |
| 2810 | .freebsd => struct { |
| 2811 | 2811 | pub const IOCEXCL = 0x2000740d; |
| 2812 | 2812 | pub const IOCNXCL = 0x2000740e; |
| 2813 | 2813 | pub const IOCSCTTY = 0x20007461; |
| ... | ... | @@ -3154,7 +3154,7 @@ pub const W = switch (native_os) { |
| 3154 | 3154 | } |
| 3155 | 3155 | const stopped = 0o177; |
| 3156 | 3156 | }, |
| 3157 | | .freebsd, .kfreebsd => struct { |
| 3157 | .freebsd => struct { |
| 3158 | 3158 | pub const NOHANG = 1; |
| 3159 | 3159 | pub const UNTRACED = 2; |
| 3160 | 3160 | pub const STOPPED = UNTRACED; |
| ... | ... | @@ -3346,7 +3346,7 @@ pub const clock_t = switch (native_os) { |
| 3346 | 3346 | .linux => linux.clock_t, |
| 3347 | 3347 | .emscripten => emscripten.clock_t, |
| 3348 | 3348 | .macos, .ios, .tvos, .watchos, .visionos => c_ulong, |
| 3349 | | .freebsd, .kfreebsd => isize, |
| 3349 | .freebsd => isize, |
| 3350 | 3350 | .openbsd, .solaris, .illumos => i64, |
| 3351 | 3351 | .netbsd => u32, |
| 3352 | 3352 | .haiku => i32, |
| ... | ... | @@ -3360,7 +3360,7 @@ pub const cpu_set_t = switch (native_os) { |
| 3360 | 3360 | pub const dl_phdr_info = switch (native_os) { |
| 3361 | 3361 | .linux => linux.dl_phdr_info, |
| 3362 | 3362 | .emscripten => emscripten.dl_phdr_info, |
| 3363 | | .freebsd, .kfreebsd => extern struct { |
| 3363 | .freebsd => extern struct { |
| 3364 | 3364 | /// Module relocation base. |
| 3365 | 3365 | addr: if (builtin.target.ptrBitWidth() == 32) std.elf.Elf32_Addr else std.elf.Elf64_Addr, |
| 3366 | 3366 | /// Module name. |
| ... | ... | @@ -3414,7 +3414,7 @@ pub const itimerspec = switch (native_os) { |
| 3414 | 3414 | }; |
| 3415 | 3415 | pub const msghdr = switch (native_os) { |
| 3416 | 3416 | .linux => linux.msghdr, |
| 3417 | | .openbsd, .emscripten, .dragonfly, .freebsd, .kfreebsd, .netbsd, .haiku, .solaris, .illumos => extern struct { |
| 3417 | .openbsd, .emscripten, .dragonfly, .freebsd, .netbsd, .haiku, .solaris, .illumos => extern struct { |
| 3418 | 3418 | /// optional address |
| 3419 | 3419 | name: ?*sockaddr, |
| 3420 | 3420 | /// size of address |
| ... | ... | @@ -3434,7 +3434,7 @@ pub const msghdr = switch (native_os) { |
| 3434 | 3434 | }; |
| 3435 | 3435 | pub const msghdr_const = switch (native_os) { |
| 3436 | 3436 | .linux => linux.msghdr_const, |
| 3437 | | .openbsd, .emscripten, .dragonfly, .freebsd, .kfreebsd, .netbsd, .haiku, .solaris, .illumos => extern struct { |
| 3437 | .openbsd, .emscripten, .dragonfly, .freebsd, .netbsd, .haiku, .solaris, .illumos => extern struct { |
| 3438 | 3438 | /// optional address |
| 3439 | 3439 | name: ?*const sockaddr, |
| 3440 | 3440 | /// size of address |
| ... | ... | @@ -3457,7 +3457,7 @@ pub const nfds_t = switch (native_os) { |
| 3457 | 3457 | .emscripten => emscripten.nfds_t, |
| 3458 | 3458 | .haiku, .solaris, .illumos, .wasi => usize, |
| 3459 | 3459 | .windows => c_ulong, |
| 3460 | | .openbsd, .dragonfly, .netbsd, .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => u32, |
| 3460 | .openbsd, .dragonfly, .netbsd, .freebsd, .macos, .ios, .tvos, .watchos, .visionos => u32, |
| 3461 | 3461 | else => void, |
| 3462 | 3462 | }; |
| 3463 | 3463 | pub const perf_event_attr = switch (native_os) { |
| ... | ... | @@ -3484,7 +3484,7 @@ pub const rlim_t = switch (native_os) { |
| 3484 | 3484 | .linux => linux.rlim_t, |
| 3485 | 3485 | .emscripten => emscripten.rlim_t, |
| 3486 | 3486 | .openbsd, .netbsd, .solaris, .illumos, .macos, .ios, .tvos, .watchos, .visionos => u64, |
| 3487 | | .haiku, .dragonfly, .freebsd, .kfreebsd => i64, |
| 3487 | .haiku, .dragonfly, .freebsd => i64, |
| 3488 | 3488 | else => void, |
| 3489 | 3489 | }; |
| 3490 | 3490 | pub const rlimit = switch (native_os) { |
| ... | ... | @@ -3514,7 +3514,7 @@ pub const rlimit_resource = switch (native_os) { |
| 3514 | 3514 | |
| 3515 | 3515 | pub const AS: rlimit_resource = .RSS; |
| 3516 | 3516 | }, |
| 3517 | | .freebsd, .kfreebsd => enum(c_int) { |
| 3517 | .freebsd => enum(c_int) { |
| 3518 | 3518 | CPU = 0, |
| 3519 | 3519 | FSIZE = 1, |
| 3520 | 3520 | DATA = 2, |
| ... | ... | @@ -3660,7 +3660,7 @@ pub const siginfo_t = switch (native_os) { |
| 3660 | 3660 | si_band: c_long, |
| 3661 | 3661 | _pad: [7]c_ulong, |
| 3662 | 3662 | }, |
| 3663 | | .freebsd, .kfreebsd => extern struct { |
| 3663 | .freebsd => extern struct { |
| 3664 | 3664 | // Signal number. |
| 3665 | 3665 | signo: c_int, |
| 3666 | 3666 | // Errno association. |
| ... | ... | @@ -3822,7 +3822,7 @@ pub const sigset_t = switch (native_os) { |
| 3822 | 3822 | .linux => linux.sigset_t, |
| 3823 | 3823 | .emscripten => emscripten.sigset_t, |
| 3824 | 3824 | .openbsd, .macos, .ios, .tvos, .watchos, .visionos => u32, |
| 3825 | | .dragonfly, .netbsd, .solaris, .illumos, .freebsd, .kfreebsd => extern struct { |
| 3825 | .dragonfly, .netbsd, .solaris, .illumos, .freebsd => extern struct { |
| 3826 | 3826 | __bits: [SIG.WORDS]u32, |
| 3827 | 3827 | }, |
| 3828 | 3828 | .haiku => u64, |
| ... | ... | @@ -3831,7 +3831,7 @@ pub const sigset_t = switch (native_os) { |
| 3831 | 3831 | pub const empty_sigset: sigset_t = switch (native_os) { |
| 3832 | 3832 | .linux => linux.empty_sigset, |
| 3833 | 3833 | .emscripten => emscripten.empty_sigset, |
| 3834 | | .dragonfly, .netbsd, .solaris, .illumos, .freebsd, .kfreebsd => .{ .__bits = [_]u32{0} ** SIG.WORDS }, |
| 3834 | .dragonfly, .netbsd, .solaris, .illumos, .freebsd => .{ .__bits = [_]u32{0} ** SIG.WORDS }, |
| 3835 | 3835 | else => 0, |
| 3836 | 3836 | }; |
| 3837 | 3837 | pub const filled_sigset = switch (native_os) { |
| ... | ... | @@ -3841,7 +3841,7 @@ pub const filled_sigset = switch (native_os) { |
| 3841 | 3841 | }; |
| 3842 | 3842 | pub const sigval = switch (native_os) { |
| 3843 | 3843 | .linux => linux.sigval, |
| 3844 | | .openbsd, .dragonfly, .freebsd, .kfreebsd => extern union { |
| 3844 | .openbsd, .dragonfly, .freebsd => extern union { |
| 3845 | 3845 | int: c_int, |
| 3846 | 3846 | ptr: ?*anyopaque, |
| 3847 | 3847 | }, |
| ... | ... | @@ -3851,7 +3851,7 @@ pub const sigval = switch (native_os) { |
| 3851 | 3851 | pub const addrinfo = switch (native_os) { |
| 3852 | 3852 | .linux, .emscripten => linux.addrinfo, |
| 3853 | 3853 | .windows => ws2_32.addrinfo, |
| 3854 | | .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => extern struct { |
| 3854 | .freebsd, .macos, .ios, .tvos, .watchos, .visionos => extern struct { |
| 3855 | 3855 | flags: AI, |
| 3856 | 3856 | family: i32, |
| 3857 | 3857 | socktype: i32, |
| ... | ... | @@ -3955,7 +3955,7 @@ pub const sockaddr = switch (native_os) { |
| 3955 | 3955 | path: [104]u8, |
| 3956 | 3956 | }; |
| 3957 | 3957 | }, |
| 3958 | | .freebsd, .kfreebsd => extern struct { |
| 3958 | .freebsd => extern struct { |
| 3959 | 3959 | /// total length |
| 3960 | 3960 | len: u8, |
| 3961 | 3961 | /// address family |
| ... | ... | @@ -4228,7 +4228,7 @@ pub const in_port_t = u16; |
| 4228 | 4228 | pub const sa_family_t = switch (native_os) { |
| 4229 | 4229 | .linux, .emscripten => linux.sa_family_t, |
| 4230 | 4230 | .windows => ws2_32.ADDRESS_FAMILY, |
| 4231 | | .openbsd, .haiku, .dragonfly, .netbsd, .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => u8, |
| 4231 | .openbsd, .haiku, .dragonfly, .netbsd, .freebsd, .macos, .ios, .tvos, .watchos, .visionos => u8, |
| 4232 | 4232 | .solaris, .illumos => u16, |
| 4233 | 4233 | else => void, |
| 4234 | 4234 | }; |
| ... | ... | @@ -4275,7 +4275,7 @@ pub const AF = switch (native_os) { |
| 4275 | 4275 | pub const PPP = 34; |
| 4276 | 4276 | pub const MAX = 40; |
| 4277 | 4277 | }, |
| 4278 | | .freebsd, .kfreebsd => struct { |
| 4278 | .freebsd => struct { |
| 4279 | 4279 | pub const UNSPEC = 0; |
| 4280 | 4280 | pub const UNIX = 1; |
| 4281 | 4281 | pub const LOCAL = UNIX; |
| ... | ... | @@ -4505,7 +4505,7 @@ pub const PF = switch (native_os) { |
| 4505 | 4505 | pub const PPP = AF.PPP; |
| 4506 | 4506 | pub const MAX = AF.MAX; |
| 4507 | 4507 | }, |
| 4508 | | .freebsd, .kfreebsd => struct { |
| 4508 | .freebsd => struct { |
| 4509 | 4509 | pub const UNSPEC = AF.UNSPEC; |
| 4510 | 4510 | pub const LOCAL = AF.LOCAL; |
| 4511 | 4511 | pub const UNIX = PF.LOCAL; |
| ... | ... | @@ -4691,7 +4691,7 @@ pub const PF = switch (native_os) { |
| 4691 | 4691 | }; |
| 4692 | 4692 | pub const DT = switch (native_os) { |
| 4693 | 4693 | .linux => linux.DT, |
| 4694 | | .netbsd, .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => struct { |
| 4694 | .netbsd, .freebsd, .macos, .ios, .tvos, .watchos, .visionos => struct { |
| 4695 | 4695 | pub const UNKNOWN = 0; |
| 4696 | 4696 | pub const FIFO = 1; |
| 4697 | 4697 | pub const CHR = 2; |
| ... | ... | @@ -4768,7 +4768,7 @@ pub const SOCK = switch (native_os) { |
| 4768 | 4768 | /// with any other `SOCK` bits. |
| 4769 | 4769 | pub const NONBLOCK = 1 << 16; |
| 4770 | 4770 | }, |
| 4771 | | .freebsd, .kfreebsd => struct { |
| 4771 | .freebsd => struct { |
| 4772 | 4772 | pub const STREAM = 1; |
| 4773 | 4773 | pub const DGRAM = 2; |
| 4774 | 4774 | pub const RAW = 3; |
| ... | ... | @@ -4854,7 +4854,7 @@ pub const IPPROTO = switch (native_os) { |
| 4854 | 4854 | pub const IP = 0; |
| 4855 | 4855 | pub const IPV6 = 41; |
| 4856 | 4856 | }, |
| 4857 | | .freebsd, .kfreebsd => struct { |
| 4857 | .freebsd => struct { |
| 4858 | 4858 | /// dummy for IP |
| 4859 | 4859 | pub const IP = 0; |
| 4860 | 4860 | /// control message protocol |
| ... | ... | @@ -5431,7 +5431,7 @@ pub const SOL = switch (native_os) { |
| 5431 | 5431 | .linux => linux.SOL, |
| 5432 | 5432 | .emscripten => emscripten.SOL, |
| 5433 | 5433 | .windows => ws2_32.SOL, |
| 5434 | | .openbsd, .haiku, .dragonfly, .netbsd, .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => struct { |
| 5434 | .openbsd, .haiku, .dragonfly, .netbsd, .freebsd, .macos, .ios, .tvos, .watchos, .visionos => struct { |
| 5435 | 5435 | pub const SOCKET = 0xffff; |
| 5436 | 5436 | }, |
| 5437 | 5437 | .solaris, .illumos => struct { |
| ... | ... | @@ -5474,7 +5474,7 @@ pub const SO = switch (native_os) { |
| 5474 | 5474 | pub const NWRITE = 0x1024; |
| 5475 | 5475 | pub const REUSESHAREUID = 0x1025; |
| 5476 | 5476 | }, |
| 5477 | | .freebsd, .kfreebsd => struct { |
| 5477 | .freebsd => struct { |
| 5478 | 5478 | pub const DEBUG = 0x00000001; |
| 5479 | 5479 | pub const ACCEPTCONN = 0x00000002; |
| 5480 | 5480 | pub const REUSEADDR = 0x00000004; |
| ... | ... | @@ -5670,7 +5670,7 @@ pub const IFNAMESIZE = switch (native_os) { |
| 5670 | 5670 | .linux => linux.IFNAMESIZE, |
| 5671 | 5671 | .emscripten => emscripten.IFNAMESIZE, |
| 5672 | 5672 | .windows => 30, |
| 5673 | | .openbsd, .dragonfly, .netbsd, .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => 16, |
| 5673 | .openbsd, .dragonfly, .netbsd, .freebsd, .macos, .ios, .tvos, .watchos, .visionos => 16, |
| 5674 | 5674 | .solaris, .illumos => 32, |
| 5675 | 5675 | else => void, |
| 5676 | 5676 | }; |
| ... | ... | @@ -5678,7 +5678,7 @@ pub const IFNAMESIZE = switch (native_os) { |
| 5678 | 5678 | pub const stack_t = switch (native_os) { |
| 5679 | 5679 | .linux => linux.stack_t, |
| 5680 | 5680 | .emscripten => emscripten.stack_t, |
| 5681 | | .freebsd, .kfreebsd => extern struct { |
| 5681 | .freebsd => extern struct { |
| 5682 | 5682 | /// Signal stack base. |
| 5683 | 5683 | sp: *anyopaque, |
| 5684 | 5684 | /// Signal stack length. |
| ... | ... | @@ -5700,7 +5700,7 @@ pub const time_t = switch (native_os) { |
| 5700 | 5700 | }; |
| 5701 | 5701 | pub const suseconds_t = switch (native_os) { |
| 5702 | 5702 | .solaris, .illumos => i64, |
| 5703 | | .freebsd, .kfreebsd, .dragonfly => c_long, |
| 5703 | .freebsd, .dragonfly => c_long, |
| 5704 | 5704 | .netbsd => c_int, |
| 5705 | 5705 | .haiku => i32, |
| 5706 | 5706 | else => void, |
| ... | ... | @@ -5717,7 +5717,7 @@ pub const timeval = switch (native_os) { |
| 5717 | 5717 | sec: c_long, |
| 5718 | 5718 | usec: i32, |
| 5719 | 5719 | }, |
| 5720 | | .dragonfly, .netbsd, .freebsd, .kfreebsd, .solaris, .illumos => extern struct { |
| 5720 | .dragonfly, .netbsd, .freebsd, .solaris, .illumos => extern struct { |
| 5721 | 5721 | /// seconds |
| 5722 | 5722 | sec: time_t, |
| 5723 | 5723 | /// microseconds |
| ... | ... | @@ -5751,7 +5751,7 @@ pub const ucontext_t = switch (native_os) { |
| 5751 | 5751 | mcontext: *mcontext_t, |
| 5752 | 5752 | __mcontext_data: mcontext_t, |
| 5753 | 5753 | }, |
| 5754 | | .freebsd, .kfreebsd => extern struct { |
| 5754 | .freebsd => extern struct { |
| 5755 | 5755 | sigmask: sigset_t, |
| 5756 | 5756 | mcontext: mcontext_t, |
| 5757 | 5757 | link: ?*ucontext_t, |
| ... | ... | @@ -5806,7 +5806,7 @@ pub const mcontext_t = switch (native_os) { |
| 5806 | 5806 | .linux => linux.mcontext_t, |
| 5807 | 5807 | .emscripten => emscripten.mcontext_t, |
| 5808 | 5808 | .macos, .ios, .tvos, .watchos, .visionos => darwin.mcontext_t, |
| 5809 | | .freebsd, .kfreebsd => switch (builtin.cpu.arch) { |
| 5809 | .freebsd => switch (builtin.cpu.arch) { |
| 5810 | 5810 | .x86_64 => extern struct { |
| 5811 | 5811 | onstack: u64, |
| 5812 | 5812 | rdi: u64, |
| ... | ... | @@ -5920,7 +5920,7 @@ pub const _errno = switch (native_os) { |
| 5920 | 5920 | .emscripten => private.__errno_location, |
| 5921 | 5921 | .wasi, .dragonfly => private.errnoFromThreadLocal, |
| 5922 | 5922 | .windows => private._errno, |
| 5923 | | .macos, .ios, .tvos, .watchos, .visionos, .freebsd, .kfreebsd => private.__error, |
| 5923 | .macos, .ios, .tvos, .watchos, .visionos, .freebsd => private.__error, |
| 5924 | 5924 | .solaris, .illumos => private.___errno, |
| 5925 | 5925 | .openbsd, .netbsd => private.__errno, |
| 5926 | 5926 | .haiku => haiku._errnop, |
| ... | ... | @@ -5938,7 +5938,7 @@ pub const RTLD = switch (native_os) { |
| 5938 | 5938 | NODELETE: bool = false, |
| 5939 | 5939 | _: u19 = 0, |
| 5940 | 5940 | }, |
| 5941 | | .dragonfly, .freebsd, .kfreebsd => packed struct(u32) { |
| 5941 | .dragonfly, .freebsd => packed struct(u32) { |
| 5942 | 5942 | LAZY: bool = false, |
| 5943 | 5943 | NOW: bool = false, |
| 5944 | 5944 | _2: u6 = 0, |
| ... | ... | @@ -6018,7 +6018,7 @@ pub const dirent = switch (native_os) { |
| 6018 | 6018 | type: u8, |
| 6019 | 6019 | name: [1024]u8, |
| 6020 | 6020 | }, |
| 6021 | | .freebsd, .kfreebsd => extern struct { |
| 6021 | .freebsd => extern struct { |
| 6022 | 6022 | /// File number of entry. |
| 6023 | 6023 | fileno: ino_t, |
| 6024 | 6024 | /// Directory offset of entry. |
| ... | ... | @@ -6093,7 +6093,7 @@ pub const dirent64 = switch (native_os) { |
| 6093 | 6093 | |
| 6094 | 6094 | pub const AI = switch (native_os) { |
| 6095 | 6095 | .linux, .emscripten => linux.AI, |
| 6096 | | .dragonfly, .haiku, .freebsd, .kfreebsd => packed struct(u32) { |
| 6096 | .dragonfly, .haiku, .freebsd => packed struct(u32) { |
| 6097 | 6097 | PASSIVE: bool = false, |
| 6098 | 6098 | CANONNAME: bool = false, |
| 6099 | 6099 | NUMERICHOST: bool = false, |
| ... | ... | @@ -6194,7 +6194,7 @@ pub const EAI = switch (native_os) { |
| 6194 | 6194 | |
| 6195 | 6195 | _, |
| 6196 | 6196 | }, |
| 6197 | | .haiku, .dragonfly, .netbsd, .freebsd, .kfreebsd, .macos, .ios, .tvos, .watchos, .visionos => enum(c_int) { |
| 6197 | .haiku, .dragonfly, .netbsd, .freebsd, .macos, .ios, .tvos, .watchos, .visionos => enum(c_int) { |
| 6198 | 6198 | /// address family for hostname not supported |
| 6199 | 6199 | ADDRFAMILY = 1, |
| 6200 | 6200 | /// temporary failure in name resolution |
| ... | ... | @@ -6455,7 +6455,7 @@ pub const Stat = switch (native_os) { |
| 6455 | 6455 | return self.birthtimespec; |
| 6456 | 6456 | } |
| 6457 | 6457 | }, |
| 6458 | | .freebsd, .kfreebsd => freebsd.Stat, |
| 6458 | .freebsd => freebsd.Stat, |
| 6459 | 6459 | .solaris, .illumos => extern struct { |
| 6460 | 6460 | dev: dev_t, |
| 6461 | 6461 | ino: ino_t, |
| ... | ... | @@ -6640,7 +6640,7 @@ pub const pthread_mutex_t = switch (native_os) { |
| 6640 | 6640 | |
| 6641 | 6641 | const data_len = if (@sizeOf(usize) == 8) 56 else 40; |
| 6642 | 6642 | }, |
| 6643 | | .freebsd, .kfreebsd, .dragonfly, .openbsd => extern struct { |
| 6643 | .freebsd, .dragonfly, .openbsd => extern struct { |
| 6644 | 6644 | inner: ?*anyopaque = null, |
| 6645 | 6645 | }, |
| 6646 | 6646 | .hermit => extern struct { |
| ... | ... | @@ -6689,7 +6689,7 @@ pub const pthread_cond_t = switch (native_os) { |
| 6689 | 6689 | data: [data_len]u8 = [_]u8{0} ** data_len, |
| 6690 | 6690 | const data_len = if (@sizeOf(usize) == 8) 40 else 24; |
| 6691 | 6691 | }, |
| 6692 | | .freebsd, .kfreebsd, .dragonfly, .openbsd => extern struct { |
| 6692 | .freebsd, .dragonfly, .openbsd => extern struct { |
| 6693 | 6693 | inner: ?*anyopaque = null, |
| 6694 | 6694 | }, |
| 6695 | 6695 | .hermit => extern struct { |
| ... | ... | @@ -6741,7 +6741,7 @@ pub const pthread_rwlock_t = switch (native_os) { |
| 6741 | 6741 | sig: c_long = 0x2DA8B3B4, |
| 6742 | 6742 | data: [192]u8 = [_]u8{0} ** 192, |
| 6743 | 6743 | }, |
| 6744 | | .freebsd, .kfreebsd, .dragonfly, .openbsd => extern struct { |
| 6744 | .freebsd, .dragonfly, .openbsd => extern struct { |
| 6745 | 6745 | ptr: ?*anyopaque = null, |
| 6746 | 6746 | }, |
| 6747 | 6747 | .hermit => extern struct { |
| ... | ... | @@ -6788,7 +6788,7 @@ pub const pthread_attr_t = switch (native_os) { |
| 6788 | 6788 | __sig: c_long, |
| 6789 | 6789 | __opaque: [56]u8, |
| 6790 | 6790 | }, |
| 6791 | | .freebsd, .kfreebsd => extern struct { |
| 6791 | .freebsd => extern struct { |
| 6792 | 6792 | inner: ?*anyopaque = null, |
| 6793 | 6793 | }, |
| 6794 | 6794 | .solaris, .illumos => extern struct { |
| ... | ... | @@ -6846,7 +6846,7 @@ pub const sem_t = switch (native_os) { |
| 6846 | 6846 | __size: [4 * @sizeOf(usize)]u8 align(@alignOf(usize)), |
| 6847 | 6847 | }, |
| 6848 | 6848 | .macos, .ios, .tvos, .watchos, .visionos => c_int, |
| 6849 | | .freebsd, .kfreebsd => extern struct { |
| 6849 | .freebsd => extern struct { |
| 6850 | 6850 | _magic: u32, |
| 6851 | 6851 | _kern: extern struct { |
| 6852 | 6852 | _count: u32, |
| ... | ... | @@ -6903,7 +6903,7 @@ pub const Kevent = switch (native_os) { |
| 6903 | 6903 | assert(@offsetOf(@This(), "udata") == 24); |
| 6904 | 6904 | } |
| 6905 | 6905 | }, |
| 6906 | | .freebsd, .kfreebsd => extern struct { |
| 6906 | .freebsd => extern struct { |
| 6907 | 6907 | /// Identifier for this event. |
| 6908 | 6908 | ident: usize, |
| 6909 | 6909 | /// Filter for event. |
| ... | ... | @@ -6974,7 +6974,7 @@ pub const AT = switch (native_os) { |
| 6974 | 6974 | /// Path refers to directory |
| 6975 | 6975 | pub const REMOVEDIR = 0x0080; |
| 6976 | 6976 | }, |
| 6977 | | .freebsd, .kfreebsd => struct { |
| 6977 | .freebsd => struct { |
| 6978 | 6978 | /// Magic value that specify the use of the current working directory |
| 6979 | 6979 | /// to determine the target of relative file paths in the openat() and |
| 6980 | 6980 | /// similar syscalls. |
| ... | ... | @@ -7260,7 +7260,7 @@ pub const O = switch (native_os) { |
| 7260 | 7260 | DIRECTORY: bool = false, |
| 7261 | 7261 | _: u4 = 0, |
| 7262 | 7262 | }, |
| 7263 | | .freebsd, .kfreebsd => packed struct(u32) { |
| 7263 | .freebsd => packed struct(u32) { |
| 7264 | 7264 | ACCMODE: std.posix.ACCMODE = .RDONLY, |
| 7265 | 7265 | NONBLOCK: bool = false, |
| 7266 | 7266 | APPEND: bool = false, |
| ... | ... | @@ -7405,7 +7405,7 @@ pub const MAP = switch (native_os) { |
| 7405 | 7405 | SIZEALIGN: bool = false, |
| 7406 | 7406 | _: u13 = 0, |
| 7407 | 7407 | }, |
| 7408 | | .freebsd, .kfreebsd => packed struct(u32) { |
| 7408 | .freebsd => packed struct(u32) { |
| 7409 | 7409 | TYPE: enum(u4) { |
| 7410 | 7410 | SHARED = 0x01, |
| 7411 | 7411 | PRIVATE = 0x02, |
| ... | ... | @@ -7455,7 +7455,7 @@ pub const V = switch (native_os) { |
| 7455 | 7455 | TIME, |
| 7456 | 7456 | STATUS, |
| 7457 | 7457 | }, |
| 7458 | | .freebsd, .kfreebsd => enum { |
| 7458 | .freebsd => enum { |
| 7459 | 7459 | EOF, |
| 7460 | 7460 | EOL, |
| 7461 | 7461 | EOL2, |
| ... | ... | @@ -7533,7 +7533,7 @@ pub const V = switch (native_os) { |
| 7533 | 7533 | |
| 7534 | 7534 | pub const NCCS = switch (native_os) { |
| 7535 | 7535 | .linux => linux.NCCS, |
| 7536 | | .macos, .ios, .tvos, .watchos, .visionos, .freebsd, .kfreebsd, .netbsd, .openbsd, .dragonfly => 20, |
| 7536 | .macos, .ios, .tvos, .watchos, .visionos, .freebsd, .netbsd, .openbsd, .dragonfly => 20, |
| 7537 | 7537 | .haiku => 11, |
| 7538 | 7538 | .solaris, .illumos => 19, |
| 7539 | 7539 | .emscripten, .wasi => 32, |
| ... | ... | @@ -7551,7 +7551,7 @@ pub const termios = switch (native_os) { |
| 7551 | 7551 | ispeed: speed_t align(8), |
| 7552 | 7552 | ospeed: speed_t, |
| 7553 | 7553 | }, |
| 7554 | | .freebsd, .kfreebsd, .netbsd, .dragonfly, .openbsd => extern struct { |
| 7554 | .freebsd, .netbsd, .dragonfly, .openbsd => extern struct { |
| 7555 | 7555 | iflag: tc_iflag_t, |
| 7556 | 7556 | oflag: tc_oflag_t, |
| 7557 | 7557 | cflag: tc_cflag_t, |
| ... | ... | @@ -7610,7 +7610,7 @@ pub const tc_iflag_t = switch (native_os) { |
| 7610 | 7610 | IUTF8: bool = false, |
| 7611 | 7611 | _: u49 = 0, |
| 7612 | 7612 | }, |
| 7613 | | .netbsd, .freebsd, .kfreebsd, .dragonfly => packed struct(u32) { |
| 7613 | .netbsd, .freebsd, .dragonfly => packed struct(u32) { |
| 7614 | 7614 | IGNBRK: bool = false, |
| 7615 | 7615 | BRKINT: bool = false, |
| 7616 | 7616 | IGNPAR: bool = false, |
| ... | ... | @@ -7742,7 +7742,7 @@ pub const tc_oflag_t = switch (native_os) { |
| 7742 | 7742 | ONLRET: bool = false, |
| 7743 | 7743 | _: u24 = 0, |
| 7744 | 7744 | }, |
| 7745 | | .freebsd, .kfreebsd, .dragonfly => packed struct(u32) { |
| 7745 | .freebsd, .dragonfly => packed struct(u32) { |
| 7746 | 7746 | OPOST: bool = false, |
| 7747 | 7747 | ONLCR: bool = false, |
| 7748 | 7748 | _2: u1 = 0, |
| ... | ... | @@ -7818,7 +7818,7 @@ pub const tc_cflag_t = switch (native_os) { |
| 7818 | 7818 | CCAR_OFLOW: bool = false, |
| 7819 | 7819 | _: u43 = 0, |
| 7820 | 7820 | }, |
| 7821 | | .freebsd, .kfreebsd => packed struct(u32) { |
| 7821 | .freebsd => packed struct(u32) { |
| 7822 | 7822 | CIGNORE: bool = false, |
| 7823 | 7823 | _1: u7 = 0, |
| 7824 | 7824 | CSIZE: CSIZE = .CS5, |
| ... | ... | @@ -7959,7 +7959,7 @@ pub const tc_lflag_t = switch (native_os) { |
| 7959 | 7959 | NOFLSH: bool = false, |
| 7960 | 7960 | _: u32 = 0, |
| 7961 | 7961 | }, |
| 7962 | | .netbsd, .freebsd, .kfreebsd, .dragonfly => packed struct(u32) { |
| 7962 | .netbsd, .freebsd, .dragonfly => packed struct(u32) { |
| 7963 | 7963 | ECHOKE: bool = false, |
| 7964 | 7964 | ECHOE: bool = false, |
| 7965 | 7965 | ECHOK: bool = false, |
| ... | ... | @@ -8086,7 +8086,7 @@ pub const speed_t = switch (native_os) { |
| 8086 | 8086 | B115200 = 115200, |
| 8087 | 8087 | B230400 = 230400, |
| 8088 | 8088 | }, |
| 8089 | | .freebsd, .kfreebsd, .netbsd => enum(c_uint) { |
| 8089 | .freebsd, .netbsd => enum(c_uint) { |
| 8090 | 8090 | B0 = 0, |
| 8091 | 8091 | B50 = 50, |
| 8092 | 8092 | B75 = 75, |
| ... | ... | @@ -8250,7 +8250,7 @@ pub const NSIG = switch (native_os) { |
| 8250 | 8250 | .linux => linux.NSIG, |
| 8251 | 8251 | .windows => 23, |
| 8252 | 8252 | .haiku => 65, |
| 8253 | | .netbsd, .freebsd, .kfreebsd => 32, |
| 8253 | .netbsd, .freebsd => 32, |
| 8254 | 8254 | .solaris, .illumos => 75, |
| 8255 | 8255 | .openbsd => 33, |
| 8256 | 8256 | else => {}, |
| ... | ... | @@ -8258,7 +8258,7 @@ pub const NSIG = switch (native_os) { |
| 8258 | 8258 | |
| 8259 | 8259 | pub const MINSIGSTKSZ = switch (native_os) { |
| 8260 | 8260 | .macos, .ios, .tvos, .watchos, .visionos => 32768, |
| 8261 | | .freebsd, .kfreebsd => switch (builtin.cpu.arch) { |
| 8261 | .freebsd => switch (builtin.cpu.arch) { |
| 8262 | 8262 | .x86, .x86_64 => 2048, |
| 8263 | 8263 | .arm, .aarch64 => 4096, |
| 8264 | 8264 | else => @compileError("unsupported arch"), |
| ... | ... | @@ -8270,7 +8270,7 @@ pub const MINSIGSTKSZ = switch (native_os) { |
| 8270 | 8270 | }; |
| 8271 | 8271 | pub const SIGSTKSZ = switch (native_os) { |
| 8272 | 8272 | .macos, .ios, .tvos, .watchos, .visionos => 131072, |
| 8273 | | .netbsd, .freebsd, .kfreebsd => MINSIGSTKSZ + 32768, |
| 8273 | .netbsd, .freebsd => MINSIGSTKSZ + 32768, |
| 8274 | 8274 | .solaris, .illumos => 8192, |
| 8275 | 8275 | .haiku => 16384, |
| 8276 | 8276 | .openbsd => MINSIGSTKSZ + (1 << openbsd.MAX_PAGE_SHIFT) * 4, |
| ... | ... | @@ -8278,7 +8278,7 @@ pub const SIGSTKSZ = switch (native_os) { |
| 8278 | 8278 | }; |
| 8279 | 8279 | pub const SS = switch (native_os) { |
| 8280 | 8280 | .linux => linux.SS, |
| 8281 | | .openbsd, .macos, .ios, .tvos, .watchos, .visionos, .netbsd, .freebsd, .kfreebsd => struct { |
| 8281 | .openbsd, .macos, .ios, .tvos, .watchos, .visionos, .netbsd, .freebsd => struct { |
| 8282 | 8282 | pub const ONSTACK = 1; |
| 8283 | 8283 | pub const DISABLE = 4; |
| 8284 | 8284 | }, |
| ... | ... | @@ -8882,7 +8882,7 @@ pub extern "c" fn fopen64(noalias filename: [*:0]const u8, noalias modes: [*:0]c |
| 8882 | 8882 | pub extern "c" fn ftruncate64(fd: c_int, length: off_t) c_int; |
| 8883 | 8883 | pub extern "c" fn fallocate(fd: fd_t, mode: c_int, offset: off_t, len: off_t) c_int; |
| 8884 | 8884 | pub const sendfile = switch (native_os) { |
| 8885 | | .freebsd, .kfreebsd => freebsd.sendfile, |
| 8885 | .freebsd => freebsd.sendfile, |
| 8886 | 8886 | .macos, .ios, .tvos, .watchos, .visionos => darwin.sendfile, |
| 8887 | 8887 | .linux => private.sendfile, |
| 8888 | 8888 | else => {}, |
| ... | ... | @@ -8899,12 +8899,12 @@ pub const sigaltstack = switch (native_os) { |
| 8899 | 8899 | |
| 8900 | 8900 | pub extern "c" fn memfd_create(name: [*:0]const u8, flags: c_uint) c_int; |
| 8901 | 8901 | pub const pipe2 = switch (native_os) { |
| 8902 | | .dragonfly, .emscripten, .netbsd, .freebsd, .kfreebsd, .solaris, .illumos, .openbsd, .linux => private.pipe2, |
| 8902 | .dragonfly, .emscripten, .netbsd, .freebsd, .solaris, .illumos, .openbsd, .linux => private.pipe2, |
| 8903 | 8903 | else => {}, |
| 8904 | 8904 | }; |
| 8905 | 8905 | pub const copy_file_range = switch (native_os) { |
| 8906 | 8906 | .linux => private.copy_file_range, |
| 8907 | | .freebsd, .kfreebsd => freebsd.copy_file_range, |
| 8907 | .freebsd => freebsd.copy_file_range, |
| 8908 | 8908 | else => {}, |
| 8909 | 8909 | }; |
| 8910 | 8910 | |
| ... | ... | @@ -9071,7 +9071,6 @@ pub const fork = switch (native_os) { |
| 9071 | 9071 | .dragonfly, |
| 9072 | 9072 | .freebsd, |
| 9073 | 9073 | .ios, |
| 9074 | | .kfreebsd, |
| 9075 | 9074 | .linux, |
| 9076 | 9075 | .macos, |
| 9077 | 9076 | .netbsd, |
| ... | ... | @@ -9683,7 +9682,7 @@ const private = struct { |
| 9683 | 9682 | extern "c" fn fstatat(dirfd: fd_t, path: [*:0]const u8, buf: *Stat, flag: u32) c_int; |
| 9684 | 9683 | extern "c" fn getdirentries(fd: fd_t, buf_ptr: [*]u8, nbytes: usize, basep: *i64) isize; |
| 9685 | 9684 | extern "c" fn getdents(fd: c_int, buf_ptr: [*]u8, nbytes: usize) switch (native_os) { |
| 9686 | | .freebsd, .kfreebsd => isize, |
| 9685 | .freebsd => isize, |
| 9687 | 9686 | .solaris, .illumos => usize, |
| 9688 | 9687 | else => c_int, |
| 9689 | 9688 | }; |