From 6ce010bf8eb9ed0df0d8eb5dc022807e763c1769 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 21 Oct 1996 03:49:54 +0000 Subject: document sin_port behaviour, pr#36, kstailey@dol-esa.gov --- lib/libc/rpc/bindresvport.3 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/libc/rpc/bindresvport.3') diff --git a/lib/libc/rpc/bindresvport.3 b/lib/libc/rpc/bindresvport.3 index 45817399279..46ff8ff72af 100644 --- a/lib/libc/rpc/bindresvport.3 +++ b/lib/libc/rpc/bindresvport.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: bindresvport.3,v 1.3 1996/08/19 08:31:23 tholo Exp $ +.\" $OpenBSD: bindresvport.3,v 1.4 1996/10/21 03:49:53 deraadt Exp $ .\" .Dd November 22, 1987 .Dt BINDRESVPORT 3 @@ -24,3 +24,8 @@ set to reflect the cause of the error. .Pp Only root can bind to a privileged port; this call will fail for any other users. +.Pp +If the value of sin->sin_port is non-zero +.Fn bindresvport +otherwise it attempts to use the specified port. If that fails, it +chooses another privileged port number automatically. -- cgit v1.2.3