getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent - get RPC


   #include <netdb.h>

   struct rpcent *getrpcent(void);

   struct rpcent *getrpcbyname(const char *name);

   struct rpcent *getrpcbynumber(int number);

   void setrpcent(int stayopen);

   void endrpcent(void);


   The getrpcent(), getrpcbyname(), and  getrpcbynumber()  functions  each
   return  a  pointer to an object with the following structure containing
   the broken-out fields of an entry in the RPC program number data base.

       struct rpcent {
           char  *r_name;     /* name of server for this RPC program */
           char **r_aliases;  /* alias list */
           long   r_number;   /* RPC program number */

   The members of this structure are:

       r_name      The name of the server for this RPC program.

       r_aliases   A NULL-terminated list of alternate names for  the  RPC

       r_number    The RPC program number for this service.

   The  getrpcent()  function  reads  the next entry from the database.  A
   connection is opened to the database if necessary.

   The setrpcent() function opens a connection to the database,  and  sets
   the  next  entry  to the first entry.  If stayopen is nonzero, then the
   connection to the database will not be closed between calls to  one  of
   the getrpc*() functions.

   The endrpcent() function closes the connection to the database.

   The  getrpcbyname()  and getrpcbynumber() functions sequentially search
   from the beginning of the file until a matching  RPC  program  name  or
   program number is found, or until end-of-file is encountered.


   On  success, getrpcent(), getrpcbyname(), and getrpcbynumber() return a
   pointer to a statically allocated rpcent structure.  NULL  is  returned
   on EOF or error.


          RPC program number database.


   For   an   explanation   of   the  terms  used  in  this  section,  see

   │InterfaceAttributeValue          │
   │getrpcent(), getrpcbyname(), │ Thread safety │ MT-Unsafe      │
   │getrpcbynumber()             │               │                │
   │setrpcent(), endrpcent()     │ Thread safety │ MT-Safe locale │


   Not in POSIX.1.  Present on the BSDs, Solaris, and many other systems.


   All information is contained in a static area so it must be  copied  if
   it is to be saved.


   getrpcent_r(3), rpc(5), rpcinfo(8), ypserv(8)


   This  page  is  part of release 4.09 of the Linux man-pages project.  A
   description of the project, information about reporting bugs,  and  the
   latest     version     of     this    page,    can    be    found    at

                              2015-07-23                      GETRPCENT(3)

More Linux Commands

Tcl_Write(3) - buffered I/O facilities using channels.......
The Tcl channel mechanism provides a device-independent and platform-independent mechanism for performing buffered input and output operations on a variety of f

XF86Misc(3) - Extension library for the XFree86-Misc X exten
These functions provide an interface to the XFree86-Misc extension which allows various server settings to be queried and changed dynamically. Applications that

Tcl_SourceRCFile(3) - source the Tcl rc file (Man Page).....
Tcl_SourceRCFile is used to source the Tcl rc file at startup. It is typically invoked by Tcl_Main or Tk_Main. The name of the file sourced is obtained from the

unregister_all_config_handlers(3) - netsnmp_config_api funct
The functions are a fairly extensible system of parsing various configuration files at the run time of an application. The configuration file flow is broken int

persistent-keyring(7) Per-user persistent keyring (ManPage)
The persistent keyring is a keyring used to anchor keys on behalf of a user. Each UID the kernel deals with has its own persistent keyring that is shared betwee

snmp_pdu_create(3) - netsnmp_pdu_api functions (Man Page)...
These functions deal with SNMP request structures. snmp_pdu_create snmp_clone_pdu snmp_fix_pdu snmp_free_pdu SEE ALSO varbind_api(3) session_api(3) snmp_pdu_cre

_tracecchar_t2(3ncurses) - curses debugging routines........
The trace routines are used for debugging the ncurses libraries, as well as applications which use the ncurses libraries. These functions are normally available

gnutls_privkey_import_pkcs11(3) - API function (Man Page)...
This function will import the given private key to the abstract gnutls_privkey_t structure. The gnutls_pkcs11_privkey_t object must not be deallocated during th

glColor3us(3gl) - set the current color - Linux manual page
The GL stores both a current single-valued color index and a current four-valued RGBA color. glColor sets a new four-valued RGBA color. glColor has two major va

DPMSSetTimeouts(3) - permits applications to set the timeout
The DPMSSetTimeouts function permits applications to set the timeout values used by the X server for Display Power Management Signaling (DPMS) timings. The valu

terminal-colors.d(5) Configure output colorization for vario
Files in this directory determine the default behavior for utilities when coloring output. The name is a utility name. The name is optional and when none is spe

Tcl_AddErrorInfo(3) - retrieve or record information about e
The Tcl_SetReturnOptions and Tcl_GetReturnOptions routines expose the &amp;#9474; same capabilities as the return and catch commands, respectively, in &amp;#9474; the f

We can't live, work or learn in freedom unless the software we use is free.