~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/arpa_inet.in.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- buffer-read-only: t -*- vi: set ro: */
2
 
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3
1
/* A GNU-like <arpa/inet.h>.
4
2
 
5
 
   Copyright (C) 2005-2006, 2008-2011 Free Software Foundation, Inc.
 
3
   Copyright (C) 2005-2006, 2008-2012 Free Software Foundation, Inc.
6
4
 
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.
16
14
 
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/>.  */
20
17
 
21
18
#ifndef _@GUARD_PREFIX@_ARPA_INET_H
22
19
 
60
57
 
61
58
 
62
59
#if @GNULIB_INET_NTOP@
63
 
# if !@HAVE_DECL_INET_NTOP@
64
60
/* Converts an internet address from internal format to a printable,
65
61
   presentable format.
66
62
   AF is an internet address family, such as AF_INET or AF_INET6.
76
72
 
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)
 
77
#   undef inet_ntop
 
78
#   define inet_ntop rpl_inet_ntop
 
79
#  endif
 
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));
 
87
# else
 
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)));
83
 
# endif
 
93
#  endif
84
94
/* Need to cast, because on NonStop Kernel, the fourth parameter is
85
95
                                            size_t cnt.  */
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));
 
99
# endif
89
100
_GL_CXXALIASWARN (inet_ntop);
90
101
#elif defined GNULIB_POSIXCHECK
91
102
# undef inet_ntop
96
107
#endif
97
108
 
98
109
#if @GNULIB_INET_PTON@
99
 
# if !@HAVE_DECL_INET_PTON@
 
110
# if @REPLACE_INET_PTON@
 
111
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 
112
#   undef inet_pton
 
113
#   define inet_pton rpl_inet_pton
 
114
#  endif
 
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));
 
120
# else
 
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)));
103
 
# endif
 
125
#  endif
104
126
_GL_CXXALIAS_SYS (inet_pton, int,
105
127
                  (int af, const char *restrict src, void *restrict dst));
 
128
# endif
106
129
_GL_CXXALIASWARN (inet_pton);
107
130
#elif defined GNULIB_POSIXCHECK
108
131
# undef inet_pton