diff options
author | ume <ume@FreeBSD.org> | 2006-04-15 16:20:27 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-04-15 16:20:27 +0000 |
commit | b6bb84cf9e6c9d871a17bcf962cf63180af70e95 (patch) | |
tree | 7f8977d8ba3a31812862992c940fc48d67e9a71c /include | |
parent | 65a640e4f05dfa0b6ed9cf426628b7a1106b767b (diff) | |
download | FreeBSD-src-b6bb84cf9e6c9d871a17bcf962cf63180af70e95.zip FreeBSD-src-b6bb84cf9e6c9d871a17bcf962cf63180af70e95.tar.gz |
- make reentrant version of netdb functions glibc style API, and
expose them to outside of libc.
- make netdb functions NSS friendly.
Reviewed by: arch@ and current@ (no objection)
Diffstat (limited to 'include')
-rw-r--r-- | include/netdb.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/netdb.h b/include/netdb.h index 9d1b005..218bee3 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -221,21 +221,47 @@ void endprotoent(void); void endservent(void); void freehostent(struct hostent *); struct hostent *gethostbyaddr(const char *, int, int); +int gethostbyaddr_r(const char *, int, int, struct hostent *, + char *, size_t, struct hostent **, int *); struct hostent *gethostbyname(const char *); +int gethostbyname_r(const char *, struct hostent *, char *, size_t, + struct hostent **, int *); struct hostent *gethostbyname2(const char *, int); +int gethostbyname2_r(const char *, int, struct hostent *, char *, + size_t, struct hostent **, int *); struct hostent *gethostent(void); +int gethostent_r(struct hostent *, char *, size_t, + struct hostent **, int *); struct hostent *getipnodebyaddr(const void *, size_t, int, int *); struct hostent *getipnodebyname(const char *, int, int, int *); struct netent *getnetbyaddr(uint32_t, int); +int getnetbyaddr_r(uint32_t, int, struct netent *, char *, size_t, + struct netent**, int *); struct netent *getnetbyname(const char *); +int getnetbyname_r(const char *, struct netent *, char *, size_t, + struct netent **, int *); struct netent *getnetent(void); +int getnetent_r(struct netent *, char *, size_t, struct netent **, + int *); int getnetgrent(char **, char **, char **); struct protoent *getprotobyname(const char *); +int getprotobyname_r(const char *, struct protoent *, char *, + size_t, struct protoent **); struct protoent *getprotobynumber(int); +int getprotobynumber_r(int, struct protoent *, char *, size_t, + struct protoent **); struct protoent *getprotoent(void); +int getprotoent_r(struct protoent *, char *, size_t, + struct protoent **); struct servent *getservbyname(const char *, const char *); +int getservbyname_r(const char *, const char *, struct servent *, + char *, size_t, struct servent **); struct servent *getservbyport(int, const char *); +int getservbyport_r(int, const char *, struct servent *, char *, + size_t, struct servent **); struct servent *getservent(void); +int getservent_r(struct servent *, char *, size_t, + struct servent **); void herror(const char *); __const char *hstrerror(int); int innetgr(const char *, const char *, const char *, const char *); |