authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-18 10:49:33-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-18 10:49:33-07:00
log4187008b5ed3118d9cf58dbdff8bad2974a7910d
tree6c008918a7fc4c5edf95594c4fa2de0ebe99b6c7
parent93dbf30dcf04ba7b0b303ef9a2e5343d0abf1d9c

std: update freebsd bits to new builtin


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/os/bits/freebsd.zig+3-3
...@@ -4,7 +4,7 @@...@@ -4,7 +4,7 @@
4// The MIT license requires this copyright notice to be included in all copies4// The MIT license requires this copyright notice to be included in all copies
5// and substantial portions of the software.5// and substantial portions of the software.
6const std = @import("../../std.zig");6const std = @import("../../std.zig");
7const builtin = std.builtin;7const builtin = @import("builtin");
8const maxInt = std.math.maxInt;8const maxInt = std.math.maxInt;
99
10pub const blksize_t = i32;10pub const blksize_t = i32;
...@@ -842,7 +842,7 @@ pub const sigset_t = extern struct {...@@ -842,7 +842,7 @@ pub const sigset_t = extern struct {
842842
843pub const empty_sigset = sigset_t{ .__bits = [_]u32{0} ** _SIG_WORDS };843pub const empty_sigset = sigset_t{ .__bits = [_]u32{0} ** _SIG_WORDS };
844844
845pub usingnamespace switch (builtin.arch) {845pub usingnamespace switch (builtin.target.cpu.arch) {
846 .x86_64 => struct {846 .x86_64 => struct {
847 pub const ucontext_t = extern struct {847 pub const ucontext_t = extern struct {
848 sigmask: sigset_t,848 sigmask: sigset_t,
...@@ -1011,7 +1011,7 @@ pub const EOWNERDEAD = 96; // Previous owner died...@@ -1011,7 +1011,7 @@ pub const EOWNERDEAD = 96; // Previous owner died
10111011
1012pub const ELAST = 96; // Must be equal largest errno1012pub const ELAST = 96; // Must be equal largest errno
10131013
1014pub const MINSIGSTKSZ = switch (builtin.arch) {1014pub const MINSIGSTKSZ = switch (builtin.target.cpu.arch) {
1015 .i386, .x86_64 => 2048,1015 .i386, .x86_64 => 2048,
1016 .arm, .aarch64 => 4096,1016 .arm, .aarch64 => 4096,
1017 else => @compileError("MINSIGSTKSZ not defined for this architecture"),1017 else => @compileError("MINSIGSTKSZ not defined for this architecture"),