1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95 |
37 * $Id: nfsm_subs.h,v 1.17 1998/05/31 17:27:57 peter Exp $ |
38 */ 39 40 41#ifndef _NFS_NFSM_SUBS_H_ 42#define _NFS_NFSM_SUBS_H_ 43 44struct ucred; 45struct vnode; --- 266 unchanged lines hidden (view full) --- 312 error = ENAMETOOLONG; \ 313 goto nfsmout; \ 314 } \ 315 t2 = nfsm_rndup(s)+NFSX_UNSIGNED; \ 316 if (t2 <= M_TRAILINGSPACE(mb)) { \ 317 nfsm_build(tl,u_long *,t2); \ 318 *tl++ = txdr_unsigned(s); \ 319 *(tl+((t2>>2)-2)) = 0; \ |
320 bcopy((const char *)(a), (caddr_t)tl, (s)); \ |
321 } else if ((t2 = nfsm_strtmbuf(&mb, &bpos, (a), (s))) != 0) { \ 322 error = t2; \ 323 m_freem(mreq); \ 324 goto nfsmout; \ 325 } 326 327#define nfsm_srvdone \ 328 nfsmout: \ --- 125 unchanged lines hidden --- |