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 $
19 .Fn getrpcbyname "char *name"
21 .Fn getrpcbynumber "int number"
23 .Fn setrpcent "int stayopen"
32 functions each return a pointer to an object with the
34 containing the broken-out
35 fields of a line in the rpc program number data base,
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_aliasesxxx
49 The name of the server for this rpc program.
51 A zero terminated list of alternate names for the rpc program.
53 The rpc program number for this service.
58 function reads the next line of the file, opening the file if necessary.
61 function opens and rewinds the file. If the
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.
81 .Bl -tag -width /etc/rpc -compact
91 pointer is returned on
96 is contained in a static area
97 so it must be copied if it is