diff options
Diffstat (limited to 'userland/libc/include')
-rw-r--r-- | userland/libc/include/netdb.h | 7 | ||||
-rw-r--r-- | userland/libc/include/unistd.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/userland/libc/include/netdb.h b/userland/libc/include/netdb.h index e69de29..4b4dc99 100644 --- a/userland/libc/include/netdb.h +++ b/userland/libc/include/netdb.h @@ -0,0 +1,7 @@ +#include <arpa/inet.h> +#include <sys/socket.h> + +int getaddrinfo(const char *restrict node, const char *restrict service, + const struct addrinfo *restrict hints, + struct addrinfo **restrict res); +void freeaddrinfo(struct addrinfo *res); diff --git a/userland/libc/include/unistd.h b/userland/libc/include/unistd.h index f3e0f28..b44ca3e 100644 --- a/userland/libc/include/unistd.h +++ b/userland/libc/include/unistd.h @@ -30,5 +30,5 @@ int pread(int fd, void *buf, size_t count, size_t offset); int fork(void); int write(int fd, const char *buf, size_t count); int pwrite(int fd, const char *buf, size_t count, size_t offset); -off_t lseek(int fildes, off_t offset, int whence); +int lseek(int fildes, int offset, int whence); #endif |