From e244c150c24921db6b73462857e991da5d3fe8bd Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 30 Oct 2022 19:24:26 +0100 Subject: [PATCH] Kernel, libc: Add ECHILD --- kernel/include/std/errno.h | 1 + libs/libc/include/errno.h | 1 + libs/libc/src/string.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/kernel/include/std/errno.h b/kernel/include/std/errno.h index 973b6fab..be1713a3 100644 --- a/kernel/include/std/errno.h +++ b/kernel/include/std/errno.h @@ -7,6 +7,7 @@ #define E2BIG 7 #define ENOEXEC 8 #define EBADF 9 +#define ECHILD 10 #define EAGAIN 11 #define ENOMEM 12 #define EACCES 13 diff --git a/libs/libc/include/errno.h b/libs/libc/include/errno.h index 3d3029c5..242141b6 100644 --- a/libs/libc/include/errno.h +++ b/libs/libc/include/errno.h @@ -12,6 +12,7 @@ extern int errno; #define E2BIG 7 // Argument list too long #define ENOEXEC 8 // Exec format error #define EBADF 9 // Bad file descriptor +#define ECHILD 10 // No child processes #define EAGAIN 11 // Resource temporarily unavailable #define ENOMEM 12 // Cannot allocate memory #define EACCES 13 // Permission denied diff --git a/libs/libc/src/string.cpp b/libs/libc/src/string.cpp index 0695dbc6..092123c2 100644 --- a/libs/libc/src/string.cpp +++ b/libs/libc/src/string.cpp @@ -265,6 +265,7 @@ extern "C" case E2BIG: return "Argument list too long"; case ENOEXEC: return "Exec format error"; case EBADF: return "Bad file descriptor"; + case ECHILD: return "No child processes"; case EAGAIN: return "Resource temporarily unavailable"; case ENOMEM: return "Cannot allocate memory"; case EACCES: return "Permission denied";