~ubuntu-branches/debian/sid/nagios-plugins/sid

« back to all changes in this revision

Viewing changes to gl/arpa_inet.in.h

  • Committer: Package Import Robot
  • Author(s): Jan Wagner
  • Date: 2013-09-03 15:13:11 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20130903151311-ewlbj1ko4lmsraf5
Tags: 1.4.16+git20130902-1
* New upstream git snapshot (5789548373)
  - Adjust debian/copyright
* Droped the following upstream integrated patches
  - 05_fix_gets_undefined_in_iso_c11.dpatch
  - 10_check_apt_perfdata.dpatch
  - 11_check_nt_npe.dpatch
  - 12_check_smtp_double_threshold.dpatch
* Fix removing empty /usr/include
* Add new check_dbi into nagios-plugins-standard
* Remove whois from Recommands, as check_bgpstate is removed
* Cleanup debian/rules from unused stuff
* Provide information about repackaging
  - Extend debian/README.source
  - Add debian/bin/repack.sh
* Updating standards version to 3.9.4 (no changes needed)
* Add libfreeradius-client-dev to build-deps and remove libradiusclient-ng-dev
  (Closes: #721621)
* Remove traces of contrib/ from debian/copyright
* Remove command.cfg from examples in nagios-plugins-common, it was removed
  upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* A GNU-like <arpa/inet.h>.
2
2
 
3
 
   Copyright (C) 2005-2006, 2008-2010 Free Software Foundation, Inc.
 
3
   Copyright (C) 2005-2006, 2008-2013 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software; you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
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
 
#ifndef _GL_ARPA_INET_H
 
18
#ifndef _@GUARD_PREFIX@_ARPA_INET_H
20
19
 
21
20
#if __GNUC__ >= 3
22
21
@PRAGMA_SYSTEM_HEADER@
23
22
#endif
24
 
 
25
 
/* Gnulib's sys/socket.h is responsible for pulling in winsock2.h etc
26
 
   under MinGW.
 
23
@PRAGMA_COLUMNS@
 
24
 
 
25
#if @HAVE_FEATURES_H@
 
26
# include <features.h> /* for __GLIBC__ */
 
27
#endif
 
28
 
 
29
/* Gnulib's sys/socket.h is responsible for defining socklen_t (used below) and
 
30
   for pulling in winsock2.h etc. under MinGW.
27
31
   But avoid namespace pollution on glibc systems.  */
28
32
#ifndef __GLIBC__
29
33
# include <sys/socket.h>
30
34
#endif
31
35
 
 
36
/* On NonStop Kernel, inet_ntop and inet_pton are declared in <netdb.h>.
 
37
   But avoid namespace pollution on glibc systems.  */
 
38
#if defined __TANDEM && !defined __GLIBC__
 
39
# include <netdb.h>
 
40
#endif
 
41
 
32
42
#if @HAVE_ARPA_INET_H@
33
43
 
34
44
/* The include_next requires a split double-inclusion guard.  */
36
46
 
37
47
#endif
38
48
 
39
 
#ifndef _GL_ARPA_INET_H
40
 
#define _GL_ARPA_INET_H
 
49
#ifndef _@GUARD_PREFIX@_ARPA_INET_H
 
50
#define _@GUARD_PREFIX@_ARPA_INET_H
 
51
 
 
52
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
41
53
 
42
54
/* The definition of _GL_ARG_NONNULL is copied here.  */
43
55
 
44
56
/* The definition of _GL_WARN_ON_USE is copied here.  */
45
57
 
46
 
#ifdef __cplusplus
47
 
extern "C" {
48
 
#endif
49
58
 
50
59
#if @GNULIB_INET_NTOP@
51
 
# if !@HAVE_DECL_INET_NTOP@
52
60
/* Converts an internet address from internal format to a printable,
53
61
   presentable format.
54
62
   AF is an internet address family, such as AF_INET or AF_INET6.
64
72
 
65
73
   For more details, see the POSIX:2001 specification
66
74
   <http://www.opengroup.org/susv3xsh/inet_ntop.html>.  */
67
 
extern const char *inet_ntop (int af, const void *restrict src,
68
 
                              char *restrict dst, socklen_t cnt)
69
 
     _GL_ARG_NONNULL ((2, 3));
 
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@
 
89
_GL_FUNCDECL_SYS (inet_ntop, const char *,
 
90
                  (int af, const void *restrict src,
 
91
                   char *restrict dst, socklen_t cnt)
 
92
                  _GL_ARG_NONNULL ((2, 3)));
 
93
#  endif
 
94
/* Need to cast, because on NonStop Kernel, the fourth parameter is
 
95
                                            size_t cnt.  */
 
96
_GL_CXXALIAS_SYS_CAST (inet_ntop, const char *,
 
97
                       (int af, const void *restrict src,
 
98
                        char *restrict dst, socklen_t cnt));
70
99
# endif
 
100
_GL_CXXALIASWARN (inet_ntop);
71
101
#elif defined GNULIB_POSIXCHECK
72
102
# undef inet_ntop
73
103
# if HAVE_RAW_DECL_INET_NTOP
77
107
#endif
78
108
 
79
109
#if @GNULIB_INET_PTON@
80
 
# if !@HAVE_DECL_INET_PTON@
81
 
extern int inet_pton (int af, const char *restrict src, void *restrict dst)
82
 
     _GL_ARG_NONNULL ((2, 3));
 
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@
 
122
_GL_FUNCDECL_SYS (inet_pton, int,
 
123
                  (int af, const char *restrict src, void *restrict dst)
 
124
                  _GL_ARG_NONNULL ((2, 3)));
 
125
#  endif
 
126
_GL_CXXALIAS_SYS (inet_pton, int,
 
127
                  (int af, const char *restrict src, void *restrict dst));
83
128
# endif
 
129
_GL_CXXALIASWARN (inet_pton);
84
130
#elif defined GNULIB_POSIXCHECK
85
131
# undef inet_pton
86
132
# if HAVE_RAW_DECL_INET_PTON
89
135
# endif
90
136
#endif
91
137
 
92
 
#ifdef __cplusplus
93
 
}
94
 
#endif
95
138
 
96
 
#endif /* _GL_ARPA_INET_H */
97
 
#endif /* _GL_ARPA_INET_H */
 
139
#endif /* _@GUARD_PREFIX@_ARPA_INET_H */
 
140
#endif /* _@GUARD_PREFIX@_ARPA_INET_H */