1 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
3 .\" %%%LICENSE_START(BSD_ONELINE_CDROM)
4 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
7 .\" @(#)getrpcport.3r 2.2 88/08/02 4.0 RPCSRC; from 1.12 88/02/26 SMI
8 .TH getrpcport 3 (date) "Linux man-pages (unreleased)"
10 getrpcport \- get RPC port number
13 .RI ( libc ", " \-lc )
16 .B "#include <rpc/rpc.h>"
18 .BI "int getrpcport(const char *" host ", unsigned long " prognum ,
19 .BI " unsigned long " versnum ", unsigned int " proto );
23 returns the port number for version
31 It returns 0 if it cannot contact the portmapper, or if
36 is registered but not with version
38 it will still return a port number (for some version of the program)
39 indicating that the program is indeed registered.
40 The version mismatch will be detected upon the first call to the service.
42 For an explanation of the terms used in this section, see
50 Interface Attribute Value
53 T} Thread safety MT-Safe env locale
60 Present on the BSDs, Solaris, and many other systems.