diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-21 03:49:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-21 03:49:54 +0000 |
commit | 6ce010bf8eb9ed0df0d8eb5dc022807e763c1769 (patch) | |
tree | a6c4600c1ca1081ace6bbcea2db3200a401dd5a9 /lib/libc/rpc/bindresvport.3 | |
parent | 28ad9912f6dc79f43cf6e45a7ea82b2ea255fc00 (diff) |
document sin_port behaviour, pr#36, kstailey@dol-esa.gov
Diffstat (limited to 'lib/libc/rpc/bindresvport.3')
-rw-r--r-- | lib/libc/rpc/bindresvport.3 | 7 |
1 files changed, 6 insertions, 1 deletions
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. |