projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regex: port to C89
[gnulib.git]
/
lib
/
netdb.in.h
diff --git
a/lib/netdb.in.h
b/lib/netdb.in.h
index
028dfbe
..
63c9607
100644
(file)
--- a/
lib/netdb.in.h
+++ b/
lib/netdb.in.h
@@
-1,5
+1,5
@@
/* Provide a netdb.h header file for systems lacking it (read: MinGW).
/* Provide a netdb.h header file for systems lacking it (read: MinGW).
- Copyright (C) 2008-201
1
Free Software Foundation, Inc.
+ Copyright (C) 2008-201
2
Free Software Foundation, Inc.
Written by Simon Josefsson.
This program is free software; you can redistribute it and/or modify
Written by Simon Josefsson.
This program is free software; you can redistribute it and/or modify
@@
-13,14
+13,13
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software Foundation,
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+ along with this program; if not, see <http://www.gnu.org/licenses/>. */
/* This file is supposed to be used on platforms that lack <netdb.h>.
It is intended to provide definitions and prototypes needed by an
application. */
/* This file is supposed to be used on platforms that lack <netdb.h>.
It is intended to provide definitions and prototypes needed by an
application. */
-#ifndef _
GL
_NETDB_H
+#ifndef _
@GUARD_PREFIX@
_NETDB_H
#if __GNUC__ >= 3
@PRAGMA_SYSTEM_HEADER@
#if __GNUC__ >= 3
@PRAGMA_SYSTEM_HEADER@
@@
-34,8
+33,8
@@
#endif
#endif
-#ifndef _
GL
_NETDB_H
-#define _
GL
_NETDB_H
+#ifndef _
@GUARD_PREFIX@
_NETDB_H
+#define _
@GUARD_PREFIX@
_NETDB_H
/* Get <netdb.h> definitions such as 'socklen_t' on IRIX 6.5 and OSF/1 4.0 and
'struct hostent' on MinGW. */
/* Get <netdb.h> definitions such as 'socklen_t' on IRIX 6.5 and OSF/1 4.0 and
'struct hostent' on MinGW. */
@@
-80,9
+79,9
@@
struct addrinfo
# endif
# endif
-/* Possible values for
`ai_flags' field in `
addrinfo' structure. */
+/* Possible values for
'ai_flags' field in '
addrinfo' structure. */
# ifndef AI_PASSIVE
# ifndef AI_PASSIVE
-# define AI_PASSIVE 0x0001 /* Socket address is intended for
`
bind'. */
+# define AI_PASSIVE 0x0001 /* Socket address is intended for
'
bind'. */
# endif
# ifndef AI_CANONNAME
# define AI_CANONNAME 0x0002 /* Request for canonical name. */
# endif
# ifndef AI_CANONNAME
# define AI_CANONNAME 0x0002 /* Request for canonical name. */
@@
-107,20
+106,20
@@
struct addrinfo
# define AI_ALL 0 /* 0x0010: Return IPv4 mapped and IPv6 addresses. */
# endif
# ifndef AI_ADDRCONFIG
# define AI_ALL 0 /* 0x0010: Return IPv4 mapped and IPv6 addresses. */
# endif
# ifndef AI_ADDRCONFIG
-# define AI_ADDRCONFIG 0 /* 0x0020: Use configuration of this host to choose
\
+# define AI_ADDRCONFIG 0 /* 0x0020: Use configuration of this host to choose
returned address type. */
# endif
returned address type. */
# endif
-/* Error values for
`
getaddrinfo' function. */
+/* Error values for
'
getaddrinfo' function. */
# ifndef EAI_BADFLAGS
# ifndef EAI_BADFLAGS
-# define EAI_BADFLAGS -1 /* Invalid value for
`
ai_flags' field. */
+# define EAI_BADFLAGS -1 /* Invalid value for
'
ai_flags' field. */
# define EAI_NONAME -2 /* NAME or SERVICE is unknown. */
# define EAI_AGAIN -3 /* Temporary failure in name resolution. */
# define EAI_FAIL -4 /* Non-recoverable failure in name res. */
# define EAI_NODATA -5 /* No address associated with NAME. */
# define EAI_NONAME -2 /* NAME or SERVICE is unknown. */
# define EAI_AGAIN -3 /* Temporary failure in name resolution. */
# define EAI_FAIL -4 /* Non-recoverable failure in name res. */
# define EAI_NODATA -5 /* No address associated with NAME. */
-# define EAI_FAMILY -6 /*
`
ai_family' not supported. */
-# define EAI_SOCKTYPE -7 /*
`
ai_socktype' not supported. */
-# define EAI_SERVICE -8 /* SERVICE not supported for
`
ai_socktype'. */
+# define EAI_FAMILY -6 /*
'
ai_family' not supported. */
+# define EAI_SOCKTYPE -7 /*
'
ai_socktype' not supported. */
+# define EAI_SERVICE -8 /* SERVICE not supported for
'
ai_socktype'. */
# define EAI_MEMORY -10 /* Memory allocation failure. */
# endif
# define EAI_MEMORY -10 /* Memory allocation failure. */
# endif
@@
-141,7
+140,7
@@
struct addrinfo
# endif
# ifndef EAI_SYSTEM
/* Not defined on mingw32. */
# endif
# ifndef EAI_SYSTEM
/* Not defined on mingw32. */
-# define EAI_SYSTEM -11 /* System error returned in
`
errno'. */
+# define EAI_SYSTEM -11 /* System error returned in
'
errno'. */
# endif
# if 0
# endif
# if 0
@@
-179,7
+178,7
@@
_GL_CXXALIAS_SYS (getaddrinfo, int,
_GL_CXXALIASWARN (getaddrinfo);
# if !@HAVE_DECL_FREEADDRINFO@
_GL_CXXALIASWARN (getaddrinfo);
# if !@HAVE_DECL_FREEADDRINFO@
-/* Free
`
addrinfo' structure AI including associated storage.
+/* Free
'
addrinfo' structure AI including associated storage.
For more details, see the POSIX:2001 specification
<http://www.opengroup.org/susv3xsh/getaddrinfo.html>. */
_GL_FUNCDECL_SYS (freeaddrinfo, void, (struct addrinfo *ai)
For more details, see the POSIX:2001 specification
<http://www.opengroup.org/susv3xsh/getaddrinfo.html>. */
_GL_FUNCDECL_SYS (freeaddrinfo, void, (struct addrinfo *ai)
@@
-262,5
+261,5
@@
_GL_WARN_ON_USE (getnameinfo, "getnameinfo is unportable - "
#endif
#endif
-#endif /* _
GL
_NETDB_H */
-#endif /* _
GL
_NETDB_H */
+#endif /* _
@GUARD_PREFIX@
_NETDB_H */
+#endif /* _
@GUARD_PREFIX@
_NETDB_H */