003 File Manager
Current Path:
/usr/src/sys/rpc
usr
/
src
/
sys
/
rpc
/
📁
..
📄
auth.h
(10.82 KB)
📄
auth_none.c
(4.35 KB)
📄
auth_unix.c
(9.98 KB)
📄
authunix_prot.c
(3.76 KB)
📄
clnt.h
(21.82 KB)
📄
clnt_bck.c
(15.5 KB)
📄
clnt_dg.c
(28.7 KB)
📄
clnt_rc.c
(14.1 KB)
📄
clnt_stat.h
(2.08 KB)
📄
clnt_vc.c
(33.4 KB)
📄
getnetconfig.c
(3.24 KB)
📄
krpc.h
(5.11 KB)
📄
netconfig.h
(2.09 KB)
📄
nettype.h
(2.38 KB)
📄
pmap_prot.h
(3.97 KB)
📄
replay.c
(6.7 KB)
📄
replay.h
(3.11 KB)
📄
rpc.h
(4.38 KB)
📄
rpc_callmsg.c
(6.25 KB)
📄
rpc_com.h
(4.08 KB)
📄
rpc_generic.c
(21.14 KB)
📄
rpc_msg.h
(5.15 KB)
📄
rpc_prot.c
(9.32 KB)
📄
rpcb_clnt.c
(35.31 KB)
📄
rpcb_clnt.h
(3.42 KB)
📄
rpcb_prot.c
(6.79 KB)
📄
rpcb_prot.h
(16.98 KB)
📄
rpcm_subs.h
(4.83 KB)
📁
rpcsec_gss
📄
rpcsec_gss.h
(14.74 KB)
📁
rpcsec_tls
📄
rpcsec_tls.h
(3.23 KB)
📄
svc.c
(35.29 KB)
📄
svc.h
(29.26 KB)
📄
svc_auth.c
(6.34 KB)
📄
svc_auth.h
(3 KB)
📄
svc_auth_unix.c
(4.27 KB)
📄
svc_dg.c
(7.75 KB)
📄
svc_generic.c
(8.92 KB)
📄
svc_vc.c
(27.04 KB)
📄
types.h
(3.36 KB)
📄
xdr.h
(13.1 KB)
Editing: rpcm_subs.h
/* $FreeBSD$ */ /* $OpenBSD: nfsm_subs.h,v 1.11 2000/01/05 20:50:52 millert Exp $ */ /* $NetBSD: nfsm_subs.h,v 1.10 1996/03/20 21:59:56 fvdl Exp $ */ /*- * SPDX-License-Identifier: BSD-3-Clause * * copyright (c) 2003 * the regents of the university of michigan * all rights reserved * * permission is granted to use, copy, create derivative works and redistribute * this software and such derivative works for any purpose, so long as the name * of the university of michigan is not used in any advertising or publicity * pertaining to the use or distribution of this software without specific, * written prior authorization. if the above copyright notice or any other * identification of the university of michigan is included in any copy of any * portion of this software, then the disclaimer below must also be included. * * this software is provided as is, without representation from the university * of michigan as to its fitness for any purpose, and without warranty by the * university of michigan of any kind, either express or implied, including * without limitation the implied warranties of merchantability and fitness for * a particular purpose. the regents of the university of michigan shall not be * liable for any damages, including special, indirect, incidental, or * consequential damages, with respect to any claim arising out of or in * connection with the use of the software, even if it has been or is hereafter * advised of the possibility of such damages. */ /*- * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Rick Macklem at The University of Guelph. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95 */ #ifndef _RPC_RPCM_SUBS_H_ #define _RPC_RPCM_SUBS_H_ /* * Now for the macros that do the simple stuff and call the functions * for the hard stuff. * These macros use several vars. declared in rpcm_reqhead and these * vars. must not be used elsewhere unless you are careful not to corrupt * them. The vars. starting with pN and tN (N=1,2,3,..) are temporaries * that may be used so long as the value is not expected to retained * after a macro. * I know, this is kind of dorkey, but it makes the actual op functions * fairly clean and deals with the mess caused by the xdr discriminating * unions. */ #define rpcm_build(a,c,s) \ { if ((s) > M_TRAILINGSPACE(mb)) { \ mb2 = m_get(M_WAITOK, MT_DATA); \ if ((s) > MLEN) \ panic("build > MLEN"); \ mb->m_next = mb2; \ mb = mb2; \ mb->m_len = 0; \ bpos = mtod(mb, caddr_t); \ } \ (a) = (c)(bpos); \ mb->m_len += (s); \ bpos += (s); } #define rpcm_dissect(a, c, s) \ { t1 = mtod(md, caddr_t)+md->m_len-dpos; \ if (t1 >= (s)) { \ (a) = (c)(dpos); \ dpos += (s); \ } else if ((t1 = rpcm_disct(&md, &dpos, (s), t1, &cp2)) != 0){ \ error = t1; \ goto rpcmout; \ } else { \ (a) = (c)cp2; \ } } #if 0 #define rpcm_mtouio(p,s) \ if ((s) > 0 && \ (t1 = rpcm_mbuftouio(&md,(p),(s),&dpos)) != 0) { \ error = t1; \ goto rpcmout; \ } #endif #define rpcm_rndup(a) (((a)+3)&(~0x3)) #define rpcm_adv(s) \ { t1 = mtod(md, caddr_t)+md->m_len-dpos; \ if (t1 >= (s)) { \ dpos += (s); \ } else if ((t1 = rpc_adv(&md, &dpos, (s), t1)) != 0) { \ error = t1; \ goto rpcmout; \ } } #define RPCMADV(m, s) (m)->m_data += (s) #endif /* _RPC_RPCM_SUBS_H_ */
Upload File
Create Folder