From 8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 7 Dec 2025 22:22:16 +0100 Subject: Add bin/true and bin/false implementations - Added assembly implementations for `true` and `false` commands. - Updated Kbuild files to include new binaries. - Removed unused libraries and headers. - Cleaned up makefile and unused code. --- include/sys/wait.h | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'include/sys/wait.h') diff --git a/include/sys/wait.h b/include/sys/wait.h index bbe8a8fe..2a7438d7 100644 --- a/include/sys/wait.h +++ b/include/sys/wait.h @@ -1,20 +1,13 @@ #ifndef __WAIT_H #define __WAIT_H -#define WCONTINUED 0x00000008 -#define WNOHANG 0x00000001 -#define WUNTRACED 0x00000002 -#define WCOREDUMP(__s) ((__s) & 0x80) -#define WIFCONTINUED(__s) ((__s) == 0xffff) -#define WIFEXITED(__s) (!WTERMSIG(__s)) -#define WIFSIGNALED(__s) (((s) & 0xffff) - 1U < 0xffu) -#define WIFSTOPPED(__s) ((short)((((__s) & 0xffff) * 0x10001U) >> 8) > 0x7f00) -#define WSTOPSIG(__s) WEXITSTATUS(__s) -#define WTERMSIG(__s) ((__s) & 0x7f) - -#define WEXITED -#define WNOWAIT -#define WSTOPPED +#define __BITS_WAIT_H_ +#include + +#define WCONTINUED 0x00000008 +#define WEXITED 0x00000004 +#define WNOWAIT 0x01000000 +#define WSTOPPED WUNTRACED typedef __UINT32_TYPE__ id_t; typedef __INT64_TYPE__ pid_t; -- cgit v1.2.3