1 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
3 .\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
4 .TH GETRPCENT 3 2007-05-18 "" "Linux Programmer's Manual"
6 getrpcent, getrpcbyname, getrpcbynumber \- get RPC entry
13 struct rpcent *getrpcent()
16 struct rpcent *getrpcbyname(name)
20 struct rpcent *getrpcbynumber(number)
36 each return a pointer to an object with the
38 containing the broken-out
39 fields of a line in the rpc program number data base,
46 char *r_name; /* name of server for this rpc program */
47 char **r_aliases; /* alias list */
48 long r_number; /* rpc program number */
54 The members of this structure are:
59 The name of the server for this rpc program.
62 A zero terminated list of alternate names for the rpc program.
65 The rpc program number for this service.
70 reads the next line of the file, opening the file if necessary.
73 opens and rewinds the file.
77 the net data base will not be closed after each call to
79 (either directly, or indirectly through one of
80 the other \*(lqgetrpc\*(rq calls).
88 sequentially search from the beginning
89 of the file until a matching rpc program name or
90 program number is found, or until end-of-file is encountered.
95 pointer is returned on
105 Present on the BSDs, Solaris, and many other systems.
109 is contained in a static area
110 so it must be copied if it is