mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 11:55:36 +08:00
XDR(3): Port to RTEMS
This commit is contained in:
1
freebsd/lib/libc/xdr/rpc_com.h
Normal file
1
freebsd/lib/libc/xdr/rpc_com.h
Normal file
@@ -0,0 +1 @@
|
||||
#include "../rpc/rpc_com.h"
|
@@ -522,16 +522,14 @@ xdr_enum(xdrs, ep)
|
||||
XDR *xdrs;
|
||||
enum_t *ep;
|
||||
{
|
||||
enum sizecheck { SIZEVAL }; /* used to find the size of an enum */
|
||||
|
||||
/*
|
||||
* enums are treated as ints
|
||||
*/
|
||||
/* LINTED */ if (sizeof (enum sizecheck) == sizeof (long)) {
|
||||
/* LINTED */ if (sizeof (enum_t) == sizeof (long)) {
|
||||
return (xdr_long(xdrs, (long *)(void *)ep));
|
||||
} else /* LINTED */ if (sizeof (enum sizecheck) == sizeof (int)) {
|
||||
} else /* LINTED */ if (sizeof (enum_t) == sizeof (int)) {
|
||||
return (xdr_int(xdrs, (int *)(void *)ep));
|
||||
} else /* LINTED */ if (sizeof (enum sizecheck) == sizeof (short)) {
|
||||
} else /* LINTED */ if (sizeof (enum_t) == sizeof (short)) {
|
||||
return (xdr_short(xdrs, (short *)(void *)ep));
|
||||
} else {
|
||||
return (FALSE);
|
||||
|
@@ -69,6 +69,9 @@ __FBSDID("$FreeBSD$");
|
||||
defined(__arm26__) || defined(__sparc64__) || defined(__amd64__)
|
||||
#include <machine/endian.h>
|
||||
#define IEEEFP
|
||||
#else /* __rtems__ */
|
||||
#include <machine/endian.h>
|
||||
#define IEEEFP
|
||||
#endif
|
||||
|
||||
#if defined(__vax__)
|
||||
|
@@ -513,7 +513,7 @@ xdrrec_eof(xdrs)
|
||||
bool_t
|
||||
xdrrec_endofrecord(xdrs, sendnow)
|
||||
XDR *xdrs;
|
||||
bool_t sendnow;
|
||||
int sendnow;
|
||||
{
|
||||
RECSTREAM *rstrm = (RECSTREAM *)(xdrs->x_private);
|
||||
u_long len; /* fragment length */
|
||||
|
Reference in New Issue
Block a user