diff options
author | Anton Kling <anton@kling.gg> | 2024-06-20 23:13:51 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-06-20 23:13:51 +0200 |
commit | 9725791024d159ba0c5b6e8eef13a0e9077523a9 (patch) | |
tree | 91555c2f74e3d0794964f9f9cbb948b62550e46b /userland/libc/include | |
parent | d7f2c29a6b238d678c6f76237b35b14eda258e7d (diff) |
Add getaddrinfo and change other libc stuff
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 |