nfs_prot_svc.c (42629) | nfs_prot_svc.c (51292) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1997-1998 Erez Zadok | 2 * Copyright (c) 1997-1999 Erez Zadok |
3 * Copyright (c) 1989 Jan-Simon Pendry 4 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1989 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by 9 * Jan-Simon Pendry at Imperial College, London. 10 * --- 22 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * %W% (Berkeley) %G% 40 * | 3 * Copyright (c) 1989 Jan-Simon Pendry 4 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1989 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by 9 * Jan-Simon Pendry at Imperial College, London. 10 * --- 22 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * %W% (Berkeley) %G% 40 * |
41 * $Id: nfs_prot_svc.c,v 1.1.1.1 1998/11/05 02:04:55 ezk Exp $ | 41 * $Id: nfs_prot_svc.c,v 1.3 1999/01/13 23:31:19 ezk Exp $ |
42 * 43 */ 44 45#ifdef HAVE_CONFIG_H 46# include <config.h> 47#endif /* HAVE_CONFIG_H */ 48#include <am_defs.h> 49#include <hlfsd.h> --- 173 unchanged lines hidden (view full) --- 223 } 224 225 memset((char *) &argument, 0, sizeof(argument)); 226 if (!svc_getargs(transp, 227 (XDRPROC_T_TYPE) xdr_argument, 228 (SVC_IN_ARG_TYPE) &argument)) { 229 plog(XLOG_ERROR, 230 "NFS xdr decode failed for %d %d %d", | 42 * 43 */ 44 45#ifdef HAVE_CONFIG_H 46# include <config.h> 47#endif /* HAVE_CONFIG_H */ 48#include <am_defs.h> 49#include <hlfsd.h> --- 173 unchanged lines hidden (view full) --- 223 } 224 225 memset((char *) &argument, 0, sizeof(argument)); 226 if (!svc_getargs(transp, 227 (XDRPROC_T_TYPE) xdr_argument, 228 (SVC_IN_ARG_TYPE) &argument)) { 229 plog(XLOG_ERROR, 230 "NFS xdr decode failed for %d %d %d", |
231 rqstp->rq_prog, rqstp->rq_vers, rqstp->rq_proc); | 231 (int) rqstp->rq_prog, (int) rqstp->rq_vers, (int) rqstp->rq_proc); |
232 svcerr_decode(transp); 233 return; 234 } 235 result = (*local) (&argument, rqstp); 236 237 nfs_program_2_transp = NULL; 238 239 if (result != NULL && !svc_sendreply(transp, 240 (XDRPROC_T_TYPE) xdr_result, 241 result)) { 242 svcerr_systemerr(transp); 243 } 244 if (!svc_freeargs(transp, 245 (XDRPROC_T_TYPE) xdr_argument, 246 (SVC_IN_ARG_TYPE) & argument)) { 247 plog(XLOG_FATAL, "unable to free rpc arguments in nfs_program_2"); 248 going_down(1); 249 } 250} | 232 svcerr_decode(transp); 233 return; 234 } 235 result = (*local) (&argument, rqstp); 236 237 nfs_program_2_transp = NULL; 238 239 if (result != NULL && !svc_sendreply(transp, 240 (XDRPROC_T_TYPE) xdr_result, 241 result)) { 242 svcerr_systemerr(transp); 243 } 244 if (!svc_freeargs(transp, 245 (XDRPROC_T_TYPE) xdr_argument, 246 (SVC_IN_ARG_TYPE) & argument)) { 247 plog(XLOG_FATAL, "unable to free rpc arguments in nfs_program_2"); 248 going_down(1); 249 } 250} |