1 .\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
18 .Fn getrpcbyname "char *name"
20 .Fn getrpcbynumber "int number"
22 .Fn setrpcent "int stayopen"
32 each return a pointer to an object with the
34 containing the broken-out
35 fields of a line in the rpc program number data base,
39 char *r_name; /* name of server for this rpc program */
40 char **r_aliases; /* alias list */
41 long r_number; /* rpc program number */
45 The members of this structure are:
46 .Bl -tag -width r_aliases -offset indent
48 The name of the server for this rpc program.
50 A zero terminated list of alternate names for the rpc program.
52 The rpc program number for this service.
58 reads the next line of the file, opening the file if necessary.
63 opens and rewinds the file. If the
66 the net data base will not be closed after each call to
68 (either directly, or indirectly through one of
83 sequentially search from the beginning
84 of the file until a matching rpc program name or
85 program number is found, or until end-of-file is encountered.
87 .Bl -tag -width /etc/rpc -compact
91 These functions are part of libtirpc.
98 pointer is returned on
103 is contained in a static area
104 so it must be copied if it is