Deleted Added
full compact
xdr_mem.c (177633) xdr_mem.c (189170)
1/* $NetBSD: xdr_mem.c,v 1.15 2000/01/22 22:19:18 mycroft Exp $ */
2
3/*
4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part. Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or

--- 20 unchanged lines hidden (view full) ---

29 * Mountain View, California 94043
30 */
31
32#if defined(LIBC_SCCS) && !defined(lint)
33static char *sccsid2 = "@(#)xdr_mem.c 1.19 87/08/11 Copyr 1984 Sun Micro";
34static char *sccsid = "@(#)xdr_mem.c 2.1 88/07/29 4.0 RPCSRC";
35#endif
36#include <sys/cdefs.h>
1/* $NetBSD: xdr_mem.c,v 1.15 2000/01/22 22:19:18 mycroft Exp $ */
2
3/*
4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part. Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or

--- 20 unchanged lines hidden (view full) ---

29 * Mountain View, California 94043
30 */
31
32#if defined(LIBC_SCCS) && !defined(lint)
33static char *sccsid2 = "@(#)xdr_mem.c 1.19 87/08/11 Copyr 1984 Sun Micro";
34static char *sccsid = "@(#)xdr_mem.c 2.1 88/07/29 4.0 RPCSRC";
35#endif
36#include <sys/cdefs.h>
37__FBSDID("$FreeBSD: head/sys/xdr/xdr_mem.c 177633 2008-03-26 15:23:12Z dfr $");
37__FBSDID("$FreeBSD: head/sys/xdr/xdr_mem.c 189170 2009-02-28 16:21:25Z ed $");
38
39/*
40 * xdr_mem.h, XDR implementation using memory buffers.
41 *
42 * Copyright (C) 1984, Sun Microsystems, Inc.
43 *
44 * If you have some data to be interpreted as external data representation
45 * or to be converted to external data representation in a memory buffer,
46 * then this is the package for you.
47 *
48 */
49
50#include <sys/param.h>
51#include <sys/systm.h>
52#include <sys/malloc.h>
53
54#include <rpc/types.h>
55#include <rpc/xdr.h>
56
38
39/*
40 * xdr_mem.h, XDR implementation using memory buffers.
41 *
42 * Copyright (C) 1984, Sun Microsystems, Inc.
43 *
44 * If you have some data to be interpreted as external data representation
45 * or to be converted to external data representation in a memory buffer,
46 * then this is the package for you.
47 *
48 */
49
50#include <sys/param.h>
51#include <sys/systm.h>
52#include <sys/malloc.h>
53
54#include <rpc/types.h>
55#include <rpc/xdr.h>
56
57#define memmove(dst, src, len) bcopy(src, dst, len)
58
59static void xdrmem_destroy(XDR *);
60static bool_t xdrmem_getlong_aligned(XDR *, long *);
61static bool_t xdrmem_putlong_aligned(XDR *, const long *);
62static bool_t xdrmem_getlong_unaligned(XDR *, long *);
63static bool_t xdrmem_putlong_unaligned(XDR *, const long *);
64static bool_t xdrmem_getbytes(XDR *, char *, u_int);
65static bool_t xdrmem_putbytes(XDR *, const char *, u_int);
66/* XXX: w/64-bit pointers, u_int not enough! */

--- 166 unchanged lines hidden ---
57static void xdrmem_destroy(XDR *);
58static bool_t xdrmem_getlong_aligned(XDR *, long *);
59static bool_t xdrmem_putlong_aligned(XDR *, const long *);
60static bool_t xdrmem_getlong_unaligned(XDR *, long *);
61static bool_t xdrmem_putlong_unaligned(XDR *, const long *);
62static bool_t xdrmem_getbytes(XDR *, char *, u_int);
63static bool_t xdrmem_putbytes(XDR *, const char *, u_int);
64/* XXX: w/64-bit pointers, u_int not enough! */

--- 166 unchanged lines hidden ---