summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/getrpcport.3
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-12-21 22:56:48 +0000
committermpp <mpp@FreeBSD.org>1996-12-21 22:56:48 +0000
commitbef6a10c829afa66b19ea2482f320fa622453873 (patch)
treece051cd2b9397412228bb74aa965002942012a8f /lib/libc/rpc/getrpcport.3
parentad3a46d18ba9b4fae98b615a912d155f1008d49e (diff)
downloadFreeBSD-src-bef6a10c829afa66b19ea2482f320fa622453873.zip
FreeBSD-src-bef6a10c829afa66b19ea2482f320fa622453873.tar.gz
Convert to mdoc format.
Diffstat (limited to 'lib/libc/rpc/getrpcport.3')
-rw-r--r--lib/libc/rpc/getrpcport.338
1 files changed, 18 insertions, 20 deletions
diff --git a/lib/libc/rpc/getrpcport.3 b/lib/libc/rpc/getrpcport.3
index 01e7502..f9c3cb4 100644
--- a/lib/libc/rpc/getrpcport.3
+++ b/lib/libc/rpc/getrpcport.3
@@ -1,31 +1,29 @@
.\" @(#)getrpcport.3r 2.2 88/08/02 4.0 RPCSRC; from 1.12 88/02/26 SMI
-.TH GETRPCPORT 3 "6 October 1987"
-.SH NAME
-getrpcport \- get RPC port number
-.SH SYNOPSIS
-.ft B
-.nf
-int getrpcport(host, prognum, versnum, proto)
- char *host;
- int prognum, versnum, proto;
-.fi
-.SH DESCRIPTION
-.IX getrpcport "" "\fLgetrpcport\fR \(em get RPC port number"
-.B getrpcport(\|)
+.Dd "October 6, 1987"
+.Dt GETRPCPORT 3
+.Os
+.Sh NAME
+.Nm getrpcport
+.Nd get RPC port number
+.Sh SYNOPSIS
+.Ft int
+.Fn getrpcport "char *host" "int prognum" "int versnum" "int proto"
+.Sh DESCRIPTION
+.Fn getrpcport
returns the port number for version
-.I versnum
+.Fa versnum
of the RPC program
-.I prognum
+.Fa prognum
running on
-.I host
+.Fa host
and using protocol
-.IR proto .
+.Fa proto .
It returns 0 if it cannot contact the portmapper, or if
-.I prognum
+.Fa prognum
is not registered. If
-.I prognum
+.Fa prognum
is registered but not with version
-.IR versnum ,
+.Fa versnum ,
it will still return a port number (for some version of the program)
indicating that the program is indeed registered.
The version mismatch will be detected upon the first call to the service.
OpenPOWER on IntegriCloud