2 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
4 .\" %%%LICENSE_START(BSD_ONELINE_CDROM)
5 .\" This page was taken from the 4.4BSD-Lite CDROM (BSD license)
8 .\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
9 .TH getrpcent 3 (date) "Linux man-pages (unreleased)"
11 getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent \- get
15 .RI ( libc ", " \-lc )
20 .B struct rpcent *getrpcent(void);
22 .BI "struct rpcent *getrpcbyname(const char *" name );
23 .BI "struct rpcent *getrpcbynumber(int " number );
25 .BI "void setrpcent(int " stayopen );
26 .B void endrpcent(void);
34 functions each return a pointer to an object with the
35 following structure containing the broken-out
36 fields of an entry in the RPC program number data base.
41 char *r_name; /* name of server for this RPC program */
42 char **r_aliases; /* alias list */
43 long r_number; /* RPC program number */
48 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.
61 function reads the next entry from the database.
62 A connection is opened to the database if necessary.
66 function opens a connection to the database,
67 and sets the next entry to the first entry.
71 then the connection to the database
72 will not be closed between calls to one of the
78 function closes the connection to the database.
84 functions sequentially search from the beginning
85 of the file until a matching RPC program name or
86 program number is found, or until end-of-file is encountered.
93 return a pointer to a statically allocated
96 NULL is returned on EOF or error.
100 RPC program number database.
102 For an explanation of the terms used in this section, see
110 Interface Attribute Value
114 .BR getrpcbynumber ()
115 T} Thread safety MT-Unsafe
119 T} Thread safety MT-Safe locale
126 Present on the BSDs, Solaris, and many other systems.
129 is contained in a static area
130 so it must be copied if it is