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 2021-03-22 "" "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 );
19 .BI "struct rpcent *getrpcbynumber(int " number );
21 .BI "void setrpcent(int " stayopen );
22 .BI "void endrpcent(void);"
30 functions each return a pointer to an object with the
31 following structure containing the broken-out
32 fields of an entry in the RPC program number data base.
37 char *r_name; /* name of server for this RPC program */
38 char **r_aliases; /* alias list */
39 long r_number; /* RPC program number */
44 The members of this structure are:
47 The name of the server for this RPC program.
50 A NULL-terminated list of alternate names for the RPC program.
53 The RPC program number for this service.
57 function reads the next entry from the database.
58 A connection is opened to the database if necessary.
62 function opens a connection to the database,
63 and sets the next entry to the first entry.
67 then the connection to the database
68 will not be closed between calls to one of the
74 function closes the connection to the database.
80 functions 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.
89 return a pointer to a statically allocated
92 NULL is returned on EOF or error.
96 RPC program number database.
98 For an explanation of the terms used in this section, see
106 Interface Attribute Value
110 .BR getrpcbynumber ()
111 T} Thread safety MT-Unsafe
115 T} Thread safety MT-Safe locale
122 Present on the BSDs, Solaris, and many other systems.
125 is contained in a static area
126 so it must be copied if it is