RTEMS CPU Kit with SuperCore  4.11.3
Macros
xdr_subs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define fxdr_unsigned(t, v)   ((t)ntohl((int32_t)(v)))
 
#define txdr_unsigned(v)   (htonl((int32_t)(v)))
 
#define fxdr_nfsv2time(f, t)
 
#define txdr_nfsv2time(f, t)
 
#define fxdr_nfsv3time(f, t)
 
#define txdr_nfsv3time(f, t)
 
#define fxdr_hyper(f)
 
#define txdr_hyper(f, t)
 

Macro Definition Documentation

◆ fxdr_hyper

#define fxdr_hyper (   f)
Value:
((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \
(u_quad_t)(ntohl(((u_int32_t *)(f))[1])))

◆ fxdr_nfsv2time

#define fxdr_nfsv2time (   f,
 
)
Value:
{ \
(t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \
if (((struct nfsv2_time *)(f))->nfsv2_usec != 0xffffffff) \
(t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \
else \
(t)->tv_nsec = 0; \
}
Definition: nfsproto.h:246

◆ fxdr_nfsv3time

#define fxdr_nfsv3time (   f,
 
)
Value:
{ \
(t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
(t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
}
Definition: nfsproto.h:252

◆ txdr_hyper

#define txdr_hyper (   f,
 
)
Value:
do { \
((u_int32_t *)(t))[0] = htonl((u_int32_t)((f) >> 32)); \
((u_int32_t *)(t))[1] = htonl((u_int32_t)((f) & 0xffffffff)); \
} while (0)

◆ txdr_nfsv2time

#define txdr_nfsv2time (   f,
 
)
Value:
{ \
((struct nfsv2_time *)(t))->nfsv2_sec = htonl((f)->tv_sec); \
if ((f)->tv_nsec != -1) \
((struct nfsv2_time *)(t))->nfsv2_usec = htonl((f)->tv_nsec / 1000); \
else \
((struct nfsv2_time *)(t))->nfsv2_usec = 0xffffffff; \
}
Definition: nfsproto.h:246

◆ txdr_nfsv3time

#define txdr_nfsv3time (   f,
 
)
Value:
{ \
((struct nfsv3_time *)(t))->nfsv3_sec = htonl((f)->tv_sec); \
((struct nfsv3_time *)(t))->nfsv3_nsec = htonl((f)->tv_nsec); \
}
Definition: nfsproto.h:252