From f82c03e087c84871cd05fdec0902851912331b32 Mon Sep 17 00:00:00 2001 From: bde Date: Thu, 27 Jan 2000 02:55:01 +0000 Subject: Fixed wrong includes in synopsis. Updated date. 1987 was a while ago. Removed trailing comma in NAME section. Uncapitalised Bindresvport and Bindresvport_sa in DESCRIPTION section. Don't use .Nm there either. Added bindresvport_sa() to the RETURN VALUES and ERROR sections. --- lib/libc/rpc/bindresvport.3 | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'lib/libc/rpc') diff --git a/lib/libc/rpc/bindresvport.3 b/lib/libc/rpc/bindresvport.3 index d37aeff..c68a91b 100644 --- a/lib/libc/rpc/bindresvport.3 +++ b/lib/libc/rpc/bindresvport.3 @@ -1,24 +1,23 @@ .\" @(#)bindresvport.3n 2.2 88/08/02 4.0 RPCSRC; from 1.7 88/03/14 SMI .\" $FreeBSD$ .\" -.Dd November 22, 1987 +.Dd January 27, 2000 .Dt BINDRESVPORT 3 .Os .Sh NAME .Nm bindresvport , -.Nm bindresvport_sa , +.Nm bindresvport_sa .Ndbind a socket to a privileged IP port .Sh SYNOPSIS -.Fd #include -.Fd #include +.Fd #include .Ft int .Fn bindresvport "int sd" "struct sockaddr_in *sin" .Ft int .Fn bindresvport_sa "int sd" "struct sockaddr *sa" .Sh DESCRIPTION -.Nm Bindresvport +.Fn bindresvport and -.Nm Bindresvport_sa +.Fn bindresvport_sa are used to bind a socket descriptor to a privileged .Tn IP port, that is, a @@ -59,13 +58,17 @@ sockets as well as sockets. .Sh RETURN VALUES .Fn bindresvport -returns 0 if it is successful, otherwise \-1 is returned and +and +.Fn bindresvport_sa +return 0 if they are successful, otherwise \-1 is returned and .Va errno set to reflect the cause of the error. .Sh ERRORS The .Fn bindresvport -function fails if: +and +.Fn bindresvport_sa +functions fail if: .Bl -tag -width Er .It Bq Er EBADF .Fa sd -- cgit v1.1