1 .\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
2 .\" $FreeBSD: src/lib/libc/rpc/getrpcent.3,v 1.11.2.3 2001/12/14 18:33:56 ru Exp $
3 .\" $DragonFly: src/lib/libc/rpc/getrpcent.3,v 1.3 2006/02/17 19:35:06 swildner Exp $
20 .Fn getrpcbyname "char *name"
22 .Fn getrpcbynumber "int number"
24 .Fn setrpcent "int stayopen"
33 functions 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,
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_aliasesxxx
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.
59 function reads the next line of the file, opening the file if necessary.
62 function opens and rewinds the file. If the
65 the net data base will not be closed after each call to
67 (either directly, or indirectly through one of
78 sequentially search from the beginning
79 of the file until a matching rpc program name or
80 program number is found, or until end-of-file is encountered.
82 .Bl -tag -width /etc/rpc -compact
88 pointer is returned on
97 is contained in a static area
98 so it must be copied if it is