From 4be1fd62131f7e186e6f92f1bb5a356dc1ac1951 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 25 Dec 2023 20:12:44 +0100 Subject: user/libc: reorganize net stuff, basic hosts-only gethostbyname() /usr/share/hosts because i don't have /etc/ yet and i don't feel like creating it. --- src/libc/include/arpa/inet.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libc/include/arpa/inet.h') diff --git a/src/libc/include/arpa/inet.h b/src/libc/include/arpa/inet.h index d372467..1e4f97e 100644 --- a/src/libc/include/arpa/inet.h +++ b/src/libc/include/arpa/inet.h @@ -1,4 +1,5 @@ #pragma once +#include #include uint32_t htonl(uint32_t n); @@ -6,3 +7,5 @@ uint16_t htons(uint16_t n); uint32_t ntohl(uint32_t n); uint16_t ntohs(uint16_t n); + +int inet_aton(const char *s, struct in_addr *dest); -- cgit v1.2.3