xdr.c (e5c39410099950fb012fb9323a29fbdef5beed4a) | xdr.c (732a02b4e77866604a120a275c082bb6221bd2ff) |
---|---|
1/* $NetBSD: xdr.c,v 1.22 2000/07/06 03:10:35 christos 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 --- 36 unchanged lines hidden (view full) --- 45 * most common data items. See xdr.h for more info on the interface to 46 * xdr. 47 */ 48 49#include <sys/param.h> 50#include <sys/systm.h> 51#include <sys/kernel.h> 52#include <sys/malloc.h> | 1/* $NetBSD: xdr.c,v 1.22 2000/07/06 03:10:35 christos 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 --- 36 unchanged lines hidden (view full) --- 45 * most common data items. See xdr.h for more info on the interface to 46 * xdr. 47 */ 48 49#include <sys/param.h> 50#include <sys/systm.h> 51#include <sys/kernel.h> 52#include <sys/malloc.h> |
53#include <sys/module.h> |
|
53 54#include <rpc/rpc.h> 55#include <rpc/rpc_com.h> 56#include <rpc/types.h> 57#include <rpc/xdr.h> 58 59typedef quad_t longlong_t; /* ANSI long long type */ 60typedef u_quad_t u_longlong_t; /* ANSI unsigned long long type */ --- 770 unchanged lines hidden (view full) --- 831{ 832 833 /* 834 * Don't bother open-coding this; it's a fair amount of code. Just 835 * call xdr_uint64_t(). 836 */ 837 return (xdr_uint64_t(xdrs, (uint64_t *)ullp)); 838} | 54 55#include <rpc/rpc.h> 56#include <rpc/rpc_com.h> 57#include <rpc/types.h> 58#include <rpc/xdr.h> 59 60typedef quad_t longlong_t; /* ANSI long long type */ 61typedef u_quad_t u_longlong_t; /* ANSI unsigned long long type */ --- 770 unchanged lines hidden (view full) --- 832{ 833 834 /* 835 * Don't bother open-coding this; it's a fair amount of code. Just 836 * call xdr_uint64_t(). 837 */ 838 return (xdr_uint64_t(xdrs, (uint64_t *)ullp)); 839} |
840 841/* 842 * Kernel module glue 843 */ 844static int 845xdr_modevent(module_t mod, int type, void *data) 846{ 847 848 return (0); 849} 850static moduledata_t xdr_mod = { 851 "xdr", 852 xdr_modevent, 853 NULL, 854}; 855DECLARE_MODULE(xdr, xdr_mod, SI_SUB_VFS, SI_ORDER_ANY); 856MODULE_VERSION(xdr, 1); |
|