Deleted Added
full compact
nfskpiport.h (191783) nfskpiport.h (207785)
1/*-
2 * Copyright (c) 2009 Rick Macklem, University of Guelph
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2009 Rick Macklem, University of Guelph
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/fs/nfs/nfskpiport.h 191783 2009-05-04 15:23:58Z rmacklem $
26 * $FreeBSD: head/sys/fs/nfs/nfskpiport.h 207785 2010-05-08 14:50:12Z rmacklem $
27 */
28
29#ifndef _NFS_NFSKPIPORT_H_
27 */
28
29#ifndef _NFS_NFSKPIPORT_H_
30#define _NFSKPIPORT_NFS_H_
30#define _NFS_NFSKPIPORT_H_
31/*
32 * These definitions are needed since the generic code is now using Darwin8
33 * KPI stuff. (I know, seems a bit silly, but I want the code to build on
34 * Darwin8 and hopefully subsequent releases from Apple.)
35 */
36typedef struct mount * mount_t;
37#define vfs_statfs(m) (&((m)->mnt_stat))
38#define vfs_flags(m) ((m)->mnt_flag)

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

65 char *pp; \
66 pp = (char *)(p)->uio_iov->iov_base; \
67 pp += (v); \
68 (p)->uio_iov->iov_base = (void *)pp; \
69 } while (0)
70#define uio_iov_len(p) ((p)->uio_iov->iov_len)
71#define uio_iov_len_add(p, v) ((p)->uio_iov->iov_len += (v))
72
31/*
32 * These definitions are needed since the generic code is now using Darwin8
33 * KPI stuff. (I know, seems a bit silly, but I want the code to build on
34 * Darwin8 and hopefully subsequent releases from Apple.)
35 */
36typedef struct mount * mount_t;
37#define vfs_statfs(m) (&((m)->mnt_stat))
38#define vfs_flags(m) ((m)->mnt_flag)

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

65 char *pp; \
66 pp = (char *)(p)->uio_iov->iov_base; \
67 pp += (v); \
68 (p)->uio_iov->iov_base = (void *)pp; \
69 } while (0)
70#define uio_iov_len(p) ((p)->uio_iov->iov_len)
71#define uio_iov_len_add(p, v) ((p)->uio_iov->iov_len += (v))
72
73#endif /* _NFSKPIPORT_NFS_H */
73#endif /* _NFS_NFSKPIPORT_H */