summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2005-04-12 23:24:40 +0000
committermdodd <mdodd@FreeBSD.org>2005-04-12 23:24:40 +0000
commit29641e3ba17a270c4a2552129d335bdfbc2c3a31 (patch)
treef16aafe9518ebfccb4f915a33b000d625484f139 /share
parentf9da7305b5117faca349d5ba989239117812a123 (diff)
downloadFreeBSD-src-29641e3ba17a270c4a2552129d335bdfbc2c3a31.zip
FreeBSD-src-29641e3ba17a270c4a2552129d335bdfbc2c3a31.tar.gz
Document the SUN_LEN macro.
Obtained from: NetBSD
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/unix.418
1 files changed, 18 insertions, 0 deletions
diff --git a/share/man/man4/unix.4 b/share/man/man4/unix.4
index 8b84a7d..13a9289 100644
--- a/share/man/man4/unix.4
+++ b/share/man/man4/unix.4
@@ -83,6 +83,24 @@ removed when the socket is closed \(em
.Xr unlink 2
must be used to remove the file.
.Pp
+The length of
+.Ux Ns -domain
+address, required by
+.Xr bind 2
+and
+.Xr connect 2 ,
+can be calculated by the macro
+.Fn SUN_LEN
+defined in
+.In sys/un.h .
+The
+.Ar sun_path
+field must be terminated by a NUL character to be used with
+.Fn SUN_LEN ,
+but the terminating NUL is
+.Em not
+part of the address.
+.Pp
The
.Ux Ns -domain
protocol family does not support broadcast addressing or any form
OpenPOWER on IntegriCloud