summaryrefslogtreecommitdiff
path: root/LibC/netdb.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-14 15:18:15 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-14 15:18:15 +0100
commit2c3cf22bc9de55d7ef4301f292a3f516f13cf813 (patch)
treeb712213ed7449d7bb7a9a8aa8b03df41a84e62c9 /LibC/netdb.h
parent48590a0e512a6fee823cdcd1f0cb75ad2fae83d0 (diff)
downloadserenity-2c3cf22bc9de55d7ef4301f292a3f516f13cf813.zip
LibC: A whole bunch of compat work towards porting Lynx.
Diffstat (limited to 'LibC/netdb.h')
-rw-r--r--LibC/netdb.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/LibC/netdb.h b/LibC/netdb.h
new file mode 100644
index 0000000000..727c212e9a
--- /dev/null
+++ b/LibC/netdb.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+
+__BEGIN_DECLS
+
+struct hostent {
+ char* h_name;
+ char** h_aliases;
+ int h_addrtype;
+ int h_length;
+ char** h_addr_list;
+};
+
+struct hostent *gethostbyname(const char*);
+
+__END_DECLS