1 .\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
2 .\" $NetBSD: getrpcent.3,v 1.6 1998/02/05 18:49:06 perry Exp $
3 .\" $FreeBSD: src/lib/libc/rpc/getrpcent.3,v 1.18 2005/01/20 09:17:04 ru Exp $
22 .Fn getrpcbyname "char *name"
24 .Fn getrpcbynumber "int number"
26 .Fn setrpcent "int stayopen"
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,
43 char *r_name; /* name of server for this rpc program */
44 char **r_aliases; /* alias list */
45 long r_number; /* rpc program number */
49 The members of this structure are:
50 .Bl -tag -width r_aliases -offset indent
52 The name of the server for this rpc program.
54 A zero terminated list of alternate names for the rpc program.
56 The rpc program number for this service.
62 reads the next line of the file, opening the file if necessary.
67 opens and rewinds the file.
71 the net data base will not be closed after each call to
73 (either directly, or indirectly through one of
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.
92 .Bl -tag -width /etc/rpc -compact
98 pointer is returned on
107 .\"is contained in a static area
108 .\"so it must be copied if it is
110 The data space used by
111 these functions is thread-specific; if future use requires the data, it should be
112 copied before any subsequent calls to these functions overwrite it.