std.os.sigprocmask: @bitCast flags parameter
This commit is contained in:
@@ -5620,7 +5620,7 @@ pub fn sigaction(sig: u6, noalias act: ?*const Sigaction, noalias oact: ?*Sigact
|
||||
|
||||
/// Sets the thread signal mask.
|
||||
pub fn sigprocmask(flags: u32, noalias set: ?*const sigset_t, noalias oldset: ?*sigset_t) void {
|
||||
switch (errno(system.sigprocmask(flags, set, oldset))) {
|
||||
switch (errno(system.sigprocmask(@bitCast(flags), set, oldset))) {
|
||||
.SUCCESS => return,
|
||||
.FAULT => unreachable,
|
||||
.INVAL => unreachable,
|
||||
|
||||
Reference in New Issue
Block a user