ReactOS 0.4.15-dev-8102-g108db8f
authunix_prot.c File Reference
#include <wintirpc.h>
#include <assert.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <rpc/auth.h>
#include <rpc/auth_unix.h>
Include dependency graph for authunix_prot.c:

Go to the source code of this file.


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

Function Documentation

◆ xdr_authunix_parms()

bool_t xdr_authunix_parms ( XDR xdrs,
struct authunix_parms p 

Definition at line 50 of file authunix_prot.c.

55 assert(xdrs != NULL);
56 assert(p != NULL);
58 if (xdr_u_long(xdrs, &(p->aup_time))
59 && xdr_string(xdrs, &(p->aup_machname), MAX_MACHINE_NAME)
60 && xdr_u_int(xdrs, &(p->aup_uid))
61 && xdr_u_int(xdrs, &(p->aup_gid))
62 && xdr_array(xdrs, (caddr_t *)&(p->aup_gids),
63 &(p->aup_len), NGRPS, sizeof(int), (xdrproc_t)xdr_int) ) {
64 return (TRUE);
65 }
66 return (FALSE);
bool_t xdr_u_int(XDR *xdrs, u_int *up)
Definition: xdr.c:133
bool_t xdr_u_long(XDR *xdrs, u_long *ulp)
Definition: xdr.c:186
bool_t xdr_string(XDR *xdrs, char **cpp, u_int maxsize)
Definition: xdr.c:678
bool_t xdr_int(XDR *xdrs, int *ip)
Definition: xdr.c:103
Definition: auth_unix.h:51
#define NGRPS
Definition: auth_unix.h:54
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define assert(x)
Definition: debug.h:53
GLfloat GLfloat p
Definition: glext.h:8902
char * caddr_t
Definition: rosdhcp.h:36
bool_t(* xdrproc_t)(XDR *,...)
Definition: xdr.h:144
bool_t xdr_array(XDR *xdrs, caddr_t *addrp, u_int *sizep, u_int maxsize, u_int elsize, xdrproc_t elproc)
Definition: xdr_array.c:61

Referenced by _svcauth_unix(), authunix_create(), and authunix_refresh().