2 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
4 .\" %%%LICENSE_START(BSD_ONELINE_CDROM)
5 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
8 .\" @(#)getrpcport.3r 2.2 88/08/02 4.0 RPCSRC; from 1.12 88/02/26 SMI
9 .TH getrpcport 3 (date) "Linux man-pages (unreleased)"
11 getrpcport \- get RPC port number
14 .RI ( libc ", " \-lc )
17 .B "#include <rpc/rpc.h>"
19 .BI "int getrpcport(const char *" host ", unsigned long " prognum ,
20 .BI " unsigned long " versnum ", unsigned int " proto );
24 returns the port number for version
32 It returns 0 if it cannot contact the portmapper, or if
37 is registered but not with version
39 it will still return a port number (for some version of the program)
40 indicating that the program is indeed registered.
41 The version mismatch will be detected upon the first call to the service.
43 For an explanation of the terms used in this section, see
51 Interface Attribute Value
54 T} Thread safety MT-Safe env locale