diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2001-10-13 17:20:51 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2001-10-13 17:20:51 +0000 |
commit | 418fff7e8f3d4906eabc0efa5a14989defc33ae4 (patch) | |
tree | 098ea03cbb5cb5c0000fa6484b1aa02748e80a90 /lib/libc/sys/bind.2 | |
parent | f530103a6695cca353f464916621950c1925c050 (diff) | |
download | src-418fff7e8f3d4906eabc0efa5a14989defc33ae4.tar.gz src-418fff7e8f3d4906eabc0efa5a14989defc33ae4.zip |
Add warning about zeroing-out the socket structure before populating it.
Notes
Notes:
svn path=/head/; revision=84888
Diffstat (limited to 'lib/libc/sys/bind.2')
-rw-r--r-- | lib/libc/sys/bind.2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2 index 3f9d70776a01..4e99aa883a0d 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 |