about summary refs log tree commit diff
path: root/src/network/inet_aton.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-06-25 21:35:49 -0400
committerRich Felker <dalias@aerifal.cx>2013-06-25 21:35:49 -0400
commite40f48a421a9176e3e298b5bac75f0355b219e58 (patch)
tree23255d3b92b410810a16eb5fd5853e3fe62bf05e /src/network/inet_aton.c
parent83966b369d2fa105a58a35830f75662e18273965 (diff)
downloadmusl-e40f48a421a9176e3e298b5bac75f0355b219e58.tar.gz
musl-e40f48a421a9176e3e298b5bac75f0355b219e58.tar.xz
musl-e40f48a421a9176e3e298b5bac75f0355b219e58.zip
implement inet_lnaof, inet_netof, and inet_makeaddr
also move all legacy inet_* functions into a single file to avoid
wasting object file and compile time overhead on them.

the added functions are legacy interfaces for working with classful
ipv4 network addresses. they have no modern usefulness whatsoever, but
some programs unconditionally use them anyway, and they're tiny.
Diffstat (limited to 'src/network/inet_aton.c')
-rw-r--r--src/network/inet_aton.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/network/inet_aton.c b/src/network/inet_aton.c
deleted file mode 100644
index ea4ee165..00000000
--- a/src/network/inet_aton.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include <sys/socket.h>
-#include <arpa/inet.h>
-
-int inet_aton(const char *cp, struct in_addr *inp)
-{
-	return inet_pton(AF_INET, cp, (void *)inp) > 0;
-}