summaryrefslogtreecommitdiff
path: root/lib/libc/net
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-09-01 15:59:23 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-09-01 15:59:23 +0000
commit6fa1a01de51922e4e6835daaf2158ee97c5fef25 (patch)
tree1e74279a8aecf273888c9c8c86de79d841cec62e /lib/libc/net
parent06868d6000b229c4a28dc912c1e84a79856d1021 (diff)
inet_ntop(3) needs sys/socket.h for AF_INET / AF_INET6 so add the header
to the list. While here remove some of the headers from inet_net_ntop(3) for balance.
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/inet_net_ntop.36
-rw-r--r--lib/libc/net/inet_ntop.35
2 files changed, 5 insertions, 6 deletions
diff --git a/lib/libc/net/inet_net_ntop.3 b/lib/libc/net/inet_net_ntop.3
index db10bf962c7..816e87bf986 100644
--- a/lib/libc/net/inet_net_ntop.3
+++ b/lib/libc/net/inet_net_ntop.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: inet_net_ntop.3,v 1.1 2019/08/30 18:33:17 deraadt Exp $
+.\" $OpenBSD: inet_net_ntop.3,v 1.2 2021/09/01 15:59:22 claudio Exp $
.\" $NetBSD: inet_net.3,v 1.1 1997/06/18 02:25:27 lukem Exp $
.\"
.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 30 2019 $
+.Dd $Mdocdate: September 1 2021 $
.Dt INET_NET_NTOP 3
.Os
.Sh NAME
@@ -36,9 +36,7 @@
.Nm inet_net_pton
.Nd Internet network number manipulation routines
.Sh SYNOPSIS
-.In sys/types.h
.In sys/socket.h
-.In netinet/in.h
.In arpa/inet.h
.Ft char *
.Fn inet_net_ntop "int af" "const void *src" "int bits" "char *dst" "size_t size"
diff --git a/lib/libc/net/inet_ntop.3 b/lib/libc/net/inet_ntop.3
index 0e168c7d86e..c80b0c47766 100644
--- a/lib/libc/net/inet_ntop.3
+++ b/lib/libc/net/inet_ntop.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: inet_ntop.3,v 1.4 2019/08/30 20:06:07 jmc Exp $
+.\" $OpenBSD: inet_ntop.3,v 1.5 2021/09/01 15:59:22 claudio Exp $
.\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $
.\"
.\" Copyright (c) 1983, 1990, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)inet.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: August 30 2019 $
+.Dd $Mdocdate: September 1 2021 $
.Dt INET_NTOP 3
.Os
.Sh NAME
@@ -38,6 +38,7 @@
.Nm inet_pton
.Nd convert Internet addresses between presentation and network formats
.Sh SYNOPSIS
+.In sys/socket.h
.In arpa/inet.h
.Ft const char *
.Fn inet_ntop "int af" "const void * restrict src" "char * restrict dst" "socklen_t size"