summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getnameinfo.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/getnameinfo.3')
-rw-r--r--src/lib/libc/net/getnameinfo.312
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libc/net/getnameinfo.3 b/src/lib/libc/net/getnameinfo.3
index 18c2cdc075..4e97b5d07b 100644
--- a/src/lib/libc/net/getnameinfo.3
+++ b/src/lib/libc/net/getnameinfo.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getnameinfo.3,v 1.48 2019/08/30 20:20:51 jmc Exp $ 1.\" $OpenBSD: getnameinfo.3,v 1.49 2022/09/11 06:38:10 jmc Exp $
2.\" $KAME: getnameinfo.3,v 1.37 2005/01/05 03:23:05 itojun Exp $ 2.\" $KAME: getnameinfo.3,v 1.37 2005/01/05 03:23:05 itojun Exp $
3.\" 3.\"
4.\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC") 4.\" Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
@@ -16,7 +16,7 @@
16.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16.\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17.\" PERFORMANCE OF THIS SOFTWARE. 17.\" PERFORMANCE OF THIS SOFTWARE.
18.\" 18.\"
19.Dd $Mdocdate: August 30 2019 $ 19.Dd $Mdocdate: September 11 2022 $
20.Dt GETNAMEINFO 3 20.Dt GETNAMEINFO 3
21.Os 21.Os
22.Sh NAME 22.Sh NAME
@@ -33,7 +33,7 @@
33The 33The
34.Fn getnameinfo 34.Fn getnameinfo
35function is used to convert a 35function is used to convert a
36.Li sockaddr 36.Vt sockaddr
37structure to a pair of host name and service strings. 37structure to a pair of host name and service strings.
38It is a replacement for and provides more flexibility than the 38It is a replacement for and provides more flexibility than the
39.Xr gethostbyaddr 3 39.Xr gethostbyaddr 3
@@ -44,13 +44,13 @@ functions and is the converse of the
44function. 44function.
45.Pp 45.Pp
46The 46The
47.Li sockaddr 47.Vt sockaddr
48structure 48structure
49.Fa sa 49.Fa sa
50should point to either a 50should point to either a
51.Li sockaddr_in 51.Vt sockaddr_in
52or 52or
53.Li sockaddr_in6 53.Vt sockaddr_in6
54structure (for IPv4 or IPv6 respectively) that is 54structure (for IPv4 or IPv6 respectively) that is
55.Fa salen 55.Fa salen
56bytes long. 56bytes long.