Deleted Added
full compact
netdb.h (158477) netdb.h (158790)
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 158477 2006-05-12 15:37:23Z ume $
58 * $FreeBSD: head/include/netdb.h 158790 2006-05-21 11:22:31Z ume $
59 */
60
61#ifndef _NETDB_H_
62#define _NETDB_H_
63
64#include <sys/cdefs.h>
65#include <sys/_types.h>
66#include <machine/_limits.h>

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

163#if 0
164/* obsoleted */
165#define EAI_NODATA 7 /* no address associated with hostname */
166#endif
167#define EAI_NONAME 8 /* hostname nor servname provided, or not known */
168#define EAI_SERVICE 9 /* servname not supported for ai_socktype */
169#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
170#define EAI_SYSTEM 11 /* system error returned in errno */
59 */
60
61#ifndef _NETDB_H_
62#define _NETDB_H_
63
64#include <sys/cdefs.h>
65#include <sys/_types.h>
66#include <machine/_limits.h>

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

163#if 0
164/* obsoleted */
165#define EAI_NODATA 7 /* no address associated with hostname */
166#endif
167#define EAI_NONAME 8 /* hostname nor servname provided, or not known */
168#define EAI_SERVICE 9 /* servname not supported for ai_socktype */
169#define EAI_SOCKTYPE 10 /* ai_socktype not supported */
170#define EAI_SYSTEM 11 /* system error returned in errno */
171#define EAI_BADHINTS 12
172#define EAI_PROTOCOL 13
173#define EAI_MAX 14
171#define EAI_BADHINTS 12 /* invalid value for hints */
172#define EAI_PROTOCOL 13 /* resolved protocol is unknown */
173#define EAI_OVERFLOW 14 /* argument buffer overflow */
174#define EAI_MAX 15
174
175/*
176 * Flag values for getaddrinfo()
177 */
178#define AI_PASSIVE 0x00000001 /* get address to use bind() */
179#define AI_CANONNAME 0x00000002 /* fill ai_canonname */
180#define AI_NUMERICHOST 0x00000004 /* prevent host name resolution */
181#define AI_NUMERICSERV 0x00000008 /* prevent service name resolution */

--- 115 unchanged lines hidden ---
175
176/*
177 * Flag values for getaddrinfo()
178 */
179#define AI_PASSIVE 0x00000001 /* get address to use bind() */
180#define AI_CANONNAME 0x00000002 /* fill ai_canonname */
181#define AI_NUMERICHOST 0x00000004 /* prevent host name resolution */
182#define AI_NUMERICSERV 0x00000008 /* prevent service name resolution */

--- 115 unchanged lines hidden ---