Deleted Added
full compact
nfsm_subs.h (89272) nfsm_subs.h (106264)
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
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 * $FreeBSD: head/sys/nfsserver/nfsm_subs.h 89272 2002-01-11 22:22:39Z iedowse $
37 * $FreeBSD: head/sys/nfsserver/nfsm_subs.h 106264 2002-10-31 22:35:03Z jeff $
38 */
39
40#ifndef _NFSSERVER_NFSM_SUBS_H_
41#define _NFSSERVER_NFSM_SUBS_H_
42
43#include <nfs/nfs_common.h>
44
45#define nfstov_mode(a) (fxdr_unsigned(u_int32_t, (a)) & ALLPERMS)

--- 26 unchanged lines hidden (view full) ---

72 */
73
74
75
76/* ************************************* */
77/* Dissection phase macros */
78
79int nfsm_srvstrsiz_xx(int *s, int m, struct mbuf **md, caddr_t *dpos);
38 */
39
40#ifndef _NFSSERVER_NFSM_SUBS_H_
41#define _NFSSERVER_NFSM_SUBS_H_
42
43#include <nfs/nfs_common.h>
44
45#define nfstov_mode(a) (fxdr_unsigned(u_int32_t, (a)) & ALLPERMS)

--- 26 unchanged lines hidden (view full) ---

72 */
73
74
75
76/* ************************************* */
77/* Dissection phase macros */
78
79int nfsm_srvstrsiz_xx(int *s, int m, struct mbuf **md, caddr_t *dpos);
80int nfsm_srvnamesiz_xx(int *s, struct mbuf **md, caddr_t *dpos);
80int nfsm_srvnamesiz_xx(int *s, int m, struct mbuf **md, caddr_t *dpos);
81int nfsm_srvmtofh_xx(fhandle_t *f, struct nfsrv_descript *nfsd,
82 struct mbuf **md, caddr_t *dpos);
83int nfsm_srvsattr_xx(struct vattr *a, struct mbuf **md, caddr_t *dpos);
84
85#define nfsm_srvstrsiz(s, m) \
86do { \
87 int t1; \
88 t1 = nfsm_srvstrsiz_xx(&(s), (m), &md, &dpos); \
89 if (t1) { \
90 error = t1; \
91 nfsm_reply(0); \
92 } \
93} while (0)
94
95#define nfsm_srvnamesiz(s) \
96do { \
97 int t1; \
81int nfsm_srvmtofh_xx(fhandle_t *f, struct nfsrv_descript *nfsd,
82 struct mbuf **md, caddr_t *dpos);
83int nfsm_srvsattr_xx(struct vattr *a, struct mbuf **md, caddr_t *dpos);
84
85#define nfsm_srvstrsiz(s, m) \
86do { \
87 int t1; \
88 t1 = nfsm_srvstrsiz_xx(&(s), (m), &md, &dpos); \
89 if (t1) { \
90 error = t1; \
91 nfsm_reply(0); \
92 } \
93} while (0)
94
95#define nfsm_srvnamesiz(s) \
96do { \
97 int t1; \
98 t1 = nfsm_srvnamesiz_xx(&(s), &md, &dpos); \
98 t1 = nfsm_srvnamesiz_xx(&(s), NFS_MAXNAMLEN, &md, &dpos); \
99 if (t1) { \
100 error = t1; \
101 nfsm_reply(0); \
102 } \
103} while (0)
104
99 if (t1) { \
100 error = t1; \
101 nfsm_reply(0); \
102 } \
103} while (0)
104
105#define nfsm_srvpathsiz(s) \
106do { \
107 int t1; \
108 t1 = nfsm_srvnamesiz_xx(&(s), NFS_MAXPATHLEN, &md, &dpos); \
109 if (t1) { \
110 error = t1; \
111 nfsm_reply(0); \
112 } \
113} while (0)
114
105#define nfsm_srvmtofh(f) \
106do { \
107 int t1; \
108 t1 = nfsm_srvmtofh_xx((f), nfsd, &md, &dpos); \
109 if (t1) { \
110 error = t1; \
111 nfsm_reply(0); \
112 } \

--- 65 unchanged lines hidden ---
115#define nfsm_srvmtofh(f) \
116do { \
117 int t1; \
118 t1 = nfsm_srvmtofh_xx((f), nfsd, &md, &dpos); \
119 if (t1) { \
120 error = t1; \
121 nfsm_reply(0); \
122 } \

--- 65 unchanged lines hidden ---