nfsm_subs.h (42060) | nfsm_subs.h (47751) |
---|---|
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 * $Id: nfsm_subs.h,v 1.21 1998/05/31 20:08:57 peter Exp $ | 37 * $Id: nfsm_subs.h,v 1.22 1998/12/25 10:34:27 dfr Exp $ |
38 */ 39 40 41#ifndef _NFS_NFSM_SUBS_H_ 42#define _NFS_NFSM_SUBS_H_ 43 44struct ucred; 45struct vnode; --- 213 unchanged lines hidden (view full) --- 259 *tl = txdr_unsigned((a)->va_gid); \ 260 } else { \ 261 nfsm_build(tl, u_int32_t *, NFSX_UNSIGNED); \ 262 *tl = nfs_false; \ 263 } \ 264 if ((full) && (a)->va_size != VNOVAL) { \ 265 nfsm_build(tl, u_int32_t *, 3 * NFSX_UNSIGNED); \ 266 *tl++ = nfs_true; \ | 38 */ 39 40 41#ifndef _NFS_NFSM_SUBS_H_ 42#define _NFS_NFSM_SUBS_H_ 43 44struct ucred; 45struct vnode; --- 213 unchanged lines hidden (view full) --- 259 *tl = txdr_unsigned((a)->va_gid); \ 260 } else { \ 261 nfsm_build(tl, u_int32_t *, NFSX_UNSIGNED); \ 262 *tl = nfs_false; \ 263 } \ 264 if ((full) && (a)->va_size != VNOVAL) { \ 265 nfsm_build(tl, u_int32_t *, 3 * NFSX_UNSIGNED); \ 266 *tl++ = nfs_true; \ |
267 txdr_hyper(&(a)->va_size, tl); \ | 267 txdr_hyper((a)->va_size, tl); \ |
268 } else { \ 269 nfsm_build(tl, u_int32_t *, NFSX_UNSIGNED); \ 270 *tl = nfs_false; \ 271 } \ 272 if ((a)->va_atime.tv_sec != VNOVAL) { \ 273 if ((a)->va_atime.tv_sec != time_second) { \ 274 nfsm_build(tl, u_int32_t *, 3 * NFSX_UNSIGNED); \ 275 *tl++ = txdr_unsigned(NFSV3SATTRTIME_TOCLIENT); \ --- 198 unchanged lines hidden (view full) --- 474 nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ 475 if (*tl == nfs_true) { \ 476 nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ 477 (a)->va_gid = fxdr_unsigned(gid_t, *tl); \ 478 } \ 479 nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ 480 if (*tl == nfs_true) { \ 481 nfsm_dissect(tl, u_int32_t *, 2 * NFSX_UNSIGNED); \ | 268 } else { \ 269 nfsm_build(tl, u_int32_t *, NFSX_UNSIGNED); \ 270 *tl = nfs_false; \ 271 } \ 272 if ((a)->va_atime.tv_sec != VNOVAL) { \ 273 if ((a)->va_atime.tv_sec != time_second) { \ 274 nfsm_build(tl, u_int32_t *, 3 * NFSX_UNSIGNED); \ 275 *tl++ = txdr_unsigned(NFSV3SATTRTIME_TOCLIENT); \ --- 198 unchanged lines hidden (view full) --- 474 nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ 475 if (*tl == nfs_true) { \ 476 nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ 477 (a)->va_gid = fxdr_unsigned(gid_t, *tl); \ 478 } \ 479 nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ 480 if (*tl == nfs_true) { \ 481 nfsm_dissect(tl, u_int32_t *, 2 * NFSX_UNSIGNED); \ |
482 fxdr_hyper(tl, &(a)->va_size); \ | 482 (a)->va_size = fxdr_hyper(tl); \ |
483 } \ 484 nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ 485 switch (fxdr_unsigned(int, *tl)) { \ 486 case NFSV3SATTRTIME_TOCLIENT: \ 487 nfsm_dissect(tl, u_int32_t *, 2 * NFSX_UNSIGNED); \ 488 fxdr_nfsv3time(tl, &(a)->va_atime); \ 489 break; \ 490 case NFSV3SATTRTIME_TOSERVER: \ --- 15 unchanged lines hidden --- | 483 } \ 484 nfsm_dissect(tl, u_int32_t *, NFSX_UNSIGNED); \ 485 switch (fxdr_unsigned(int, *tl)) { \ 486 case NFSV3SATTRTIME_TOCLIENT: \ 487 nfsm_dissect(tl, u_int32_t *, 2 * NFSX_UNSIGNED); \ 488 fxdr_nfsv3time(tl, &(a)->va_atime); \ 489 break; \ 490 case NFSV3SATTRTIME_TOSERVER: \ --- 15 unchanged lines hidden --- |