summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-12 23:38:04 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-12 23:38:04 -0400
commit3777f5b90d25b2cafc5fd7be57580f1925fb5515 (patch)
tree6be65721cf1c711498da5bccba94ff7608555543 /include
parent20052b9815f1009699fc6543d746010c67e8b962 (diff)
downloadmusl-3777f5b90d25b2cafc5fd7be57580f1925fb5515.tar.gz
musl-3777f5b90d25b2cafc5fd7be57580f1925fb5515.tar.bz2
musl-3777f5b90d25b2cafc5fd7be57580f1925fb5515.tar.xz
musl-3777f5b90d25b2cafc5fd7be57580f1925fb5515.zip
susv4 removed gethostbyname, etc. legacy cruft.
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/include/netdb.h b/include/netdb.h
index db5eccf4..a480d82f 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -96,18 +96,9 @@ struct protoent
int p_proto;
};
-extern int h_errno;
-
-#define HOST_NOT_FOUND 1
-#define TRY_AGAIN 2
-#define NO_RECOVERY 3
-#define NO_DATA 4
-
void sethostent (int);
void endhostent (void);
struct hostent *gethostent (void);
-struct hostent *gethostbyaddr (const void *, socklen_t, int);
-struct hostent *gethostbyname (const char *);
void setnetent (int);
void endnetent (void);
@@ -129,12 +120,15 @@ struct protoent *getprotobynumber (int);
#ifdef _GNU_SOURCE
const char *hstrerror(int);
+struct hostent *gethostbyname (const char *);
int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *);
int gethostbyname2_r(const char *, int, struct hostent *, char *, size_t, struct hostent **, int *);
struct hostent *gethostbyname2(const char *, int);
+struct hostent *gethostbyaddr (const void *, socklen_t, int);
int gethostbyaddr_r(const void *, socklen_t, int, struct hostent *, char *, size_t, struct hostent **, int *);
int getservbyport_r(int, const char *, struct servent *, char *, size_t, struct servent **);
int getservbyname_r(const char *, const char *, struct servent *, char *, size_t, struct servent **);
+extern int h_errno;
#define EAI_NODATA -5
#define EAI_ADDRFAMILY -9
#define EAI_INPROGRESS -100
@@ -145,6 +139,10 @@ int getservbyname_r(const char *, const char *, struct servent *, char *, size_t
#define EAI_IDN_ENCODE -105
#define NI_MAXHOST 255
#define NI_MAXSERV 32
+#define HOST_NOT_FOUND 1
+#define TRY_AGAIN 2
+#define NO_RECOVERY 3
+#define NO_DATA 4
#endif