diff options
author | bde <bde@FreeBSD.org> | 2000-01-27 02:55:01 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2000-01-27 02:55:01 +0000 |
commit | f82c03e087c84871cd05fdec0902851912331b32 (patch) | |
tree | b693585a2fa8e71116f7d4213ae0b50fd494b935 /lib/libc | |
parent | f966bf838fefe9e13d03b6f794e5675c7397ca6e (diff) | |
download | FreeBSD-src-f82c03e087c84871cd05fdec0902851912331b32.zip FreeBSD-src-f82c03e087c84871cd05fdec0902851912331b32.tar.gz |
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.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/rpc/bindresvport.3 | 19 |
1 files changed, 11 insertions, 8 deletions
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 <sys/types.h> -.Fd #include <netinet/in.h> +.Fd #include <rpc/rpc.h> .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 |