From: guenther Date: Sun, 11 Oct 2015 07:25:11 +0000 (+0000) Subject: Document that bind(2) and connect(2) ignore the incoming sa_len X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=25d2bf7f9a4f235ad505aed911725c6924b71130;p=openbsd Document that bind(2) and connect(2) ignore the incoming sa_len suggest by and ok deraadt@ wordsmithing jmc@ --- 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.