~ubuntu-branches/ubuntu/saucy/gnutls26/saucy-updates

« back to all changes in this revision

Viewing changes to gl/netdb.in.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-12-06 18:29:32 UTC
  • mfrom: (12.1.33 sid)
  • Revision ID: package-import@ubuntu.com-20121206182932-iih7i83juh8cdotf
Tags: 2.12.20-2ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Build gnutls-bin from this source package rather than from gnutls28:
    gnutls28's licensing is currently too strict for many of the free
    software packages built against it in Ubuntu main and we only want to
    support a single version.  Bump its version to achieve this.
* Avoid assuming that gets is declared.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Provide a netdb.h header file for systems lacking it (read: MinGW).
2
 
   Copyright (C) 2008-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 2008-2012 Free Software Foundation, Inc.
3
3
   Written by Simon Josefsson.
4
4
 
5
5
   This program is free software; you can redistribute it and/or modify
13
13
   GNU General Public License for more details.
14
14
 
15
15
   You should have received a copy of the GNU General Public License
16
 
   along with this program; if not, write to the Free Software Foundation,
17
 
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
16
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
18
17
 
19
18
/* This file is supposed to be used on platforms that lack <netdb.h>.
20
19
   It is intended to provide definitions and prototypes needed by an
80
79
 
81
80
# endif
82
81
 
83
 
/* Possible values for `ai_flags' field in `addrinfo' structure.  */
 
82
/* Possible values for 'ai_flags' field in 'addrinfo' structure.  */
84
83
# ifndef AI_PASSIVE
85
 
#  define AI_PASSIVE    0x0001  /* Socket address is intended for `bind'.  */
 
84
#  define AI_PASSIVE    0x0001  /* Socket address is intended for 'bind'.  */
86
85
# endif
87
86
# ifndef AI_CANONNAME
88
87
#  define AI_CANONNAME  0x0002  /* Request for canonical name.  */
111
110
                                      returned address type.  */
112
111
# endif
113
112
 
114
 
/* Error values for `getaddrinfo' function.  */
 
113
/* Error values for 'getaddrinfo' function.  */
115
114
# ifndef EAI_BADFLAGS
116
 
#  define EAI_BADFLAGS    -1    /* Invalid value for `ai_flags' field.  */
 
115
#  define EAI_BADFLAGS    -1    /* Invalid value for 'ai_flags' field.  */
117
116
#  define EAI_NONAME      -2    /* NAME or SERVICE is unknown.  */
118
117
#  define EAI_AGAIN       -3    /* Temporary failure in name resolution.  */
119
118
#  define EAI_FAIL        -4    /* Non-recoverable failure in name res.  */
120
119
#  define EAI_NODATA      -5    /* No address associated with NAME.  */
121
 
#  define EAI_FAMILY      -6    /* `ai_family' not supported.  */
122
 
#  define EAI_SOCKTYPE    -7    /* `ai_socktype' not supported.  */
123
 
#  define EAI_SERVICE     -8    /* SERVICE not supported for `ai_socktype'.  */
 
120
#  define EAI_FAMILY      -6    /* 'ai_family' not supported.  */
 
121
#  define EAI_SOCKTYPE    -7    /* 'ai_socktype' not supported.  */
 
122
#  define EAI_SERVICE     -8    /* SERVICE not supported for 'ai_socktype'.  */
124
123
#  define EAI_MEMORY      -10   /* Memory allocation failure.  */
125
124
# endif
126
125
 
141
140
# endif
142
141
# ifndef EAI_SYSTEM
143
142
/* Not defined on mingw32. */
144
 
#  define EAI_SYSTEM      -11   /* System error returned in `errno'.  */
 
143
#  define EAI_SYSTEM      -11   /* System error returned in 'errno'.  */
145
144
# endif
146
145
 
147
146
# if 0
179
178
_GL_CXXALIASWARN (getaddrinfo);
180
179
 
181
180
# if !@HAVE_DECL_FREEADDRINFO@
182
 
/* Free `addrinfo' structure AI including associated storage.
 
181
/* Free 'addrinfo' structure AI including associated storage.
183
182
   For more details, see the POSIX:2001 specification
184
183
   <http://www.opengroup.org/susv3xsh/getaddrinfo.html>.  */
185
184
_GL_FUNCDECL_SYS (freeaddrinfo, void, (struct addrinfo *ai)