diff options
author | 2015-10-11 07:25:11 +0000 | |
---|---|---|
committer | 2015-10-11 07:25:11 +0000 | |
commit | 25d2bf7f9a4f235ad505aed911725c6924b71130 (patch) | |
tree | 842fbee76da183aee922a30ab4aea848a5fe91fe /lib/libc/sys | |
parent | YYSTYPE.number is int64_t, so format with <inttypes.h>'s PRId64 (diff) | |
download | wireguard-openbsd-25d2bf7f9a4f235ad505aed911725c6924b71130.tar.xz wireguard-openbsd-25d2bf7f9a4f235ad505aed911725c6924b71130.zip |
Document that bind(2) and connect(2) ignore the incoming sa_len
suggest by and ok deraadt@
wordsmithing jmc@
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/bind.2 | 10 | ||||
-rw-r--r-- | lib/libc/sys/connect.2 | 10 |
2 files changed, 14 insertions, 6 deletions
diff --git a/lib/libc/sys/bind.2 b/lib/libc/sys/bind.2 index f70856da6ca..789f228d64c 100644 --- a/lib/libc/sys/bind.2 +++ b/lib/libc/sys/bind.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: bind.2,v 1.20 2015/01/19 15:54:11 millert Exp $ +.\" $OpenBSD: bind.2,v 1.21 2015/10/11 07:25:11 guenther Exp $ .\" $NetBSD: bind.2,v 1.8 1995/10/12 15:40:46 jtc Exp $ .\" .\" Copyright (c) 1983, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)bind.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: January 19 2015 $ +.Dd $Mdocdate: October 11 2015 $ .Dt BIND 2 .Os .Sh NAME @@ -53,7 +53,11 @@ be assigned to the socket. .Fa namelen indicates the amount of space pointed to by .Fa name , -in bytes. +in bytes; the +.Fa sa_len +member of +.Fa name +is ignored. .Sh NOTES Binding a name in the .Ux Ns -domain diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2 index ba31df444a5..ff6d3ee5f09 100644 --- a/lib/libc/sys/connect.2 +++ b/lib/libc/sys/connect.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: connect.2,v 1.26 2015/09/10 17:55:21 schwarze Exp $ +.\" $OpenBSD: connect.2,v 1.27 2015/10/11 07:25:11 guenther Exp $ .\" $NetBSD: connect.2,v 1.8 1995/10/12 15:40:48 jtc Exp $ .\" .\" Copyright (c) 1983, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)connect.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: September 10 2015 $ +.Dd $Mdocdate: October 11 2015 $ .Dt CONNECT 2 .Os .Sh NAME @@ -59,7 +59,11 @@ which is an address in the communications space of the socket. .Fa namelen indicates the amount of space pointed to by .Fa name , -in bytes. +in bytes; the +.Fa sa_len +member of +.Fa name +is ignored. Each communications space interprets the .Fa name parameter in its own way. |