diff options
Diffstat (limited to 'system/include')
-rw-r--r-- | system/include/net/arpa/inet.h | 4 | ||||
-rw-r--r-- | system/include/sys/ioctl.h | 2 | ||||
-rw-r--r-- | system/include/sys/socket.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/system/include/net/arpa/inet.h b/system/include/net/arpa/inet.h index 06d44183..83eaa0fa 100644 --- a/system/include/net/arpa/inet.h +++ b/system/include/net/arpa/inet.h @@ -7,6 +7,7 @@ extern "C" { #endif #include <stdint.h> +#include <netdb.h> uint32_t htonl(uint32_t hostlong); uint16_t htons(uint16_t hostshort); @@ -16,6 +17,9 @@ uint16_t ntohs(uint16_t netshort); int inet_aton(const char *cp, struct in_addr *addr); char *inet_ntoa(struct in_addr in); +int inet_pton(int af, const char *src, void *dst); +const char *inet_ntop(int af, const void *src, char *dst, socklen_t size); + typedef long in_addr_t; in_addr_t inet_addr(const char *cp); diff --git a/system/include/sys/ioctl.h b/system/include/sys/ioctl.h index edc9ea36..12857ae3 100644 --- a/system/include/sys/ioctl.h +++ b/system/include/sys/ioctl.h @@ -11,6 +11,8 @@ extern "C" { #define TIOCGSIZE 80 // bogus #define TIOCGWINSZ 80 // bogus +#define FIONREAD 1 + int ioctl(int d, int request, ...); #define SO_RCVTIMEO 1000 diff --git a/system/include/sys/socket.h b/system/include/sys/socket.h index 69bbdcaa..2955a56d 100644 --- a/system/include/sys/socket.h +++ b/system/include/sys/socket.h @@ -23,6 +23,7 @@ extern "C" { #define SO_RCVBUF 60 #define SO_LINGER 70 #define SO_NOSIGPIPE 80 +#define SO_KEEPALIVE 90 #define SHUT_RDWR 1 |