1 .\" from: @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
2 .\" $Id: getrpcent.3,v 1.1 1999/04/13 23:15:37 wsanchez Exp $
15 .Fd #include <netdb.h>
19 .Fn getrpcbyname "char *name"
21 .Fn getrpcbynumber "int number"
23 .Fn setrpcent "int stayopen"
31 each return a pointer to an object with the
33 containing the broken-out
34 fields of a line in the rpc program number data base,
36 .Bd -literal -offset indent
38 char *r_name; /* name of server for this rpc program */
39 char **r_aliases; /* alias list */
40 long r_number; /* rpc program number */
44 The members of this structure are:
45 .Bl -tag -width r_aliases -offset indent
47 The name of the server for this rpc program.
49 A zero terminated list of alternate names for the rpc program.
51 The rpc program number for this service.
55 reads the next line of the file, opening the file if necessary.
58 opens and rewinds the file. If the
61 the net data base will not be closed after each call to
63 (either directly, or indirectly through one of
74 sequentially search from the beginning
75 of the file until a matching rpc program name or
76 program number is found, or until end-of-file is encountered.
86 pointer is returned on
91 is contained in a static area
92 so it must be copied if it is