summaryrefslogtreecommitdiffstats
path: root/gl/inet_ntop.h
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2009-01-15 04:22:57 -0500
committerThomas Guyot-Sionnest <dermoth@aei.ca>2009-01-15 05:19:08 -0500
commit71cdb52799220f8d9052643baf1d3e9836a9c755 (patch)
tree27aee97a35d9ab51f0d8f64a46690bd41a5f8c1b /gl/inet_ntop.h
parentf7afa46586645e50498d8b2d0c67884f014dc3a4 (diff)
downloadmonitoring-plugins-71cdb52799220f8d9052643baf1d3e9836a9c755.tar.gz
Sync with gnulib
Diffstat (limited to 'gl/inet_ntop.h')
-rw-r--r--gl/inet_ntop.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/gl/inet_ntop.h b/gl/inet_ntop.h
deleted file mode 100644
index 2897bb40..00000000
--- a/gl/inet_ntop.h
+++ /dev/null
@@ -1,42 +0,0 @@
1/* Convert internet address from internal to printable, presentable format.
2 Copyright (C) 2005, 2006 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software Foundation,
16 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
17
18#include <sys/types.h>
19#include <sys/socket.h>
20#include <netinet/in.h>
21#include <arpa/inet.h>
22
23/* Converts an internet address from internal format to a printable,
24 presentable format.
25 AF is an internet address family, such as AF_INET or AF_INET6.
26 SRC points to a 'struct in_addr' (for AF_INET) or 'struct in6_addr'
27 (for AF_INET6).
28 DST points to a buffer having room for CNT bytes.
29 The printable representation of the address (in numeric form, not
30 surrounded by [...], no reverse DNS is done) is placed in DST, and
31 DST is returned. If an error occurs, the return value is NULL and
32 errno is set. If CNT bytes are not sufficient to hold the result,
33 the return value is NULL and errno is set to ENOSPC. A good value
34 for CNT is 46.
35
36 For more details, see the POSIX:2001 specification
37 <http://www.opengroup.org/susv3xsh/inet_ntop.html>. */
38
39#if !HAVE_DECL_INET_NTOP
40extern const char *inet_ntop (int af, const void *restrict src,
41 char *restrict dst, socklen_t cnt);
42#endif