diff --git a/libc/Makefile b/libc/Makefile
index deb603e3..6dee5275 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -360,14 +360,12 @@ locale/localeconv.o \
locale/setlocale.o \
msr/rdmsr.o \
msr/wrmsr.o \
-netdb/endhostent.o \
netdb/endnetent.o \
netdb/endprotoent.o \
netdb/endservent.o \
netdb/freeaddrinfo.o \
netdb/gai_strerror.o \
netdb/getaddrinfo.o \
-netdb/gethostent.o \
netdb/getnameinfo.o \
netdb/getnetbyaddr.o \
netdb/getnetbyname.o \
@@ -378,7 +376,6 @@ netdb/getprotoent.o \
netdb/getservbyname.o \
netdb/getservbyport.o \
netdb/getservent.o \
-netdb/sethostent.o \
netdb/setnetent.o \
netdb/setprotoent.o \
netdb/setservent.o \
diff --git a/libc/include/netdb.h b/libc/include/netdb.h
index 2edb03b1..4156e722 100644
--- a/libc/include/netdb.h
+++ b/libc/include/netdb.h
@@ -1,6 +1,6 @@
/*******************************************************************************
- Copyright(C) Jonas 'Sortie' Termansen 2013.
+ Copyright(C) Jonas 'Sortie' Termansen 2013, 2014.
This file is part of the Sortix C Library.
@@ -48,14 +48,7 @@ typedef uint32_t in_addr_t;
typedef __socklen_t socklen_t;
#endif
-struct hostent
-{
- char* h_name;
- char** h_aliases;
- char** h_addr_list;
- int h_addrtype;
- int h_length;
-};
+/* struct hostent will not be implemented. */
struct netent
{
@@ -126,7 +119,7 @@ struct addrinfo
#define NI_MAXHOST 1025
#define NI_MAXSERV 32
-void endhostent(void);
+/* endhostent will not be implemented. */
void endnetent(void);
void endprotoent(void);
void endservent(void);
@@ -134,7 +127,7 @@ void freeaddrinfo(struct addrinfo*);
const char* gai_strerror(int);
int getaddrinfo(const char* __restrict, const char* __restrict,
const struct addrinfo* __restrict, struct addrinfo** __restrict);
-struct hostent* gethostent(void);
+/* gethostent will not be implemented. */
int getnameinfo(const struct sockaddr* __restrict, socklen_t, char* __restrict,
socklen_t, char* __restrict, socklen_t, int);
struct netent* getnetbyaddr(uint32_t, int);
@@ -146,7 +139,7 @@ struct protoent* getprotoent(void);
struct servent* getservbyname(const char*, const char*);
struct servent* getservbyport(int, const char*);
struct servent* getservent(void);
-void sethostent(int);
+/* sethostent will not be implemented. */
void setnetent(int);
void setprotoent(int);
void setservent(int);
diff --git a/libc/netdb/endhostent.cpp b/libc/netdb/endhostent.cpp
deleted file mode 100644
index 64d3421c..00000000
--- a/libc/netdb/endhostent.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
-
- Copyright(C) Jonas 'Sortie' Termansen 2013.
-
- This file is part of the Sortix C Library.
-
- The Sortix C Library is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published by
- the Free Software Foundation, either version 3 of the License, or (at your
- option) any later version.
-
- The Sortix C Library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with the Sortix C Library. If not, see .
-
- netdb/endhostent.cpp
- Get network host entry.
-
-*******************************************************************************/
-
-#include
-
-#include
-#include
-
-extern "C" void endhostent(void)
-{
- fprintf(stderr, "%s is not implemented, aborting.\n", __func__);
- abort();
-}
diff --git a/libc/netdb/gethostent.cpp b/libc/netdb/gethostent.cpp
deleted file mode 100644
index 74e870e8..00000000
--- a/libc/netdb/gethostent.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
-
- Copyright(C) Jonas 'Sortie' Termansen 2013.
-
- This file is part of the Sortix C Library.
-
- The Sortix C Library is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published by
- the Free Software Foundation, either version 3 of the License, or (at your
- option) any later version.
-
- The Sortix C Library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with the Sortix C Library. If not, see .
-
- netdb/gethostent.cpp
- Get network host entry.
-
-*******************************************************************************/
-
-#include
-
-#include
-#include
-
-extern "C" struct hostent* gethostent(void)
-{
- fprintf(stderr, "%s is not implemented, aborting.\n", __func__);
- abort();
-}
diff --git a/libc/netdb/sethostent.cpp b/libc/netdb/sethostent.cpp
deleted file mode 100644
index 1813b447..00000000
--- a/libc/netdb/sethostent.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/*******************************************************************************
-
- Copyright(C) Jonas 'Sortie' Termansen 2013.
-
- This file is part of the Sortix C Library.
-
- The Sortix C Library is free software: you can redistribute it and/or modify
- it under the terms of the GNU Lesser General Public License as published by
- the Free Software Foundation, either version 3 of the License, or (at your
- option) any later version.
-
- The Sortix C Library is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
- License for more details.
-
- You should have received a copy of the GNU Lesser General Public License
- along with the Sortix C Library. If not, see .
-
- netdb/sethostent.cpp
- Get network host entry.
-
-*******************************************************************************/
-
-#include
-
-#include
-#include
-
-extern "C" void sethostent(int)
-{
- fprintf(stderr, "%s is not implemented, aborting.\n", __func__);
- abort();
-}