Deleted Added
full compact
netdb.h (65532) netdb.h (72510)
1/*-
2 * Copyright (c) 1980, 1983, 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 41 unchanged lines hidden (view full) ---

50 * SOFTWARE.
51 * -
52 * --Copyright--
53 */
54
55/*
56 * @(#)netdb.h 8.1 (Berkeley) 6/2/93
57 * From: Id: netdb.h,v 8.9 1996/11/19 08:39:29 vixie Exp $
1/*-
2 * Copyright (c) 1980, 1983, 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 41 unchanged lines hidden (view full) ---

50 * SOFTWARE.
51 * -
52 * --Copyright--
53 */
54
55/*
56 * @(#)netdb.h 8.1 (Berkeley) 6/2/93
57 * From: Id: netdb.h,v 8.9 1996/11/19 08:39:29 vixie Exp $
58 * $FreeBSD: head/include/netdb.h 65532 2000-09-06 18:16:48Z nectar $
58 * $FreeBSD: head/include/netdb.h 72510 2001-02-15 10:35:55Z ume $
59 */
60
61#ifndef _NETDB_H_
62#define _NETDB_H_
63
59 */
60
61#ifndef _NETDB_H_
62#define _NETDB_H_
63
64#include <machine/ansi.h>
64#include <sys/cdefs.h>
65#include <sys/cdefs.h>
65#include <sys/types.h>
66
66
67#ifdef _BSD_SIZE_T_
68typedef _BSD_SIZE_T_ size_t;
69#undef _BSD_SIZE_T_
70#endif
71
67#ifndef _PATH_HEQUIV
68# define _PATH_HEQUIV "/etc/hosts.equiv"
69#endif
70#define _PATH_HOSTS "/etc/hosts"
71#define _PATH_NETWORKS "/etc/networks"
72#define _PATH_PROTOCOLS "/etc/protocols"
73#define _PATH_SERVICES "/etc/services"
74

--- 112 unchanged lines hidden (view full) ---

187#define NI_DGRAM 0x00000010
188#define NI_WITHSCOPEID 0x00000020
189
190/*
191 * Scope delimit character
192 */
193#define SCOPE_DELIMITER '%'
194
72#ifndef _PATH_HEQUIV
73# define _PATH_HEQUIV "/etc/hosts.equiv"
74#endif
75#define _PATH_HOSTS "/etc/hosts"
76#define _PATH_NETWORKS "/etc/networks"
77#define _PATH_PROTOCOLS "/etc/protocols"
78#define _PATH_SERVICES "/etc/services"
79

--- 112 unchanged lines hidden (view full) ---

192#define NI_DGRAM 0x00000010
193#define NI_WITHSCOPEID 0x00000020
194
195/*
196 * Scope delimit character
197 */
198#define SCOPE_DELIMITER '%'
199
200/*
201 * data types - basically forward decl for getnameinfo()
202 */
203#ifdef _BSD_SOCKLEN_T_
204typedef _BSD_SOCKLEN_T_ socklen_t;
205#undef _BSD_SOCKLEN_T_
206#endif
207
195__BEGIN_DECLS
196void endhostent __P((void));
197void endnetent __P((void));
198void endprotoent __P((void));
199void endservent __P((void));
200void freehostent __P((struct hostent *));
201struct hostent *gethostbyaddr __P((const char *, int, int));
202struct hostent *gethostbyname __P((const char *));

--- 13 unchanged lines hidden (view full) ---

216void herror __P((const char *));
217__const char *hstrerror __P((int));
218void sethostent __P((int));
219/* void sethostfile __P((const char *)); */
220void setnetent __P((int));
221void setprotoent __P((int));
222int getaddrinfo __P((const char *, const char *,
223 const struct addrinfo *, struct addrinfo **));
208__BEGIN_DECLS
209void endhostent __P((void));
210void endnetent __P((void));
211void endprotoent __P((void));
212void endservent __P((void));
213void freehostent __P((struct hostent *));
214struct hostent *gethostbyaddr __P((const char *, int, int));
215struct hostent *gethostbyname __P((const char *));

--- 13 unchanged lines hidden (view full) ---

229void herror __P((const char *));
230__const char *hstrerror __P((int));
231void sethostent __P((int));
232/* void sethostfile __P((const char *)); */
233void setnetent __P((int));
234void setprotoent __P((int));
235int getaddrinfo __P((const char *, const char *,
236 const struct addrinfo *, struct addrinfo **));
224int getnameinfo __P((const struct sockaddr *, size_t, char *,
237int getnameinfo __P((const struct sockaddr *, socklen_t, char *,
225 size_t, char *, size_t, int));
226void freeaddrinfo __P((struct addrinfo *));
227char *gai_strerror __P((int));
228void setservent __P((int));
229
230/*
231 * PRIVATE functions specific to the FreeBSD implementation
232 */

--- 17 unchanged lines hidden ---
238 size_t, char *, size_t, int));
239void freeaddrinfo __P((struct addrinfo *));
240char *gai_strerror __P((int));
241void setservent __P((int));
242
243/*
244 * PRIVATE functions specific to the FreeBSD implementation
245 */

--- 17 unchanged lines hidden ---