diff --git a/userspace/libraries/LibC/include/netdb.h b/userspace/libraries/LibC/include/netdb.h index 343f62ab..bd0154e2 100644 --- a/userspace/libraries/LibC/include/netdb.h +++ b/userspace/libraries/LibC/include/netdb.h @@ -28,6 +28,9 @@ __BEGIN_DECLS #define NI_NUMERICSCOPE 0x10 #define NI_DGRAM 0x20 +#define NI_MAXHOST 1025 +#define NI_MAXSERV 32 + #define EAI_AGAIN 1 #define EAI_BADFLAGS 2 #define EAI_FAIL 3 @@ -107,6 +110,8 @@ void setnetent(int stayopen); void setprotoent(int stayopen); void setservent(int stayopen); +extern int h_errno; + __END_DECLS #endif diff --git a/userspace/libraries/LibC/include/sys/socket.h b/userspace/libraries/LibC/include/sys/socket.h index aaf7b920..3581d262 100644 --- a/userspace/libraries/LibC/include/sys/socket.h +++ b/userspace/libraries/LibC/include/sys/socket.h @@ -67,10 +67,10 @@ struct linger int l_linger; /* Linger time, in seconds. */ }; -#define SOCK_DGRAM 0 -#define SOCK_RAW 1 -#define SOCK_SEQPACKET 2 -#define SOCK_STREAM 3 +#define SOCK_DGRAM 1 +#define SOCK_RAW 2 +#define SOCK_SEQPACKET 3 +#define SOCK_STREAM 4 #define SOL_SOCKET 1 diff --git a/userspace/libraries/LibC/include/utmpx.h b/userspace/libraries/LibC/include/utmpx.h index 2299e4b5..4d8164a4 100644 --- a/userspace/libraries/LibC/include/utmpx.h +++ b/userspace/libraries/LibC/include/utmpx.h @@ -20,6 +20,7 @@ struct utmpx pid_t ut_pid; /* Process ID. */ short ut_type; /* Type of entry. */ struct timeval ut_tv; /* Time entry was made. */ + char ut_host[32]; }; #define EMPTY 0