1 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
3 .\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
4 .TH GETRPCENT 3 2008-08-19 "" "Linux Programmer's Manual"
6 getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent \- get
12 .BI "struct rpcent *getrpcent(void);"
14 .BI "struct rpcent *getrpcbyname(char *" name );
16 .BI "struct rpcent *getrpcbynumber(int " number );
18 .BI "void setrpcent(int " stayopen );
20 .BI "void endrpcent(void);"
28 each return a pointer to an object with the
29 following structure containing the broken-out
30 fields of an entry in the RPC program number data base.
35 char *r_name; /* name of server for this RPC program */
36 char **r_aliases; /* alias list */
37 long r_number; /* RPC program number */
42 The members of this structure are:
46 The name of the server for this RPC program.
49 A NULL-terminated list of alternate names for the RPC program.
52 The RPC program number for this service.
56 reads the next entry from the database.
57 A connection is opened to the database if necessary.
60 function opens a connection to the database,
61 and sets the next entry to the first entry.
62 If \fIstayopen\fP is nonzero,
63 then the connection to the database
64 will not be closed between calls to one of the
70 function closes the connection to the database.
75 sequentially search from the beginning
76 of the file until a matching RPC program name or
77 program number is found, or until end-of-file is encountered.
84 return a pointer to a statically allocated
87 A NULL pointer is returned on EOF or error.
91 RPC program number database.
94 Present on the BSDs, Solaris, and many other systems.
97 is contained in a static area
98 so it must be copied if it is