#include <ufs/ffs/fs.h>
#include <ufs/ufs/quota.h>
#include <ufs/ufs/inode.h>
+#ifndef AFS_OBSD38_ENV
#include <ufs/ufs/extattr.h>
+#endif
#include <ufs/ufs/ufsmount.h>
#ifndef MLEN
#include <sys/mbuf.h>
#else /* AFS_OBSD_ENV */
#ifdef AFS_LINUX22_ENV
#include <linux/version.h>
+#ifdef CONFIG_H_EXISTS
#include <linux/config.h>
+#endif
#include <linux/linkage.h>
#include <linux/limits.h>
#include <linux/wait.h>
#include <linux/net.h>
#include <linux/kdev_t.h>
#include <linux/ioctl.h>
+#if defined(AFS_LINUX26_ENV)
+#include <linux/backing-dev.h>
+#include <linux/pagemap.h>
+#include <linux/namei.h>
+#ifdef STRUCT_INODE_HAS_I_SECURITY
+#include <linux/security.h>
+#endif
+#include <linux/suspend.h>
+#if defined(LINUX_KEYRING_SUPPORT)
+#include <linux/rwsem.h>
+#include <linux/key.h>
+#if defined(KEY_TYPE_H_EXISTS)
+#include <linux/key-type.h>
+#endif
+#ifndef KEY_ALLOC_IN_QUOTA
+#define KEY_ALLOC_IN_QUOTA 1
+#endif
+#endif
+#endif
/* Avoid conflicts with coda overloading AFS type namespace. Must precede
* inclusion of uaccess.h.
*/
+#ifndef _LINUX_CODA_FS_I
#define _LINUX_CODA_FS_I
+#define _CODA_HEADER_
#define _CFS_HEADER_
struct coda_inode_info {
};
+#endif
+#ifndef _LINUX_XFS_FS_I
#define _LINUX_XFS_FS_I
struct xfs_inode_info {
};
+#endif
#include <asm/uaccess.h>
#include <linux/list.h>
#include <linux/dcache.h>
+#include <linux/mount.h>
#include <linux/fs.h>
#include <linux/quota.h>
#include <linux/sched.h>
#include <linux/mm.h>
+#include <linux/slab.h>
#include <linux/string.h>
#include <asm/semaphore.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16)
+#include <linux/mutex.h>
+#endif
#include <linux/errno.h>
#ifdef COMPLETION_H_EXISTS
#include <linux/completion.h>
#include "sys/cmn_err.h"
#ifdef AFS_SGI64_ENV
#include <ksys/behavior.h>
+/* in 6.5.20f, ksys/behavior.h doesn't bother to define BHV_IS_BHVL,
+ * but sys/vnode.h uses it in VNODE_TO_FIRST_BHV. It looks like from
+ * older headers like we want the old behavior, so we fake it. */
+#if defined(BHV_PREPARE) && !defined(CELL_CAPABLE)
+#define BHV_IS_BHVL(bhp) (0)
+#endif
#endif /* AFS_SGI64_ENV */
#include "fs/efs_inode.h"
-#ifdef AFS_SGI_EFS_IOPS_ENV
-#include "sgiefs/efs.h"
-#endif
#include "sys/kmem.h"
#include "sys/cred.h"
#include "sys/resource.h"
#include "h/stream.h" /* stops SUN56 socketvar.h errors */
#endif
+#ifdef AFS_SUN510_ENV
+#include <sys/cred_impl.h>
+#include <sys/policy.h>
+#endif
+
#include "h/socket.h"
#include "h/socketvar.h"
#include "h/protosw.h"
-#if defined(AFS_SGI_ENV) || defined(AFS_SUN_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_FBSD_ENV)
+#if defined(AFS_SGI_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_FBSD_ENV)
# include "h/dirent.h"
# ifdef AFS_SUN5_ENV
# include "h/sysmacros.h"
# include "h/dir.h"
#endif /* SGI || SUN || HPUX */
-#ifdef AFS_DEC_ENV
-# include "h/smp_lock.h"
-#endif /* AFS_DEC_ENV */
-
-
-#if !defined(AFS_SGI64_ENV) && !defined(AFS_FBSD_ENV)
+#if !defined(AFS_SGI64_ENV) && !defined(AFS_FBSD_ENV) && !defined(AFS_DARWIN80_ENV)
#include "h/user.h"
#endif /* AFS_SGI64_ENV */
#define MACH_USER_API 1
#if defined(AFS_FBSD50_ENV)
#include "h/bio.h"
+#include "h/filedesc.h"
#endif
#include "h/file.h"
#include "h/uio.h"
/* ----- The following mainly deal with vnodes/inodes stuff ------ */
-#ifdef AFS_DEC_ENV
-# include "h/mount.h"
-# include "machine/psl.h"
-# include "afs/gfs_vnode.h"
-#endif
-
-#ifdef AFS_MACH_ENV
-# include <vfs/vfs.h>
-# include <vfs/vnode.h>
-# include <sys/inode.h>
-# include <sys/mount.h>
-# include <vm/vm_pager.h>
-# include <kern/mfs.h>
-# include <mach/vm_param.h>
-# include <kern/parallel.h>
-#endif /* AFS_MACH_ENV */
-
-#ifndef AFS_DEC_ENV
# ifdef AFS_SUN5_ENV
# include "h/statvfs.h"
# endif /* AFS_SUN5_ENV */
#ifdef AFS_HPUX110_ENV
# include "h/resource.h"
#endif
+#ifdef AFS_HPUX1123_ENV
+# include <sys/user.h>
+# include <sys/cred.h>
+#endif
# endif /* AFS_HPUX_ENV */
#if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
# if defined(AFS_FBSD50_ENV)
# include <sys/uio.h>
# include <sys/mount.h>
# include <sys/namei.h>
+#ifdef AFS_DARWIN80_ENV
+# include <sys/kauth.h>
+#include <string.h>
+#endif
# include <sys/vnode.h>
# include <sys/queue.h>
# include <sys/malloc.h>
#undef timeout_fcn_t
#define _DIR_H_
#define doff_t int32_t
+#ifndef AFS_DARWIN80_ENV
# include <ufs/ufs/quota.h>
# include <ufs/ufs/inode.h>
# include <ufs/ffs/fs.h>
+#endif
#else
# include "h/vfs.h"
# include "h/vnode.h"
# endif /* !AFS_AIX32_ENV */
# endif /* AFS_SUN5_ENV */
#endif /* AFS_DARWIN_ENV || AFS_FBSD_ENV */
-#endif /* AFS_DEC_ENV */
/* These mainly deal with networking and rpc headers */
#include "netinet/in.h"
#include "rpc/types.h"
#include "rx/xdr.h"
-#ifdef AFS_AIX32_ENV
-# include "net/spl.h"
-#endif
-
/* Miscellaneous headers */
#include "h/proc.h"
#if !defined(AFS_FBSD_ENV)
#include "h/ioctl.h"
#endif /* AFS_FBSD_ENV */
-#if defined(AFS_HPUX101_ENV)
+#if defined(AFS_HPUX101_ENV) && !defined(AFS_HPUX1123_ENV)
#include "h/proc_iface.h"
#include "h/vas.h"
#endif
#include "h/tty.h"
#endif
-#if !defined(AFS_SGI_ENV) && !defined(AFS_SUN_ENV) && !defined(AFS_MACH_ENV) && !defined(AFS_AIX32_ENV) && !defined(AFS_HPUX_ENV) && !defined(AFS_SUN5_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_FBSD_ENV)
+#if !defined(AFS_SGI_ENV) && !defined(AFS_AIX32_ENV) && !defined(AFS_HPUX_ENV) && !defined(AFS_SUN5_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_FBSD_ENV)
# include "h/text.h"
#endif
-#if defined(AFS_AIX_ENV) || defined(AFS_DEC_ENV)
+#if defined(AFS_AIX_ENV)
# include "h/flock.h" /* fcntl.h is a user-level include in aix */
#else
# include "h/fcntl.h"
-#endif /* AIX || DEC */
+#endif /* AIX */
-#if defined(AFS_SGI_ENV) || defined(AFS_SUN_ENV) || defined(AFS_SUN5_ENV)
+#if defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV)
# include "h/unistd.h"
#endif /* SGI || SUN */
#include <sys/mbuf.h>
#include <rpc/types.h>
-#ifdef AFS_ALPHA_ENV
+#ifdef AFS_OSF_ENV
#undef kmem_alloc
#undef kmem_free
#undef mem_alloc
#undef mem_free
#undef register
-#endif /* AFS_ALPHA_ENV */
+#endif /* AFS_OSF_ENV */
#include <rx/xdr.h>
#include <sys/proc.h>