1
/* -*- buffer-read-only: t -*- vi: set ro: */
2
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3
1
/* A GNU-like <arpa/inet.h>.
5
Copyright (C) 2005-2006, 2008-2011 Free Software Foundation, Inc.
3
Copyright (C) 2005-2006, 2008-2012 Free Software Foundation, Inc.
7
5
This program is free software; you can redistribute it and/or modify
8
6
it under the terms of the GNU General Public License as published by
15
13
GNU General Public License for more details.
17
15
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software Foundation,
19
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
16
along with this program; if not, see <http://www.gnu.org/licenses/>. */
21
18
#ifndef _@GUARD_PREFIX@_ARPA_INET_H
77
73
For more details, see the POSIX:2001 specification
78
74
<http://www.opengroup.org/susv3xsh/inet_ntop.html>. */
75
# if @REPLACE_INET_NTOP@
76
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
78
# define inet_ntop rpl_inet_ntop
80
_GL_FUNCDECL_RPL (inet_ntop, const char *,
81
(int af, const void *restrict src,
82
char *restrict dst, socklen_t cnt)
83
_GL_ARG_NONNULL ((2, 3)));
84
_GL_CXXALIAS_RPL (inet_ntop, const char *,
85
(int af, const void *restrict src,
86
char *restrict dst, socklen_t cnt));
88
# if !@HAVE_DECL_INET_NTOP@
79
89
_GL_FUNCDECL_SYS (inet_ntop, const char *,
80
90
(int af, const void *restrict src,
81
91
char *restrict dst, socklen_t cnt)
82
92
_GL_ARG_NONNULL ((2, 3)));
84
94
/* Need to cast, because on NonStop Kernel, the fourth parameter is
86
96
_GL_CXXALIAS_SYS_CAST (inet_ntop, const char *,
87
97
(int af, const void *restrict src,
88
98
char *restrict dst, socklen_t cnt));
89
100
_GL_CXXALIASWARN (inet_ntop);
90
101
#elif defined GNULIB_POSIXCHECK
98
109
#if @GNULIB_INET_PTON@
99
# if !@HAVE_DECL_INET_PTON@
110
# if @REPLACE_INET_PTON@
111
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
113
# define inet_pton rpl_inet_pton
115
_GL_FUNCDECL_RPL (inet_pton, int,
116
(int af, const char *restrict src, void *restrict dst)
117
_GL_ARG_NONNULL ((2, 3)));
118
_GL_CXXALIAS_RPL (inet_pton, int,
119
(int af, const char *restrict src, void *restrict dst));
121
# if !@HAVE_DECL_INET_PTON@
100
122
_GL_FUNCDECL_SYS (inet_pton, int,
101
123
(int af, const char *restrict src, void *restrict dst)
102
124
_GL_ARG_NONNULL ((2, 3)));
104
126
_GL_CXXALIAS_SYS (inet_pton, int,
105
127
(int af, const char *restrict src, void *restrict dst));
106
129
_GL_CXXALIASWARN (inet_pton);
107
130
#elif defined GNULIB_POSIXCHECK
108
131
# undef inet_pton