Add 0 to SIG enum

This commit is contained in:
psznm 2025-11-22 19:30:21 +01:00
parent 3f2cf1c002
commit 9781e02eea
2 changed files with 14 additions and 0 deletions

View file

@ -2662,6 +2662,8 @@ pub const SIG = switch (native_os) {
pub const IOT: SIG = .ABRT;
pub const POLL: SIG = .EMT;
/// Invalid signal. Used in kill to perform checking without sending signal.
INVAL = 0,
/// hangup
HUP = 1,
/// interrupt
@ -2756,6 +2758,7 @@ pub const SIG = switch (native_os) {
pub const RTMIN = 65;
pub const RTMAX = 126;
INVAL = 0,
HUP = 1,
INT = 2,
QUIT = 3,
@ -2821,6 +2824,7 @@ pub const SIG = switch (native_os) {
pub const POLL: SIG = .IO;
INVAL = 0,
HUP = 1,
INT = 2,
QUIT = 3,
@ -2895,6 +2899,7 @@ pub const SIG = switch (native_os) {
pub const IOT: SIG = .ABRT;
INVAL = 0,
HUP = 1,
INT = 2,
QUIT = 3,
@ -2941,6 +2946,7 @@ pub const SIG = switch (native_os) {
pub const IOT: SIG = .ABRT;
INVAL = 0,
HUP = 1,
INT = 2,
QUIT = 3,
@ -2989,6 +2995,7 @@ pub const SIG = switch (native_os) {
pub const IOT: SIG = .ABRT;
INVAL = 0,
HUP = 1,
INT = 2,
QUIT = 3,
@ -3035,6 +3042,7 @@ pub const SIG = switch (native_os) {
pub const IOT: SIG = .ABRT;
INVAL = 0,
HUP = 1,
INT = 2,
QUIT = 3,

View file

@ -3741,6 +3741,8 @@ pub const SIG = if (is_mips) enum(u32) {
pub const IOT: SIG = .ABRT;
pub const POLL: SIG = .IO;
INVAL = 0,
// /arch/mips/include/uapi/asm/signal.h#L25
HUP = 1,
INT = 2,
@ -3787,6 +3789,8 @@ pub const SIG = if (is_mips) enum(u32) {
pub const PWR: SIG = .LOST;
pub const POLL: SIG = .IO;
/// Perform error checking without sending signal.
INVAL = 0,
HUP = 1,
INT = 2,
QUIT = 3,
@ -3830,6 +3834,8 @@ pub const SIG = if (is_mips) enum(u32) {
pub const POLL: SIG = .IO;
pub const IOT: SIG = .ABRT;
/// Perform error checking without sending signal.
INVAL = 0,
HUP = 1,
INT = 2,
QUIT = 3,