diff options
author | claudio <> | 2021-09-01 15:59:22 +0000 |
---|---|---|
committer | claudio <> | 2021-09-01 15:59:22 +0000 |
commit | 8ba36b11f23621d3529492cb644624eeca25b1f9 (patch) | |
tree | 3d893b39183b5362041fe08a7a16f8d57ac9f596 | |
parent | 62a814025d59b12d1b9b04c942d82a47df87c81c (diff) | |
download | openbsd-8ba36b11f23621d3529492cb644624eeca25b1f9.tar.gz openbsd-8ba36b11f23621d3529492cb644624eeca25b1f9.tar.bz2 openbsd-8ba36b11f23621d3529492cb644624eeca25b1f9.zip |
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.
-rw-r--r-- | src/lib/libc/net/inet_net_ntop.3 | 6 | ||||
-rw-r--r-- | src/lib/libc/net/inet_ntop.3 | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/libc/net/inet_net_ntop.3 b/src/lib/libc/net/inet_net_ntop.3 index db10bf962c..816e87bf98 100644 --- a/src/lib/libc/net/inet_net_ntop.3 +++ b/src/lib/libc/net/inet_net_ntop.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: inet_net_ntop.3,v 1.1 2019/08/30 18:33:17 deraadt Exp $ | 1 | .\" $OpenBSD: inet_net_ntop.3,v 1.2 2021/09/01 15:59:22 claudio Exp $ |
2 | .\" $NetBSD: inet_net.3,v 1.1 1997/06/18 02:25:27 lukem Exp $ | 2 | .\" $NetBSD: inet_net.3,v 1.1 1997/06/18 02:25:27 lukem Exp $ |
3 | .\" | 3 | .\" |
4 | .\" Copyright (c) 1997 The NetBSD Foundation, Inc. | 4 | .\" Copyright (c) 1997 The NetBSD Foundation, Inc. |
@@ -28,7 +28,7 @@ | |||
28 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | 28 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
29 | .\" POSSIBILITY OF SUCH DAMAGE. | 29 | .\" POSSIBILITY OF SUCH DAMAGE. |
30 | .\" | 30 | .\" |
31 | .Dd $Mdocdate: August 30 2019 $ | 31 | .Dd $Mdocdate: September 1 2021 $ |
32 | .Dt INET_NET_NTOP 3 | 32 | .Dt INET_NET_NTOP 3 |
33 | .Os | 33 | .Os |
34 | .Sh NAME | 34 | .Sh NAME |
@@ -36,9 +36,7 @@ | |||
36 | .Nm inet_net_pton | 36 | .Nm inet_net_pton |
37 | .Nd Internet network number manipulation routines | 37 | .Nd Internet network number manipulation routines |
38 | .Sh SYNOPSIS | 38 | .Sh SYNOPSIS |
39 | .In sys/types.h | ||
40 | .In sys/socket.h | 39 | .In sys/socket.h |
41 | .In netinet/in.h | ||
42 | .In arpa/inet.h | 40 | .In arpa/inet.h |
43 | .Ft char * | 41 | .Ft char * |
44 | .Fn inet_net_ntop "int af" "const void *src" "int bits" "char *dst" "size_t size" | 42 | .Fn inet_net_ntop "int af" "const void *src" "int bits" "char *dst" "size_t size" |
diff --git a/src/lib/libc/net/inet_ntop.3 b/src/lib/libc/net/inet_ntop.3 index 0e168c7d86..c80b0c4776 100644 --- a/src/lib/libc/net/inet_ntop.3 +++ b/src/lib/libc/net/inet_ntop.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: inet_ntop.3,v 1.4 2019/08/30 20:06:07 jmc Exp $ | 1 | .\" $OpenBSD: inet_ntop.3,v 1.5 2021/09/01 15:59:22 claudio Exp $ |
2 | .\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $ | 2 | .\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $ |
3 | .\" | 3 | .\" |
4 | .\" Copyright (c) 1983, 1990, 1991, 1993 | 4 | .\" Copyright (c) 1983, 1990, 1991, 1993 |
@@ -30,7 +30,7 @@ | |||
30 | .\" | 30 | .\" |
31 | .\" @(#)inet.3 8.1 (Berkeley) 6/4/93 | 31 | .\" @(#)inet.3 8.1 (Berkeley) 6/4/93 |
32 | .\" | 32 | .\" |
33 | .Dd $Mdocdate: August 30 2019 $ | 33 | .Dd $Mdocdate: September 1 2021 $ |
34 | .Dt INET_NTOP 3 | 34 | .Dt INET_NTOP 3 |
35 | .Os | 35 | .Os |
36 | .Sh NAME | 36 | .Sh NAME |
@@ -38,6 +38,7 @@ | |||
38 | .Nm inet_pton | 38 | .Nm inet_pton |
39 | .Nd convert Internet addresses between presentation and network formats | 39 | .Nd convert Internet addresses between presentation and network formats |
40 | .Sh SYNOPSIS | 40 | .Sh SYNOPSIS |
41 | .In sys/socket.h | ||
41 | .In arpa/inet.h | 42 | .In arpa/inet.h |
42 | .Ft const char * | 43 | .Ft const char * |
43 | .Fn inet_ntop "int af" "const void * restrict src" "char * restrict dst" "socklen_t size" | 44 | .Fn inet_ntop "int af" "const void * restrict src" "char * restrict dst" "socklen_t size" |