summaryrefslogtreecommitdiff
path: root/Libraries/LibC/netdb.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-20 06:58:16 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-20 06:58:16 +0100
commitc3b09c72429a8a4093761449e0d99f9b7bf43478 (patch)
tree36f38d8d214636bc10708f549692a2c7b6291e23 /Libraries/LibC/netdb.cpp
parentcf4da485e6be8777b0db6f8921facefa24bb3247 (diff)
downloadserenity-c3b09c72429a8a4093761449e0d99f9b7bf43478.zip
LibC: Add h_errno and stub out getservbyname()
Diffstat (limited to 'Libraries/LibC/netdb.cpp')
-rw-r--r--Libraries/LibC/netdb.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Libraries/LibC/netdb.cpp b/Libraries/LibC/netdb.cpp
index 8e07f13b6d..91f6142f10 100644
--- a/Libraries/LibC/netdb.cpp
+++ b/Libraries/LibC/netdb.cpp
@@ -37,6 +37,8 @@
extern "C" {
+int h_errno;
+
static hostent __gethostbyname_buffer;
static char __gethostbyname_name_buffer[512];
static in_addr_t __gethostbyname_address;
@@ -196,4 +198,11 @@ hostent* gethostbyaddr(const void* addr, socklen_t addr_size, int type)
return &__gethostbyaddr_buffer;
}
+
+struct servent* getservbyname(const char* name, const char* protocol)
+{
+ dbg() << "FIXME: getservbyname(\"" << name << "\", \"" << protocol << "\")";
+ ASSERT_NOT_REACHED();
+}
+
}