summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-10-13 17:20:51 +0000
committerdillon <dillon@FreeBSD.org>2001-10-13 17:20:51 +0000
commit01da670d8e9f0bbebc7bd6963521ee2eb4b494c8 (patch)
tree098ea03cbb5cb5c0000fa6484b1aa02748e80a90 /lib/libc
parent9a9790006668ef8b08c199d687096df5e3121b12 (diff)
downloadFreeBSD-src-01da670d8e9f0bbebc7bd6963521ee2eb4b494c8.zip
FreeBSD-src-01da670d8e9f0bbebc7bd6963521ee2eb4b494c8.tar.gz
Add warning about zeroing-out the socket structure before populating it.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/bind.24
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2
index 3f9d707..4e99aa8 100644
--- a/lib/libc/sys/bind.2
+++ b/lib/libc/sys/bind.2
@@ -64,6 +64,10 @@ needed (using
.Pp
The rules used in address binding vary between communication domains.
Consult the manual entries in section 4 for detailed information.
+.Pp
+For maximum portability, you should always zero-out the socket structure
+before populating it, before passing it to
+.Fn bind .
.Sh IMPLEMENTATION NOTES
In the non-threaded library
.Fn bind
OpenPOWER on IntegriCloud