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.4 2007/08/18 20:48:47 swildner Exp $
22 .Fn getrpcbyname "char *name"
24 .Fn getrpcbynumber "int number"
26 .Fn setrpcent "int stayopen"
35 functions each return a pointer to an object with the
37 containing the broken-out
38 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_aliasesxxx
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.
61 function reads the next line of the file, opening the file if necessary.
64 function opens and rewinds the file. If the
67 the net data base will not be closed after each call to
69 (either directly, or indirectly through one of
80 sequentially search from the beginning
81 of the file until a matching rpc program name or
82 program number is found, or until end-of-file is encountered.
84 .Bl -tag -width /etc/rpc -compact
90 pointer is returned on
99 is contained in a static area
100 so it must be copied if it is