netdb_private.h (145635) | netdb_private.h (146244) |
---|---|
1/*- 2 * Copyright (C) 2005 The FreeBSD Project. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * | 1/*- 2 * Copyright (C) 2005 The FreeBSD Project. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/lib/libc/net/netdb_private.h 145635 2005-04-28 18:52:40Z ume $ | 25 * $FreeBSD: head/lib/libc/net/netdb_private.h 146244 2005-05-15 20:15:15Z ume $ |
26 */ 27 28#ifndef _NETDB_PRIVATE_H_ 29#define _NETDB_PRIVATE_H_ 30 | 26 */ 27 28#ifndef _NETDB_PRIVATE_H_ 29#define _NETDB_PRIVATE_H_ 30 |
31#include <sys/_types.h> | |
32#include <stdio.h> /* XXX: for FILE */ 33 | 31#include <stdio.h> /* XXX: for FILE */ 32 |
34#ifndef _UINT32_T_DECLARED 35typedef __uint32_t uint32_t; 36#define _UINT32_T_DECLARED 37#endif 38 | |
39#define _MAXALIASES 35 40#define _MAXLINELEN 1024 41#define _MAXADDRS 35 42#define _HOSTBUFSIZE (8 * 1024) 43#define _NETBUFSIZE 1025 44 45struct hostent_data { 46 uint32_t host_addr[4]; /* IPv4 or IPv6 */ --- 103 unchanged lines hidden (view full) --- 150void endprotoent_r(struct protoent_data *); 151void endservent_r(struct servent_data *); 152int gethostbyaddr_r(const char *, int, int, struct hostent *, 153 struct hostent_data *); 154int gethostbyname_r(const char *, struct hostent *, struct hostent_data *); 155int gethostbyname2_r(const char *, int, struct hostent *, 156 struct hostent_data *); 157int gethostent_r(struct hostent *, struct hostent_data *); | 33#define _MAXALIASES 35 34#define _MAXLINELEN 1024 35#define _MAXADDRS 35 36#define _HOSTBUFSIZE (8 * 1024) 37#define _NETBUFSIZE 1025 38 39struct hostent_data { 40 uint32_t host_addr[4]; /* IPv4 or IPv6 */ --- 103 unchanged lines hidden (view full) --- 144void endprotoent_r(struct protoent_data *); 145void endservent_r(struct servent_data *); 146int gethostbyaddr_r(const char *, int, int, struct hostent *, 147 struct hostent_data *); 148int gethostbyname_r(const char *, struct hostent *, struct hostent_data *); 149int gethostbyname2_r(const char *, int, struct hostent *, 150 struct hostent_data *); 151int gethostent_r(struct hostent *, struct hostent_data *); |
158int getnetbyaddr_r(unsigned long addr, int af, struct netent *, | 152int getnetbyaddr_r(uint32_t addr, int af, struct netent *, |
159 struct netent_data *); 160int getnetbyname_r(const char *, struct netent *, struct netent_data *); 161int getnetent_r(struct netent *, struct netent_data *); 162int getprotobyname_r(const char *, struct protoent *, struct protoent_data *); 163int getprotobynumber_r(int, struct protoent *, struct protoent_data *); 164int getprotoent_r(struct protoent *, struct protoent_data *); 165int getservbyname_r(const char *, const char *, struct servent *, 166 struct servent_data *); 167int getservbyport_r(int, const char *, struct servent *, 168 struct servent_data *); 169int getservent_r(struct servent *, struct servent_data *); 170void sethostent_r(int, struct hostent_data *); 171void setnetent_r(int, struct netent_data *); 172void setprotoent_r(int, struct protoent_data *); 173void setservent_r(int, struct servent_data *); 174 175#endif /* _NETDB_PRIVATE_H_ */ | 153 struct netent_data *); 154int getnetbyname_r(const char *, struct netent *, struct netent_data *); 155int getnetent_r(struct netent *, struct netent_data *); 156int getprotobyname_r(const char *, struct protoent *, struct protoent_data *); 157int getprotobynumber_r(int, struct protoent *, struct protoent_data *); 158int getprotoent_r(struct protoent *, struct protoent_data *); 159int getservbyname_r(const char *, const char *, struct servent *, 160 struct servent_data *); 161int getservbyport_r(int, const char *, struct servent *, 162 struct servent_data *); 163int getservent_r(struct servent *, struct servent_data *); 164void sethostent_r(int, struct hostent_data *); 165void setnetent_r(int, struct netent_data *); 166void setprotoent_r(int, struct protoent_data *); 167void setservent_r(int, struct servent_data *); 168 169#endif /* _NETDB_PRIVATE_H_ */ |