Deleted Added
full compact
nfsm_subs.h (195202) nfsm_subs.h (230394)
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

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

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)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

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

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95
33 * $FreeBSD: head/sys/nfsclient/nfsm_subs.h 195202 2009-06-30 19:03:27Z dfr $
33 * $FreeBSD: head/sys/nfsclient/nfsm_subs.h 230394 2012-01-20 20:02:01Z jhb $
34 */
35
36#ifndef _NFSCLIENT_NFSM_SUBS_H_
37#define _NFSCLIENT_NFSM_SUBS_H_
38
39#include <nfs/nfs_common.h>
40
41#define nfsv2tov_type(a) nv2tov_type[fxdr_unsigned(u_int32_t,(a))&0x7]

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

147/* Reply interpretation phase macros */
148
149int nfsm_mtofh_xx(struct vnode *d, struct vnode **v, int v3, int *f,
150 struct mbuf **md, caddr_t *dpos);
151int nfsm_getfh_xx(nfsfh_t **f, int *s, int v3, struct mbuf **md,
152 caddr_t *dpos);
153int nfsm_loadattr_xx(struct vnode **v, struct vattr *va, struct mbuf **md,
154 caddr_t *dpos);
34 */
35
36#ifndef _NFSCLIENT_NFSM_SUBS_H_
37#define _NFSCLIENT_NFSM_SUBS_H_
38
39#include <nfs/nfs_common.h>
40
41#define nfsv2tov_type(a) nv2tov_type[fxdr_unsigned(u_int32_t,(a))&0x7]

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

147/* Reply interpretation phase macros */
148
149int nfsm_mtofh_xx(struct vnode *d, struct vnode **v, int v3, int *f,
150 struct mbuf **md, caddr_t *dpos);
151int nfsm_getfh_xx(nfsfh_t **f, int *s, int v3, struct mbuf **md,
152 caddr_t *dpos);
153int nfsm_loadattr_xx(struct vnode **v, struct vattr *va, struct mbuf **md,
154 caddr_t *dpos);
155int nfsm_postop_attr_xx(struct vnode **v, int *f, struct mbuf **md,
156 caddr_t *dpos);
155int nfsm_postop_attr_xx(struct vnode **v, int *f, struct vattr *va,
156 struct mbuf **md, caddr_t *dpos);
157int nfsm_wcc_data_xx(struct vnode **v, int *f, struct mbuf **md,
158 caddr_t *dpos);
159
160#define nfsm_mtofh(d, v, v3, f) \
161do { \
162 int32_t t1; \
163 t1 = nfsm_mtofh_xx((d), &(v), (v3), &(f), &md, &dpos); \
164 nfsm_dcheck(t1, mrep); \

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

176 int32_t t1; \
177 t1 = nfsm_loadattr_xx(&v, a, &md, &dpos); \
178 nfsm_dcheck(t1, mrep); \
179} while (0)
180
181#define nfsm_postop_attr(v, f) \
182do { \
183 int32_t t1; \
157int nfsm_wcc_data_xx(struct vnode **v, int *f, struct mbuf **md,
158 caddr_t *dpos);
159
160#define nfsm_mtofh(d, v, v3, f) \
161do { \
162 int32_t t1; \
163 t1 = nfsm_mtofh_xx((d), &(v), (v3), &(f), &md, &dpos); \
164 nfsm_dcheck(t1, mrep); \

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

176 int32_t t1; \
177 t1 = nfsm_loadattr_xx(&v, a, &md, &dpos); \
178 nfsm_dcheck(t1, mrep); \
179} while (0)
180
181#define nfsm_postop_attr(v, f) \
182do { \
183 int32_t t1; \
184 t1 = nfsm_postop_attr_xx(&v, &f, &md, &dpos); \
184 t1 = nfsm_postop_attr_xx(&v, &f, NULL, &md, &dpos); \
185 nfsm_dcheck(t1, mrep); \
186} while (0)
187
185 nfsm_dcheck(t1, mrep); \
186} while (0)
187
188#define nfsm_postop_attr_va(v, f, va) \
189do { \
190 int32_t t1; \
191 t1 = nfsm_postop_attr_xx(&v, &f, va, &md, &dpos); \
192 nfsm_dcheck(t1, mrep); \
193} while (0)
194
188/* Used as (f) for nfsm_wcc_data() */
189#define NFSV3_WCCRATTR 0
190#define NFSV3_WCCCHK 1
191
192#define nfsm_wcc_data(v, f) \
193do { \
194 int32_t t1; \
195 t1 = nfsm_wcc_data_xx(&v, &f, &md, &dpos); \
196 nfsm_dcheck(t1, mrep); \
197} while (0)
198
199#endif
195/* Used as (f) for nfsm_wcc_data() */
196#define NFSV3_WCCRATTR 0
197#define NFSV3_WCCCHK 1
198
199#define nfsm_wcc_data(v, f) \
200do { \
201 int32_t t1; \
202 t1 = nfsm_wcc_data_xx(&v, &f, &md, &dpos); \
203 nfsm_dcheck(t1, mrep); \
204} while (0)
205
206#endif