ReactOS 0.4.15-dev-7842-g558ab78
auth_unix.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  authunix_parms
 
struct  short_hand_verf
 

Macros

#define MAX_MACHINE_NAME   255
 
#define NGRPS   16
 
#define authsys_parms   authunix_parms
 

Functions

__BEGIN_DECLS bool_t xdr_authunix_parms (XDR *, struct authunix_parms *)
 

Macro Definition Documentation

◆ authsys_parms

#define authsys_parms   authunix_parms

Definition at line 68 of file auth_unix.h.

◆ MAX_MACHINE_NAME

#define MAX_MACHINE_NAME   255

Definition at line 51 of file auth_unix.h.

◆ NGRPS

#define NGRPS   16

Definition at line 54 of file auth_unix.h.

Function Documentation

◆ xdr_authunix_parms()

__BEGIN_DECLS bool_t xdr_authunix_parms ( XDR xdrs,
struct authunix_parms p 
)

Definition at line 50 of file authunix_prot.c.

53{
54
55 assert(xdrs != NULL);
56 assert(p != NULL);
57
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);
67}
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
#define MAX_MACHINE_NAME
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().