From 73fed635982dd3813dfc4e501fae0e9c1869a0ac Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 1 Sep 2021 15:59:22 +0000 Subject: [PATCH] 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. --- lib/libc/net/inet_net_ntop.3 | 6 ++---- lib/libc/net/inet_ntop.3 | 5 +++-- 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" -- 2.20.1