Deleted Added
full compact
netdb.h (17902) netdb.h (21055)
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)netdb.h 8.1 (Berkeley) 6/2/93
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)netdb.h 8.1 (Berkeley) 6/2/93
34 * $Id: netdb.h,v 1.4 1996/01/30 23:30:30 mpp Exp $
34 * From: Id: netdb.h,v 8.7 1996/05/09 05:59:09 vixie Exp
35 * $Id: netdb.h,v 1.5 1996/08/29 20:00:56 peter Exp $
35 * -
36 * Portions Copyright (c) 1993 by Digital Equipment Corporation.
37 *
38 * Permission to use, copy, modify, and distribute this software for any
39 * purpose with or without fee is hereby granted, provided that the above
40 * copyright notice and this permission notice appear in all copies, and that
41 * the name of Digital Equipment Corporation not be used in advertising or
42 * publicity pertaining to distribution of the document or software without

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

52 * SOFTWARE.
53 * -
54 * --Copyright--
55 */
56
57#ifndef _NETDB_H_
58#define _NETDB_H_
59
36 * -
37 * Portions Copyright (c) 1993 by Digital Equipment Corporation.
38 *
39 * Permission to use, copy, modify, and distribute this software for any
40 * purpose with or without fee is hereby granted, provided that the above
41 * copyright notice and this permission notice appear in all copies, and that
42 * the name of Digital Equipment Corporation not be used in advertising or
43 * publicity pertaining to distribution of the document or software without

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

53 * SOFTWARE.
54 * -
55 * --Copyright--
56 */
57
58#ifndef _NETDB_H_
59#define _NETDB_H_
60
61#include <sys/cdefs.h>
62
60#define _PATH_HEQUIV "/etc/hosts.equiv"
61#define _PATH_HOSTS "/etc/hosts"
62#define _PATH_NETWORKS "/etc/networks"
63#define _PATH_PROTOCOLS "/etc/protocols"
64#define _PATH_SERVICES "/etc/services"
65
66extern int h_errno;
67

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

111#define NETDB_INTERNAL -1 /* see errno */
112#define NETDB_SUCCESS 0 /* no problem */
113#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */
114#define TRY_AGAIN 2 /* Non-Authoritative Host not found, or SERVERFAIL */
115#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
116#define NO_DATA 4 /* Valid name, no data record of requested type */
117#define NO_ADDRESS NO_DATA /* no address, look for MX record */
118
63#define _PATH_HEQUIV "/etc/hosts.equiv"
64#define _PATH_HOSTS "/etc/hosts"
65#define _PATH_NETWORKS "/etc/networks"
66#define _PATH_PROTOCOLS "/etc/protocols"
67#define _PATH_SERVICES "/etc/services"
68
69extern int h_errno;
70

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

114#define NETDB_INTERNAL -1 /* see errno */
115#define NETDB_SUCCESS 0 /* no problem */
116#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */
117#define TRY_AGAIN 2 /* Non-Authoritative Host not found, or SERVERFAIL */
118#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
119#define NO_DATA 4 /* Valid name, no data record of requested type */
120#define NO_ADDRESS NO_DATA /* no address, look for MX record */
121
119#include <sys/cdefs.h>
120
121__BEGIN_DECLS
122void endhostent __P((void));
123void endnetent __P((void));
124void endprotoent __P((void));
125void endservent __P((void));
126struct hostent *gethostbyaddr __P((const char *, int, int));
127struct hostent *gethostbyname __P((const char *));
128struct hostent *gethostbyname2 __P((const char *, int));
129struct hostent *gethostent __P((void));
122__BEGIN_DECLS
123void endhostent __P((void));
124void endnetent __P((void));
125void endprotoent __P((void));
126void endservent __P((void));
127struct hostent *gethostbyaddr __P((const char *, int, int));
128struct hostent *gethostbyname __P((const char *));
129struct hostent *gethostbyname2 __P((const char *, int));
130struct hostent *gethostent __P((void));
130struct netent *getnetbyaddr __P((long, int)); /* u_long? */
131struct netent *getnetbyaddr __P((unsigned long, int));
131struct netent *getnetbyname __P((const char *));
132struct netent *getnetent __P((void));
133struct protoent *getprotobyname __P((const char *));
134struct protoent *getprotobynumber __P((int));
135struct protoent *getprotoent __P((void));
136struct servent *getservbyname __P((const char *, const char *));
137struct servent *getservbyport __P((int, const char *));
138struct servent *getservent __P((void));

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

166struct netent * _getnetbyhtname __P((const char *));
167struct netent * _getnetbydnsname __P((const char *));
168struct netent * _getnetbynisname __P((const char *));
169struct netent * _getnetbyhtaddr __P((unsigned long, int));
170struct netent * _getnetbydnsaddr __P((unsigned long, int));
171struct netent * _getnetbynisaddr __P((unsigned long, int));
172void _map_v4v6_address __P((const char *src, char *dst));
173void _map_v4v6_hostent __P((struct hostent *hp, char **bp, int *len));
132struct netent *getnetbyname __P((const char *));
133struct netent *getnetent __P((void));
134struct protoent *getprotobyname __P((const char *));
135struct protoent *getprotobynumber __P((int));
136struct protoent *getprotoent __P((void));
137struct servent *getservbyname __P((const char *, const char *));
138struct servent *getservbyport __P((int, const char *));
139struct servent *getservent __P((void));

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

167struct netent * _getnetbyhtname __P((const char *));
168struct netent * _getnetbydnsname __P((const char *));
169struct netent * _getnetbynisname __P((const char *));
170struct netent * _getnetbyhtaddr __P((unsigned long, int));
171struct netent * _getnetbydnsaddr __P((unsigned long, int));
172struct netent * _getnetbynisaddr __P((unsigned long, int));
173void _map_v4v6_address __P((const char *src, char *dst));
174void _map_v4v6_hostent __P((struct hostent *hp, char **bp, int *len));
174
175__END_DECLS
176
177#endif /* !_NETDB_H_ */
175__END_DECLS
176
177#endif /* !_NETDB_H_ */