1 .\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
2 .\" $NetBSD: getrpcent.3,v 1.14 2004/08/16 10:18:27 wiz Exp $
21 .Fn getrpcbyname "const char *name"
23 .Fn getrpcbynumber "int number"
25 .Fn setrpcent "int stayopen"
33 each return a pointer to an object with the
35 containing the broken-out
36 fields of a line in the rpc program number data base,
38 .Bd -literal -offset indent
40 char *r_name; /* name of server for this rpc program */
41 char **r_aliases; /* alias list */
42 long r_number; /* rpc program number */
46 The members of this structure are:
47 .Bl -tag -width r_aliases -offset indent
49 The name of the server for this rpc program.
51 A zero terminated list of alternative names for the rpc program.
53 The rpc program number for this service.
57 reads the next line of the file, opening the file if necessary.
60 opens and rewinds the file.
64 the net data base will not be closed after each call to
66 (either directly, or indirectly through one of
77 sequentially search from the beginning
78 of the file until a matching rpc program name or
79 program number is found, or until end-of-file is encountered.
85 pointer is returned on
94 is contained in a static area
95 so it must be copied if it is