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 $
4 .\" $DragonFly: src/lib/libc/rpc/getrpcent.3,v 1.4 2007/08/18 20:48:47 swildner Exp $
23 .Fn getrpcbyname "char *name"
25 .Fn getrpcbynumber "int number"
27 .Fn setrpcent "int stayopen"
37 each return a pointer to an object with the
39 containing the broken-out
40 fields of a line in the rpc program number data base,
44 char *r_name; /* name of server for this rpc program */
45 char **r_aliases; /* alias list */
46 long r_number; /* rpc program number */
50 The members of this structure are:
51 .Bl -tag -width r_aliases -offset indent
53 The name of the server for this rpc program.
55 A zero terminated list of alternate names for the rpc program.
57 The rpc program number for this service.
63 reads the next line of the file, opening the file if necessary.
68 opens and rewinds the file.
72 the net data base will not be closed after each call to
74 (either directly, or indirectly through one of
89 sequentially search from the beginning
90 of the file until a matching rpc program name or
91 program number is found, or until end-of-file is encountered.
93 .Bl -tag -width /etc/rpc -compact
99 pointer is returned on
108 is contained in a static area
109 so it must be copied if it is