Deleted Added
full compact
netdb.h (121316) netdb.h (121430)
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 121316 2003-10-21 20:11:47Z ume $
58 * $FreeBSD: head/include/netdb.h 121430 2003-10-23 16:11:46Z ume $
59 */
60
61#ifndef _NETDB_H_
62#define _NETDB_H_
63
64#include <sys/cdefs.h>
65#include <sys/_types.h>
66

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

144#define TRY_AGAIN 2 /* Non-Authoritative Host not found, or SERVERFAIL */
145#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
146#define NO_DATA 4 /* Valid name, no data record of requested type */
147#define NO_ADDRESS NO_DATA /* no address, look for MX record */
148
149/*
150 * Error return codes from getaddrinfo()
151 */
59 */
60
61#ifndef _NETDB_H_
62#define _NETDB_H_
63
64#include <sys/cdefs.h>
65#include <sys/_types.h>
66

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

144#define TRY_AGAIN 2 /* Non-Authoritative Host not found, or SERVERFAIL */
145#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */
146#define NO_DATA 4 /* Valid name, no data record of requested type */
147#define NO_ADDRESS NO_DATA /* no address, look for MX record */
148
149/*
150 * Error return codes from getaddrinfo()
151 */
152#if 0
153/* obsoleted */
152#define EAI_ADDRFAMILY 1 /* address family for hostname not supported */
154#define EAI_ADDRFAMILY 1 /* address family for hostname not supported */
155#endif
153#define EAI_AGAIN 2 /* temporary failure in name resolution */
154#define EAI_BADFLAGS 3 /* invalid value for ai_flags */
155#define EAI_FAIL 4 /* non-recoverable failure in name resolution */
156#define EAI_FAMILY 5 /* ai_family not supported */
157#define EAI_MEMORY 6 /* memory allocation failure */
156#define EAI_AGAIN 2 /* temporary failure in name resolution */
157#define EAI_BADFLAGS 3 /* invalid value for ai_flags */
158#define EAI_FAIL 4 /* non-recoverable failure in name resolution */
159#define EAI_FAMILY 5 /* ai_family not supported */
160#define EAI_MEMORY 6 /* memory allocation failure */
161#if 0
162/* obsoleted */
158#define EAI_NODATA 7 /* no address associated with hostname */
163#define EAI_NODATA 7 /* no address associated with hostname */
164#endif
159#define EAI_NONAME 8 /* hostname nor servname provided, or not known */
160#define EAI_SERVICE 9 /* servname not supported for ai_socktype */
161#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
162#define EAI_SYSTEM 11 /* system error returned in errno */
163#define EAI_BADHINTS 12
164#define EAI_PROTOCOL 13
165#define EAI_MAX 14
166

--- 99 unchanged lines hidden ---
165#define EAI_NONAME 8 /* hostname nor servname provided, or not known */
166#define EAI_SERVICE 9 /* servname not supported for ai_socktype */
167#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
168#define EAI_SYSTEM 11 /* system error returned in errno */
169#define EAI_BADHINTS 12
170#define EAI_PROTOCOL 13
171#define EAI_MAX 14
172

--- 99 unchanged lines hidden ---