From b10d76cd53d9d9985bbaf9fc88e26faa1ce1be4a Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 12 Jun 2023 00:46:35 +0300 Subject: [PATCH] Update libc --- libc/include/sys/types.h | 6 ++++++ libc/include/sys/wait.h | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/libc/include/sys/types.h b/libc/include/sys/types.h index 750011d7..b8147a00 100644 --- a/libc/include/sys/types.h +++ b/libc/include/sys/types.h @@ -10,6 +10,7 @@ #endif // !PRIVATE typedef int __pid_t; +typedef int __ssize_t; typedef unsigned int __id_t; typedef unsigned int __useconds_t; @@ -28,4 +29,9 @@ typedef __useconds_t useconds_t; #define __useconds_t_defined #endif +#ifndef __ssize_t_defined +typedef __ssize_t ssize_t; +#define __ssize_t_defined +#endif + #endif diff --git a/libc/include/sys/wait.h b/libc/include/sys/wait.h index ff08a14b..0d58ad3e 100644 --- a/libc/include/sys/wait.h +++ b/libc/include/sys/wait.h @@ -17,6 +17,13 @@ typedef struct #include +#define WCONTINUED 1 +#define WNOHANG 2 +#define WUNTRACED 4 +#define WEXITED 8 +#define WNOWAIT 16 +#define WSTOPPED 32 + /** * @brief Macro for extracting the exit status from a status value. *