LibC: Add definitions to LibC that are used by some ports

This commit is contained in:
Bananymous 2024-12-02 01:43:17 +02:00
parent d1ef380e6b
commit f4c6afbdae
2 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,11 @@ __BEGIN_DECLS
#define EAI_SYSTEM 9 #define EAI_SYSTEM 9
#define EAI_OVERFLOW 10 #define EAI_OVERFLOW 10
#define HOST_NOT_FOUND 1
#define NO_DATA 2
#define NO_RECOVERY 3
#define TRY_AGAIN 4
struct hostent struct hostent
{ {
char* h_name; /* Official name of the host. */ char* h_name; /* Official name of the host. */

View File

@ -108,6 +108,8 @@ struct sigevent
#define SIGRTMIN 30 #define SIGRTMIN 30
#define SIGRTMAX (SIGRTMIN+32) #define SIGRTMAX (SIGRTMIN+32)
#define NSIG SIGRTMAX
#define SI_USER 10 #define SI_USER 10
#define SI_QUEUE 11 #define SI_QUEUE 11
#define SI_TIMER 12 #define SI_TIMER 12