aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/xdr/xdr_stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/xdr/xdr_stdio.c')
-rw-r--r--newlib/libc/xdr/xdr_stdio.c33
1 files changed, 11 insertions, 22 deletions
diff --git a/newlib/libc/xdr/xdr_stdio.c b/newlib/libc/xdr/xdr_stdio.c
index e6513e5..784ac6c 100644
--- a/newlib/libc/xdr/xdr_stdio.c
+++ b/newlib/libc/xdr/xdr_stdio.c
@@ -83,8 +83,7 @@ static const struct xdr_ops xdrstdio_ops = {
* Operation flag is set to op.
*/
void
-_DEFUN (xdrstdio_create, (xdrs, file, op),
- XDR * xdrs,
+xdrstdio_create (XDR * xdrs,
FILE * file,
enum xdr_op op)
{
@@ -100,16 +99,14 @@ _DEFUN (xdrstdio_create, (xdrs, file, op),
* Cleans up the xdr stream handle xdrs previously set up by xdrstdio_create.
*/
static void
-_DEFUN (xdrstdio_destroy, (xdrs),
- XDR * xdrs)
+xdrstdio_destroy (XDR * xdrs)
{
(void) fflush ((FILE *) xdrs->x_private);
/* XXX: should we close the file ?? */
}
static bool_t
-_DEFUN (xdrstdio_getlong, (xdrs, lp),
- XDR * xdrs,
+xdrstdio_getlong (XDR * xdrs,
long *lp)
{
u_int32_t temp;
@@ -121,8 +118,7 @@ _DEFUN (xdrstdio_getlong, (xdrs, lp),
}
static bool_t
-_DEFUN (xdrstdio_putlong, (xdrs, lp),
- XDR * xdrs,
+xdrstdio_putlong (XDR * xdrs,
const long *lp)
{
u_int32_t temp = htonl ((u_int32_t) * lp);
@@ -133,8 +129,7 @@ _DEFUN (xdrstdio_putlong, (xdrs, lp),
}
static bool_t
-_DEFUN (xdrstdio_getbytes, (xdrs, addr, len),
- XDR * xdrs,
+xdrstdio_getbytes (XDR * xdrs,
char *addr,
u_int len)
{
@@ -145,8 +140,7 @@ _DEFUN (xdrstdio_getbytes, (xdrs, addr, len),
}
static bool_t
-_DEFUN (xdrstdio_putbytes, (xdrs, addr, len),
- XDR * xdrs,
+xdrstdio_putbytes (XDR * xdrs,
const char *addr,
u_int len)
{
@@ -157,15 +151,13 @@ _DEFUN (xdrstdio_putbytes, (xdrs, addr, len),
}
static u_int
-_DEFUN (xdrstdio_getpos, (xdrs),
- XDR * xdrs)
+xdrstdio_getpos (XDR * xdrs)
{
return ((u_int) ftell ((FILE *) xdrs->x_private));
}
static bool_t
-_DEFUN (xdrstdio_setpos, (xdrs, pos),
- XDR * xdrs,
+xdrstdio_setpos (XDR * xdrs,
u_int pos)
{
return ((fseek ((FILE *) xdrs->x_private, (long) pos, 0) < 0) ?
@@ -174,8 +166,7 @@ _DEFUN (xdrstdio_setpos, (xdrs, pos),
/* ARGSUSED */
static int32_t *
-_DEFUN (xdrstdio_inline, (xdrs, len),
- XDR * xdrs,
+xdrstdio_inline (XDR * xdrs,
u_int len)
{
/*
@@ -191,8 +182,7 @@ _DEFUN (xdrstdio_inline, (xdrs, len),
}
static bool_t
-_DEFUN (xdrstdio_getint32, (xdrs, ip),
- XDR *xdrs,
+xdrstdio_getint32 (XDR *xdrs,
int32_t *ip)
{
int32_t temp;
@@ -204,8 +194,7 @@ _DEFUN (xdrstdio_getint32, (xdrs, ip),
}
static bool_t
-_DEFUN (xdrstdio_putint32, (xdrs, ip),
- XDR *xdrs,
+xdrstdio_putint32 (XDR *xdrs,
const int32_t *ip)
{
int32_t temp = htonl (*ip);