From 0ff1b68c0936f378e2831cf6a70980d681e59fe1 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 23 Jun 2024 23:22:50 +0200 Subject: [PATCH] Add WCOREDUMP. --- kernel/include/sortix/__/wait.h | 4 +++- kernel/include/sortix/wait.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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)