Back to index

glibc  2.9
Functions
authuxprot.c File Reference
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/auth.h>
#include <rpc/auth_unix.h>

Go to the source code of this file.

Functions

bool_t xdr_authunix_parms (XDR *xdrs, struct authunix_parms *p)

Function Documentation

bool_t xdr_authunix_parms ( XDR xdrs,
struct authunix_parms p 
)

Definition at line 47 of file authuxprot.c.

{
  if (INTUSE(xdr_u_long) (xdrs, &(p->aup_time))
      && INTUSE(xdr_string) (xdrs, &(p->aup_machname), MAX_MACHINE_NAME)
      && (sizeof (uid_t) == sizeof (short int)
         ? INTUSE(xdr_u_short) (xdrs, (u_short *) & (p->aup_uid))
         : INTUSE(xdr_u_int) (xdrs, (u_int *) & (p->aup_uid)))
      && (sizeof (gid_t) == sizeof (short int)
         ? INTUSE(xdr_u_short) (xdrs, (u_short *) & (p->aup_gid))
         : INTUSE(xdr_u_int) (xdrs, (u_int *) & (p->aup_gid)))
      && INTUSE(xdr_array) (xdrs, (caddr_t *) & (p->aup_gids),
                         & (p->aup_len), NGRPS, sizeof (gid_t),
                         (sizeof (gid_t) == sizeof (short int)
                          ? (xdrproc_t) INTUSE(xdr_u_short)
                          : (xdrproc_t) INTUSE(xdr_u_int))))
    {
      return TRUE;
    }
  return FALSE;
}

Here is the call graph for this function:

Here is the caller graph for this function: