summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-10-11 07:25:12 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-10-11 07:25:12 +0000
commit5d675e7edf060093e93774c58315a5bd631d70c2 (patch)
tree863d29ca316f3176209273557d88c0e2d0952f5c /lib
parent28cb2ad8a985ce6218779a6e7ed4395b1268bf79 (diff)
Document that bind(2) and connect(2) ignore the incoming sa_len
suggest by and ok deraadt@ wordsmithing jmc@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/bind.210
-rw-r--r--lib/libc/sys/connect.210
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.