summaryrefslogtreecommitdiff
path: root/src/libc/include/arpa
diff options
context:
space:
mode:
authordzwdz2023-12-25 20:12:44 +0100
committerdzwdz2023-12-25 20:12:44 +0100
commit4be1fd62131f7e186e6f92f1bb5a356dc1ac1951 (patch)
tree54de3a2d99fe9d6e93ad45c5107aff5420f9900d /src/libc/include/arpa
parentb9f5f92bff69059471a76e73539780eedb356455 (diff)
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.
Diffstat (limited to 'src/libc/include/arpa')
-rw-r--r--src/libc/include/arpa/inet.h3
1 files changed, 3 insertions, 0 deletions
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 <netinet/in.h>
#include <stdint.h>
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);