aboutsummaryrefslogtreecommitdiffstats
path: root/man3/sockaddr-struct.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-02-24 23:25:25 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2022-02-25 12:49:42 +0100
commit7fc1ad39e51527dd20946f3481b0869f6db26a7d (patch)
tree115bb3aec69aa9f2afc09ef545f7a993b4f5060f /man3/sockaddr-struct.3
parent04c91a35d8b36f21c50d259146e60fc5a02a2169 (diff)
downloadman-pages-7fc1ad39e51527dd20946f3481b0869f6db26a7d.tar.gz
sockaddr-struct.3, socklen_t.3, system_data_types.7: Move socklen_t to sockaddr-struct.3
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man3/sockaddr-struct.3')
-rw-r--r--man3/sockaddr-struct.321
1 files changed, 19 insertions, 2 deletions
diff --git a/man3/sockaddr-struct.3 b/man3/sockaddr-struct.3
index 0847166a18..0db6b5930b 100644
--- a/man3/sockaddr-struct.3
+++ b/man3/sockaddr-struct.3
@@ -1,6 +1,6 @@
.TH SOCKADDR 3 2022-02-24 Linux "Linux Programmer's Manual"
.SH NAME
-sockaddr \- socket address
+sockaddr, socklen_t \- socket address
.SH SYNOPSIS
.nf
.B #include <sys/socket.h>
@@ -9,13 +9,30 @@ sockaddr \- socket address
.BR " sa_family_t sa_family;" " /* Address family */"
.BR " char sa_data[];" " /* Socket address */"
.B };
+.PP
+.BR typedef " /* ... */ " socklen_t;
.fi
.SH DESCRIPTION
+.TP
+.I sockaddr
Describes a socket address.
+.TP
+.I socklen_t
+Describes the length of a socket address.
+According to POSIX,
+this shall be an integer type of at least 32 bits.
.SH CONFORMING TO
POSIX.1-2001 and later.
+.SH NOTES
+.I socklen_t
+is also defined in
+.IR <netdb.h> .
.SH SEE ALSO
.BR accept (2),
+.BR bind (2),
+.BR connect (2),
.BR getpeername (2),
.BR getsockname (2),
-.BR socket (2)
+.BR socket (2),
+.BR gethostbyaddr (3),
+.BR getnameinfo (3)