diff options
| author | LemonBoy <thatlemon@gmail.com> | 2020-12-12 13:57:25 +0100 |
|---|---|---|
| committer | LemonBoy <thatlemon@gmail.com> | 2020-12-12 13:57:25 +0100 |
| commit | beae3cea178a0a93c25164e992e01c7b5b78e4d7 (patch) | |
| tree | 71deda4290771d8d710abfbbbc9158016eabc4ea /lib/std/os/bits/linux.zig | |
| parent | d569e37cb538d17d009f5632c25acd643d3736cb (diff) | |
| download | zig-beae3cea178a0a93c25164e992e01c7b5b78e4d7.tar.gz zig-beae3cea178a0a93c25164e992e01c7b5b78e4d7.zip | |
std: Improve sigaction interface
Add a smoke test to prevent regressions.
Diffstat (limited to 'lib/std/os/bits/linux.zig')
| -rw-r--r-- | lib/std/os/bits/linux.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig index 6952ab7e0e..72621b7fee 100644 --- a/lib/std/os/bits/linux.zig +++ b/lib/std/os/bits/linux.zig @@ -867,13 +867,13 @@ pub const app_mask: sigset_t = [2]u32{ 0xfffffffc, 0x7fffffff } ++ [_]u32{0xffff pub const k_sigaction = if (is_mips) extern struct { flags: usize, - sigaction: ?fn (i32, *siginfo_t, ?*c_void) callconv(.C) void, + sigaction: ?fn (i32, *const siginfo_t, ?*const c_void) callconv(.C) void, mask: [4]u32, restorer: fn () callconv(.C) void, } else extern struct { - sigaction: ?fn (i32, *siginfo_t, ?*c_void) callconv(.C) void, + sigaction: ?fn (i32, *const siginfo_t, ?*const c_void) callconv(.C) void, flags: usize, restorer: fn () callconv(.C) void, mask: [2]u32, @@ -881,7 +881,7 @@ else /// Renamed from `sigaction` to `Sigaction` to avoid conflict with the syscall. pub const Sigaction = extern struct { - pub const sigaction_fn = fn (i32, *siginfo_t, ?*c_void) callconv(.C) void; + pub const sigaction_fn = fn (i32, *const siginfo_t, ?*const c_void) callconv(.C) void; sigaction: ?sigaction_fn, mask: sigset_t, flags: u32, |
