From 9725791024d159ba0c5b6e8eef13a0e9077523a9 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 20 Jun 2024 23:13:51 +0200 Subject: Add getaddrinfo and change other libc stuff --- userland/libc/include/netdb.h | 7 +++++++ userland/libc/include/unistd.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'userland/libc/include') 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 +#include + +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 -- cgit v1.2.3