rpc_generic.c (223309) | rpc_generic.c (243882) |
---|---|
1/* $NetBSD: rpc_generic.c,v 1.4 2000/09/28 09:07:04 kleink 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 * Copyright (c) 1986-1991 by Sun Microsystems Inc. 33 */ 34 35/* #pragma ident "@(#)rpc_generic.c 1.17 94/04/24 SMI" */ 36#include <sys/cdefs.h> | 1/* $NetBSD: rpc_generic.c,v 1.4 2000/09/28 09:07:04 kleink 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 * Copyright (c) 1986-1991 by Sun Microsystems Inc. 33 */ 34 35/* #pragma ident "@(#)rpc_generic.c 1.17 94/04/24 SMI" */ 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/rpc/rpc_generic.c 223309 2011-06-19 22:08:55Z rmacklem $"); | 37__FBSDID("$FreeBSD: head/sys/rpc/rpc_generic.c 243882 2012-12-05 08:04:20Z glebius $"); |
38 39/* 40 * rpc_generic.c, Miscl routines for RPC. 41 * 42 */ 43 44#include "opt_inet6.h" 45 --- 699 unchanged lines hidden (view full) --- 745 void *resultsp, /* pointer to results */ 746 struct timeval utimeout) /* seconds to wait before giving up */ 747{ 748 XDR xdrs; 749 struct mbuf *mreq; 750 struct mbuf *mrep; 751 enum clnt_stat stat; 752 | 38 39/* 40 * rpc_generic.c, Miscl routines for RPC. 41 * 42 */ 43 44#include "opt_inet6.h" 45 --- 699 unchanged lines hidden (view full) --- 745 void *resultsp, /* pointer to results */ 746 struct timeval utimeout) /* seconds to wait before giving up */ 747{ 748 XDR xdrs; 749 struct mbuf *mreq; 750 struct mbuf *mrep; 751 enum clnt_stat stat; 752 |
753 MGET(mreq, M_WAIT, MT_DATA); 754 MCLGET(mreq, M_WAIT); | 753 MGET(mreq, M_WAITOK, MT_DATA); 754 MCLGET(mreq, M_WAITOK); |
755 mreq->m_len = 0; 756 757 xdrmbuf_create(&xdrs, mreq, XDR_ENCODE); 758 if (!xargs(&xdrs, argsp)) { 759 m_freem(mreq); 760 return (RPC_CANTENCODEARGS); 761 } 762 XDR_DESTROY(&xdrs); --- 123 unchanged lines hidden --- | 755 mreq->m_len = 0; 756 757 xdrmbuf_create(&xdrs, mreq, XDR_ENCODE); 758 if (!xargs(&xdrs, argsp)) { 759 m_freem(mreq); 760 return (RPC_CANTENCODEARGS); 761 } 762 XDR_DESTROY(&xdrs); --- 123 unchanged lines hidden --- |