Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/net/rpc/xdr.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Compounds

struct  netobj
struct  XDR
struct  XDR::xdr_ops
struct  xdr_discrim

Defines

#define BYTES_PER_XDR_UNIT   (4)
#define RNDUP(x)
#define XDR_GETLONG(xdrs, longp)   (*(xdrs)->x_ops->x_getlong)(xdrs, longp)
#define xdr_getlong(xdrs, longp)   (*(xdrs)->x_ops->x_getlong)(xdrs, longp)
#define XDR_PUTLONG(xdrs, longp)   (*(xdrs)->x_ops->x_putlong)(xdrs, longp)
#define xdr_putlong(xdrs, longp)   (*(xdrs)->x_ops->x_putlong)(xdrs, longp)
#define XDR_GETBYTES(xdrs, addr, len)   (*(xdrs)->x_ops->x_getbytes)(xdrs, addr, len)
#define xdr_getbytes(xdrs, addr, len)   (*(xdrs)->x_ops->x_getbytes)(xdrs, addr, len)
#define XDR_PUTBYTES(xdrs, addr, len)   (*(xdrs)->x_ops->x_putbytes)(xdrs, addr, len)
#define xdr_putbytes(xdrs, addr, len)   (*(xdrs)->x_ops->x_putbytes)(xdrs, addr, len)
#define XDR_GETPOS(xdrs)   (*(xdrs)->x_ops->x_getpostn)(xdrs)
#define xdr_getpos(xdrs)   (*(xdrs)->x_ops->x_getpostn)(xdrs)
#define XDR_SETPOS(xdrs, pos)   (*(xdrs)->x_ops->x_setpostn)(xdrs, pos)
#define xdr_setpos(xdrs, pos)   (*(xdrs)->x_ops->x_setpostn)(xdrs, pos)
#define XDR_INLINE(xdrs, len)   (*(xdrs)->x_ops->x_inline)(xdrs, len)
#define xdr_inline(xdrs, len)   (*(xdrs)->x_ops->x_inline)(xdrs, len)
#define XDR_DESTROY(xdrs)
#define xdr_destroy(xdrs)
#define NULL_xdrproc_t   ((xdrproc_t)0)
#define IXDR_GET_LONG(buf)   ((long)ntohl((u_long)*(buf)++))
#define IXDR_PUT_LONG(buf, v)   (*(buf)++ = (long)htonl((u_long)v))
#define IXDR_GET_BOOL(buf)   ((bool_t)IXDR_GET_LONG(buf))
#define IXDR_GET_ENUM(buf, t)   ((t)IXDR_GET_LONG(buf))
#define IXDR_GET_U_LONG(buf)   ((u_long)IXDR_GET_LONG(buf))
#define IXDR_GET_SHORT(buf)   ((short)IXDR_GET_LONG(buf))
#define IXDR_GET_U_SHORT(buf)   ((u_short)IXDR_GET_LONG(buf))
#define IXDR_PUT_BOOL(buf, v)   IXDR_PUT_LONG((buf), ((long)(v)))
#define IXDR_PUT_ENUM(buf, v)   IXDR_PUT_LONG((buf), ((long)(v)))
#define IXDR_PUT_U_LONG(buf, v)   IXDR_PUT_LONG((buf), ((long)(v)))
#define IXDR_PUT_SHORT(buf, v)   IXDR_PUT_LONG((buf), ((long)(v)))
#define IXDR_PUT_U_SHORT(buf, v)   IXDR_PUT_LONG((buf), ((long)(v)))
#define MAX_NETOBJ_SZ   1024

Typedefs

typedef bool_t(* xdrproc_t )()
typedef netobj netobj

Enumerations

enum  xdr_op { XDR_ENCODE = 0, XDR_DECODE = 1, XDR_FREE = 2 }

Functions

bool_t xdr_void ()
bool_t xdr_int ()
bool_t xdr_u_int ()
bool_t xdr_long ()
bool_t xdr_u_long ()
bool_t xdr_short ()
bool_t xdr_u_short ()
bool_t xdr_bool ()
bool_t xdr_enum ()
bool_t xdr_array ()
bool_t xdr_bytes ()
bool_t xdr_opaque ()
bool_t xdr_string ()
bool_t xdr_union ()
bool_t xdr_char ()
bool_t xdr_u_char ()
bool_t xdr_vector ()
bool_t xdr_float ()
bool_t xdr_double ()
bool_t xdr_reference ()
bool_t xdr_pointer ()
bool_t xdr_wrapstring ()
bool_t xdr_netobj ()
void xdrmem_create ()
void xdrstdio_create ()
void xdrrec_create ()
bool_t xdrrec_endofrecord ()
bool_t xdrrec_skiprecord ()
bool_t xdrrec_eof ()


Detailed Description

Definition in file xdr.h.


Define Documentation

#define BYTES_PER_XDR_UNIT   (4)
 

Definition at line 89 of file xdr.h.

#define IXDR_GET_BOOL buf       ((bool_t)IXDR_GET_LONG(buf))
 

Definition at line 213 of file xdr.h.

#define IXDR_GET_ENUM buf,
     ((t)IXDR_GET_LONG(buf))
 

Definition at line 214 of file xdr.h.

#define IXDR_GET_LONG buf       ((long)ntohl((u_long)*(buf)++))
 

Definition at line 210 of file xdr.h.

#define IXDR_GET_SHORT buf       ((short)IXDR_GET_LONG(buf))
 

Definition at line 216 of file xdr.h.

#define IXDR_GET_U_LONG buf       ((u_long)IXDR_GET_LONG(buf))
 

Definition at line 215 of file xdr.h.

#define IXDR_GET_U_SHORT buf       ((u_short)IXDR_GET_LONG(buf))
 

Definition at line 217 of file xdr.h.

#define IXDR_PUT_BOOL buf,
     IXDR_PUT_LONG((buf), ((long)(v)))
 

Definition at line 219 of file xdr.h.

#define IXDR_PUT_ENUM buf,
     IXDR_PUT_LONG((buf), ((long)(v)))
 

Definition at line 220 of file xdr.h.

#define IXDR_PUT_LONG buf,
     (*(buf)++ = (long)htonl((u_long)v))
 

Definition at line 211 of file xdr.h.

#define IXDR_PUT_SHORT buf,
     IXDR_PUT_LONG((buf), ((long)(v)))
 

Definition at line 222 of file xdr.h.

#define IXDR_PUT_U_LONG buf,
     IXDR_PUT_LONG((buf), ((long)(v)))
 

Definition at line 221 of file xdr.h.

#define IXDR_PUT_U_SHORT buf,
     IXDR_PUT_LONG((buf), ((long)(v)))
 

Definition at line 223 of file xdr.h.

#define MAX_NETOBJ_SZ   1024
 

Definition at line 255 of file xdr.h.

#define NULL_xdrproc_t   ((xdrproc_t)0)
 

Definition at line 189 of file xdr.h.

#define RNDUP  
 

Value:

Definition at line 90 of file xdr.h.

#define xdr_destroy xdrs   
 

Value:

if ((xdrs)->x_ops->x_destroy)                   \
                (*(xdrs)->x_ops->x_destroy)(xdrs)

Definition at line 175 of file xdr.h.

#define XDR_DESTROY xdrs   
 

Value:

if ((xdrs)->x_ops->x_destroy)                   \
                (*(xdrs)->x_ops->x_destroy)(xdrs)

Definition at line 172 of file xdr.h.

#define xdr_getbytes xdrs,
addr,
len       (*(xdrs)->x_ops->x_getbytes)(xdrs, addr, len)
 

Definition at line 149 of file xdr.h.

#define XDR_GETBYTES xdrs,
addr,
len       (*(xdrs)->x_ops->x_getbytes)(xdrs, addr, len)
 

Definition at line 147 of file xdr.h.

#define xdr_getlong xdrs,
longp       (*(xdrs)->x_ops->x_getlong)(xdrs, longp)
 

Definition at line 139 of file xdr.h.

#define XDR_GETLONG xdrs,
longp       (*(xdrs)->x_ops->x_getlong)(xdrs, longp)
 

Definition at line 137 of file xdr.h.

#define xdr_getpos xdrs       (*(xdrs)->x_ops->x_getpostn)(xdrs)
 

Definition at line 159 of file xdr.h.

#define XDR_GETPOS xdrs       (*(xdrs)->x_ops->x_getpostn)(xdrs)
 

Definition at line 157 of file xdr.h.

#define xdr_inline xdrs,
len       (*(xdrs)->x_ops->x_inline)(xdrs, len)
 

Definition at line 169 of file xdr.h.

#define XDR_INLINE xdrs,
len       (*(xdrs)->x_ops->x_inline)(xdrs, len)
 

Definition at line 167 of file xdr.h.

#define xdr_putbytes xdrs,
addr,
len       (*(xdrs)->x_ops->x_putbytes)(xdrs, addr, len)
 

Definition at line 154 of file xdr.h.

#define XDR_PUTBYTES xdrs,
addr,
len       (*(xdrs)->x_ops->x_putbytes)(xdrs, addr, len)
 

Definition at line 152 of file xdr.h.

#define xdr_putlong xdrs,
longp       (*(xdrs)->x_ops->x_putlong)(xdrs, longp)
 

Definition at line 144 of file xdr.h.

#define XDR_PUTLONG xdrs,
longp       (*(xdrs)->x_ops->x_putlong)(xdrs, longp)
 

Definition at line 142 of file xdr.h.

#define xdr_setpos xdrs,
pos       (*(xdrs)->x_ops->x_setpostn)(xdrs, pos)
 

Definition at line 164 of file xdr.h.

#define XDR_SETPOS xdrs,
pos       (*(xdrs)->x_ops->x_setpostn)(xdrs, pos)
 

Definition at line 162 of file xdr.h.


Typedef Documentation

typedef struct netobj netobj
 

Definition at line 260 of file xdr.h.

typedef bool_t(* xdrproc_t)()
 

Definition at line 102 of file xdr.h.


Enumeration Type Documentation

enum xdr_op
 

Enumeration values:
XDR_ENCODE 
XDR_DECODE 
XDR_FREE 

Definition at line 80 of file xdr.h.


Function Documentation

bool_t xdr_array  
 

bool_t xdr_bool  
 

bool_t xdr_bytes  
 

bool_t xdr_char  
 

bool_t xdr_double  
 

bool_t xdr_enum  
 

bool_t xdr_float  
 

bool_t xdr_int  
 

bool_t xdr_long  
 

bool_t xdr_netobj  
 

bool_t xdr_opaque  
 

bool_t xdr_pointer  
 

bool_t xdr_reference  
 

bool_t xdr_short  
 

bool_t xdr_string  
 

bool_t xdr_u_char  
 

bool_t xdr_u_int  
 

bool_t xdr_u_long  
 

bool_t xdr_u_short  
 

bool_t xdr_union  
 

bool_t xdr_vector  
 

bool_t xdr_void  
 

bool_t xdr_wrapstring  
 

void xdrmem_create  
 

void xdrrec_create  
 

bool_t xdrrec_endofrecord  
 

bool_t xdrrec_eof  
 

bool_t xdrrec_skiprecord  
 

void xdrstdio_create  
 


Generated on Thu Feb 20 15:38:59 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002