diff --git a/kernel/include/sortix/__/wait.h b/kernel/include/sortix/__/wait.h index 7c324a58..b9d38232 100644 --- a/kernel/include/sortix/__/wait.h +++ b/kernel/include/sortix/__/wait.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Jonas 'Sortie' Termansen. + * Copyright (c) 2014, 2024 Jonas 'Sortie' Termansen. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -42,6 +42,8 @@ extern "C" { #define __WSTOPSIG(status) __WTERMSIG(status) +#define __WCOREDUMP(status) ((status) & 0) + #define __WCONSTRUCT(nature, exitcode, signal) \ (((nature) & 0xFF) << 16 | \ ((exitcode) & 0xFF) << 8 | \ diff --git a/kernel/include/sortix/wait.h b/kernel/include/sortix/wait.h index 9b2a0b09..16aaf003 100644 --- a/kernel/include/sortix/wait.h +++ b/kernel/include/sortix/wait.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2014 Jonas 'Sortie' Termansen. + * Copyright (c) 2012, 2014, 2024 Jonas 'Sortie' Termansen. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -48,6 +48,8 @@ extern "C" { #define WSTOPSIG(status) __WSTOPSIG(status) +#define WCOREDUMP(status) __WCOREDUMP(status) + #define WCONSTRUCT(nature, exitcode, signal) \ __WCONSTRUCT(nature, exitcode, signal)