Deleted Added
sdiff udiff text old ( 17902 ) new ( 21055 )
full compact
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 * 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 $
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
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
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));
131struct netent *getnetbyaddr __P((unsigned long, int));
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));
175__END_DECLS
176
177#endif /* !_NETDB_H_ */