1 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
3 .\" %%%LICENSE_START(BSD_ONELINE_CDROM)
4 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
7 .\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
8 .TH GETRPCENT 3 2014-05-28 "" "Linux Programmer's Manual"
10 getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent \- get
16 .BI "struct rpcent *getrpcent(void);"
18 .BI "struct rpcent *getrpcbyname(const char *" name );
20 .BI "struct rpcent *getrpcbynumber(int " number );
22 .BI "void setrpcent(int " stayopen );
24 .BI "void endrpcent(void);"
33 functions each return a pointer to an object with the
34 following structure containing the broken-out
35 fields of an entry 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 */
47 The members of this structure are:
51 The name of the server for this RPC program.
54 A NULL-terminated list of alternate names for the RPC program.
57 The RPC program number for this service.
62 function reads the next entry from the database.
63 A connection is opened to the database if necessary.
67 function opens a connection to the database,
68 and sets the next entry to the first entry.
72 then the connection to the database
73 will not be closed between calls to one of the
79 function closes the connection to the database.
85 functions sequentially search from the beginning
86 of the file until a matching RPC program name or
87 program number is found, or until end-of-file is encountered.
94 return a pointer to a statically allocated
97 NULL is returned on EOF or error.
101 RPC program number database.
104 Present on the BSDs, Solaris, and many other systems.
107 is contained in a static area
108 so it must be copied if it is