]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
sa_family_t.3type, sockaddr.3type: Document sa_family_t
authorAlejandro Colomar <alx.manpages@gmail.com>
Fri, 29 Jul 2022 22:29:31 +0000 (00:29 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Fri, 29 Jul 2022 22:29:31 +0000 (00:29 +0200)
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man3type/sa_family_t.3type [new file with mode: 0644]
man3type/sockaddr.3type

diff --git a/man3type/sa_family_t.3type b/man3type/sa_family_t.3type
new file mode 100644 (file)
index 0000000..39e914c
--- /dev/null
@@ -0,0 +1 @@
+.so man3type/sockaddr.3type
index 495e0d5f78d0161d3e6ec27f75d3920bf0f59cb4..9367158e1dc7201ba11d6c5eab6024399be8d9a4 100644 (file)
@@ -26,6 +26,7 @@ Standard C library
 .B };
 .PP
 .BR typedef " /* ... */ " socklen_t;
+.BR typedef " /* ... */ " sa_family_t;
 .PP
 .fi
 .SS Internet domain sockets
@@ -83,6 +84,10 @@ structures and used to access its fields.
 .I socklen_t
 Describes the length of a socket address.
 This is an integer type of at least 32 bits.
+.TP
+.I sa_family_t
+Describes a socket's protocol family.
+This is an unsigned integer type.
 .SS Internet domain sockets
 .TP
 .I sockaddr_in
@@ -109,6 +114,12 @@ POSIX.1-2001 and later.
 .I socklen_t
 is also defined in
 .IR <netdb.h> .
+.PP
+.I sa_family_t
+is also defined in
+.I <netinet/in.h>
+and
+.IR <sys/un.h> .
 .SH SEE ALSO
 .BR accept (2),
 .BR bind (2),