[v4,01/35] system_data_types.7: Add 'struct sockaddr'

Message ID 20210403194026.102818-2-alx.manpages@gmail.com
State Superseded
Headers show
Series
  • SYNOPSIS: Use syscall(SYS_...); and fix '#include's
Related show

Commit Message

Martin Sebor via Libc-alpha April 3, 2021, 7:39 p.m.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>

---
 man7/system_data_types.7 | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

-- 
2.31.0

Patch

diff --git a/man7/system_data_types.7 b/man7/system_data_types.7
index 5648ae500..93c723a2f 100644
--- a/man7/system_data_types.7
+++ b/man7/system_data_types.7
@@ -1226,6 +1226,31 @@  and
 .I ssize_t
 types in this page.
 .RE
+.\"------------------------------------- sockaddr ---------------------/
+.TP
+.I sockaddr
+.RS
+.IR Include :
+.IR <sys/socket.h> .
+.PP
+.EX
+struct sockaddr {
+    sa_family_t sa_family; /* Address family */
+    char        sa_data[]; /* Socket address */
+};
+.EE
+.PP
+Describes a socket address.
+.PP
+.IR "Conforming to" :
+POSIX.1-2001 and later.
+.PP
+.IR "See also" :
+.BR accept (2),
+.BR getpeername (2),
+.BR getsockname (2),
+.BR socket (2)
+.RE
 .\"------------------------------------- ssize_t ----------------------/
 .TP
 .I ssize_t