Deleted Added
full compact
netdb.h (10132) netdb.h (13771)
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.2 1995/05/30 04:54:41 rgrimes Exp $
34 * $Id: netdb.h,v 1.3 1995/08/20 19:59:12 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

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

71 * use in system calls).
72 */
73struct hostent {
74 char *h_name; /* official name of host */
75 char **h_aliases; /* alias list */
76 int h_addrtype; /* host address type */
77 int h_length; /* length of address */
78 char **h_addr_list; /* list of addresses from name server */
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

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

71 * use in system calls).
72 */
73struct hostent {
74 char *h_name; /* official name of host */
75 char **h_aliases; /* alias list */
76 int h_addrtype; /* host address type */
77 int h_length; /* length of address */
78 char **h_addr_list; /* list of addresses from name server */
79#define h_addr h_addr_list[0] /* address, for backward compatiblity */
79#define h_addr h_addr_list[0] /* address, for backward compatibility */
80};
81
82/*
83 * Assumption here is that a network number
84 * fits in an unsigned long -- probably a poor one.
85 */
86struct netent {
87 char *n_name; /* official name of net */

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

106/*
107 * Error return codes from gethostbyname() and gethostbyaddr()
108 * (left in extern int h_errno).
109 */
110
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 */
80};
81
82/*
83 * Assumption here is that a network number
84 * fits in an unsigned long -- probably a poor one.
85 */
86struct netent {
87 char *n_name; /* official name of net */

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

106/*
107 * Error return codes from gethostbyname() and gethostbyaddr()
108 * (left in extern int h_errno).
109 */
110
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-Authoritive Host not found, or SERVERFAIL */
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
119#include <sys/cdefs.h>
120
121__BEGIN_DECLS
122void endhostent __P((void));

--- 25 unchanged lines hidden ---
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
119#include <sys/cdefs.h>
120
121__BEGIN_DECLS
122void endhostent __P((void));

--- 25 unchanged lines hidden ---