Back to index

glibc  2.9
Classes | Defines | Functions
pmap_prot.h File Reference
#include <features.h>
#include <rpc/xdr.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  pmap
struct  pmaplist


#define PMAPPORT   ((u_short)111)
#define PMAPPROG   ((u_long)100000)
#define PMAPVERS   ((u_long)2)
#define PMAPVERS_PROTO   ((u_long)2)
#define PMAPVERS_ORIG   ((u_long)1)
#define PMAPPROC_NULL   ((u_long)0)
#define PMAPPROC_SET   ((u_long)1)
#define PMAPPROC_UNSET   ((u_long)2)
#define PMAPPROC_GETPORT   ((u_long)3)
#define PMAPPROC_DUMP   ((u_long)4)
#define PMAPPROC_CALLIT   ((u_long)5)


bool_t xdr_pmap (XDR *__xdrs, struct pmap *__regs) __THROW
bool_t xdr_pmaplist (XDR *__xdrs, struct pmaplist **__rp) __THROW

Class Documentation

struct pmap

Definition at line 90 of file pmap_prot.h.

Class Members
long unsigned pm_port
long unsigned pm_prog
long unsigned pm_prot
long unsigned pm_vers
struct pmaplist

Definition at line 99 of file pmap_prot.h.

Collaboration diagram for pmaplist:
Class Members
struct pmaplist * pml_next

Define Documentation

#define PMAPPORT   ((u_short)111)

Definition at line 78 of file pmap_prot.h.

#define PMAPPROC_CALLIT   ((u_long)5)

Definition at line 88 of file pmap_prot.h.

#define PMAPPROC_DUMP   ((u_long)4)

Definition at line 87 of file pmap_prot.h.

#define PMAPPROC_GETPORT   ((u_long)3)

Definition at line 86 of file pmap_prot.h.

#define PMAPPROC_NULL   ((u_long)0)

Definition at line 83 of file pmap_prot.h.

#define PMAPPROC_SET   ((u_long)1)

Definition at line 84 of file pmap_prot.h.

#define PMAPPROC_UNSET   ((u_long)2)

Definition at line 85 of file pmap_prot.h.

#define PMAPPROG   ((u_long)100000)

Definition at line 79 of file pmap_prot.h.

#define PMAPVERS   ((u_long)2)

Definition at line 80 of file pmap_prot.h.

#define PMAPVERS_ORIG   ((u_long)1)

Definition at line 82 of file pmap_prot.h.

#define PMAPVERS_PROTO   ((u_long)2)

Definition at line 81 of file pmap_prot.h.

Function Documentation

bool_t xdr_pmap ( XDR __xdrs,
struct pmap __regs 

Definition at line 47 of file pmap_prot.c.


  if (INTUSE(xdr_u_long) (xdrs, &regs->pm_prog) &&
      INTUSE(xdr_u_long) (xdrs, &regs->pm_vers) &&
      INTUSE(xdr_u_long) (xdrs, &regs->pm_prot))
    return INTUSE(xdr_u_long) (xdrs, &regs->pm_port);
  return FALSE;

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t xdr_pmaplist ( XDR __xdrs,
struct pmaplist **  __rp 

Definition at line 85 of file pmap_prot2.c.

   * more_elements is pre-computed in case the direction is
   * XDR_ENCODE or XDR_FREE.  more_elements is overwritten by
   * xdr_bool when the direction is XDR_DECODE.
  bool_t more_elements;
  int freeing = (xdrs->x_op == XDR_FREE);
  struct pmaplist *next = NULL;

  while (TRUE)
      more_elements = (bool_t) (*rp != NULL);
      if (!INTUSE(xdr_bool) (xdrs, &more_elements))
       return FALSE;
      if (!more_elements)
       return TRUE;         /* we are done */
       * the unfortunate side effect of non-recursion is that in
       * the case of freeing we must remember the next object
       * before we free the current object ...
      if (freeing)
       next = (*rp)->pml_next;
      if (!INTUSE(xdr_reference) (xdrs, (caddr_t *) rp,
                              (u_int) sizeof (struct pmaplist),
                              (xdrproc_t) INTUSE(xdr_pmap)))
         return FALSE;
      rp = freeing ? &next : &((*rp)->pml_next);

Here is the call graph for this function:

Here is the caller graph for this function: