# include <wchar.h>
# include <libio/iolibio.h>
# define fputs(s, f) _IO_fputs (s, f)
+libc_hidden_proto(fwprintf)
#endif
+libc_hidden_proto(memcpy)
+libc_hidden_proto(fputs)
+libc_hidden_proto(lseek)
+
static bool_t xdrrec_getlong (XDR *, long *);
static bool_t xdrrec_putlong (XDR *, const long *);
static bool_t xdrrec_getbytes (XDR *, caddr_t, u_int);
* write respectively. They are like the system
* calls expect that they take an opaque handle rather than an fd.
*/
-void attribute_hidden
-__xdrrec_create (XDR *xdrs, u_int sendsize,
+libc_hidden_proto(xdrrec_create)
+void
+xdrrec_create (XDR *xdrs, u_int sendsize,
u_int recvsize, caddr_t tcp_handle,
int (*readit) (char *, char *, int),
int (*writeit) (char *, char *, int))
{
#ifdef USE_IN_LIBIO
if (_IO_fwide (stderr, 0) > 0)
- (void) __fwprintf (stderr, L"%s", _("xdrrec_create: out of memory\n"));
+ (void) fwprintf (stderr, L"%s", _("xdrrec_create: out of memory\n"));
else
#endif
(void) fputs (_("xdrrec_create: out of memory\n"), stderr);
rstrm->fbtbc = 0;
rstrm->last_frag = TRUE;
}
-strong_alias(__xdrrec_create,xdrrec_create)
+libc_hidden_def(xdrrec_create)
/*
{
current = rstrm->out_boundry - rstrm->out_finger;
current = (len < current) ? len : current;
- __memcpy (rstrm->out_finger, addr, current);
+ memcpy (rstrm->out_finger, addr, current);
rstrm->out_finger += current;
addr += current;
len -= current;
* Before reading (deserializing from the stream, one should always call
* this procedure to guarantee proper record alignment.
*/
+libc_hidden_proto(xdrrec_skiprecord)
bool_t
xdrrec_skiprecord (XDR *xdrs)
{
rstrm->last_frag = FALSE;
return TRUE;
}
+libc_hidden_def(xdrrec_skiprecord)
/*
* Lookahead function.
* Returns TRUE iff there is no more input in the buffer
* after consuming the rest of the current record.
*/
+libc_hidden_proto(xdrrec_eof)
bool_t
xdrrec_eof (XDR *xdrs)
{
return TRUE;
return FALSE;
}
+libc_hidden_def(xdrrec_eof)
/*
* The client must tell the package when an end-of-record has occurred.
* (output) tcp stream. (This lets the package support batched or
* pipelined procedure calls.) TRUE => immediate flush to tcp connection.
*/
+libc_hidden_proto(xdrrec_endofrecord)
bool_t
xdrrec_endofrecord (XDR *xdrs, bool_t sendnow)
{
rstrm->out_finger += BYTES_PER_XDR_UNIT;
return TRUE;
}
-
+libc_hidden_def(xdrrec_endofrecord)
/*
* Internal useful routines
continue;
}
current = (len < current) ? len : current;
- __memcpy (addr, rstrm->in_finger, current);
+ memcpy (addr, rstrm->in_finger, current);
rstrm->in_finger += current;
addr += current;
len -= current;