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