svc.c (a986ef5788bd3338d2a970eb96104824e4a0e3bb) | svc.c (235baf269e492159336326a12da1ca09fbba85db) |
---|---|
1/* $NetBSD: svc.c,v 1.21 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 --- 48 unchanged lines hidden (view full) --- 57 58#include <rpc/rpc.h> 59#ifdef PORTMAP 60#include <rpc/pmap_clnt.h> 61#endif /* PORTMAP */ 62#include "un-namespace.h" 63 64#include "rpc_com.h" | 1/* $NetBSD: svc.c,v 1.21 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 --- 48 unchanged lines hidden (view full) --- 57 58#include <rpc/rpc.h> 59#ifdef PORTMAP 60#include <rpc/pmap_clnt.h> 61#endif /* PORTMAP */ 62#include "un-namespace.h" 63 64#include "rpc_com.h" |
65#include "mt_misc.h" |
|
65 66#define RQCRED_SIZE 400 /* this size is excessive */ 67 68#define SVC_VERSQUIET 0x0001 /* keep quiet about vers mismatch */ 69#define version_keepquiet(xp) ((u_long)(xp)->xp_p3 & SVC_VERSQUIET) 70 71#define max(a, b) (a > b ? a : b) 72 --- 6 unchanged lines hidden (view full) --- 79static struct svc_callout { 80 struct svc_callout *sc_next; 81 rpcprog_t sc_prog; 82 rpcvers_t sc_vers; 83 char *sc_netid; 84 void (*sc_dispatch)(struct svc_req *, SVCXPRT *); 85} *svc_head; 86 | 66 67#define RQCRED_SIZE 400 /* this size is excessive */ 68 69#define SVC_VERSQUIET 0x0001 /* keep quiet about vers mismatch */ 70#define version_keepquiet(xp) ((u_long)(xp)->xp_p3 & SVC_VERSQUIET) 71 72#define max(a, b) (a > b ? a : b) 73 --- 6 unchanged lines hidden (view full) --- 80static struct svc_callout { 81 struct svc_callout *sc_next; 82 rpcprog_t sc_prog; 83 rpcvers_t sc_vers; 84 char *sc_netid; 85 void (*sc_dispatch)(struct svc_req *, SVCXPRT *); 86} *svc_head; 87 |
87extern rwlock_t svc_lock; 88extern rwlock_t svc_fd_lock; 89 | |
90static struct svc_callout *svc_find(rpcprog_t, rpcvers_t, 91 struct svc_callout **, char *); 92static void __xprt_do_unregister (SVCXPRT *xprt, bool_t dolock); 93 94/* *************** SVCXPRT related stuff **************** */ 95 96/* 97 * Activate a transport handle. --- 655 unchanged lines hidden --- | 88static struct svc_callout *svc_find(rpcprog_t, rpcvers_t, 89 struct svc_callout **, char *); 90static void __xprt_do_unregister (SVCXPRT *xprt, bool_t dolock); 91 92/* *************** SVCXPRT related stuff **************** */ 93 94/* 95 * Activate a transport handle. --- 655 unchanged lines hidden --- |