From f4c6afbdae519faa7a21a5b2e4de2b0e5c729bb1 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 2 Dec 2024 01:43:17 +0200 Subject: [PATCH] LibC: Add definitions to LibC that are used by some ports --- userspace/libraries/LibC/include/netdb.h | 5 +++++ userspace/libraries/LibC/include/signal.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/userspace/libraries/LibC/include/netdb.h b/userspace/libraries/LibC/include/netdb.h index bd0154e2..466e034e 100644 --- a/userspace/libraries/LibC/include/netdb.h +++ b/userspace/libraries/LibC/include/netdb.h @@ -42,6 +42,11 @@ __BEGIN_DECLS #define EAI_SYSTEM 9 #define EAI_OVERFLOW 10 +#define HOST_NOT_FOUND 1 +#define NO_DATA 2 +#define NO_RECOVERY 3 +#define TRY_AGAIN 4 + struct hostent { char* h_name; /* Official name of the host. */ diff --git a/userspace/libraries/LibC/include/signal.h b/userspace/libraries/LibC/include/signal.h index 89674506..47995a18 100644 --- a/userspace/libraries/LibC/include/signal.h +++ b/userspace/libraries/LibC/include/signal.h @@ -108,6 +108,8 @@ struct sigevent #define SIGRTMIN 30 #define SIGRTMAX (SIGRTMIN+32) +#define NSIG SIGRTMAX + #define SI_USER 10 #define SI_QUEUE 11 #define SI_TIMER 12