/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
# include <sys/timeout.h>
#elif defined(AFS_NBSD40_ENV)
+# ifdef AFS_NBSD50_ENV
+# include <sys/simplelock.h>
+# endif
# include <sys/errno.h>
# include <sys/types.h>
# include <sys/mount.h> /* may define MOUNT_AFS */
# include <sys/socket.h>
# include <sys/socketvar.h>
# include <sys/dirent.h>
-# include <sys/user.h>
# include <sys/kauth.h>
# include <sys/uio.h>
# include <sys/buf.h>
# include <sys/stat.h>
# include <sys/file.h>
# include <sys/namei.h>
-# include <sys/socket.h>
-# include <sys/socketvar.h>
-# include <sys/dirent.h>
-# include <sys/user.h>
-# include <sys/kauth.h>
# include <sys/uio.h>
# include <sys/buf.h>
-# include <sys/stat.h>
# include <sys/file.h>
# include <sys/namei.h>
# include <sys/vnode.h>
# include <ufs/ufs/extattr.h>
# include <ufs/ufs/ufsmount.h>
# ifndef MLEN
-# if 0
-# include <sys/mbuf.h>
-# endif /* 0 */
+# include <sys/mbuf.h>
# include <net/if.h>
# endif /* !MLEN */
# include <sys/protosw.h>
# include <linux/security.h>
# endif
# include <linux/suspend.h>
-# if defined(LINUX_KEYRING_SUPPORT)
-# include <linux/rwsem.h>
-# include <linux/key.h>
-# if defined(HAVE_LINUX_KEY_TYPE_H)
-# 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.
# include <linux/sched.h>
# include <linux/mm.h>
# include <linux/slab.h>
+# include <linux/proc_fs.h>
# include <linux/string.h>
# if defined(HAVE_LINUX_SEMAPHORE_H)
# include <linux/semaphore.h>
# ifdef HAVE_LINUX_COMPLETION_H
# include <linux/completion.h>
# endif
-# if defined(LINUX_USE_FH)
+# if defined(HAVE_LINUX_EXPORTFS_H)
# include <linux/exportfs.h>
# endif
+# ifdef AFS_LINUX24_ENV
+# include <linux/pagemap.h>
+# endif
#else /* AFS_LINUX22_ENV */
# if defined(AFS_DARWIN_ENV)
# include "h/systm.h"
# include "h/time.h"
+# ifdef AFS_FBSD_ENV
+# include <sys/socket.h>
+# include <net/if.h>
+# include <net/if_var.h>
+# endif
+
# ifdef AFS_AIX_ENV
# ifdef AFS_AIX41_ENV
# include "sys/statfs.h"
# ifdef AFS_SUN5_ENV
# include <sys/cmn_err.h> /* for kernel printf() prototype */
-# endif
-
-# if defined(AFS_SUN56_ENV)
-# include "h/vfs.h" /* stops SUN56 socketvar.h warnings */
-# include "h/stropts.h" /* stops SUN56 socketvar.h warnings */
-# include "h/stream.h" /* stops SUN56 socketvar.h errors */
+# include "h/vfs.h" /* stops SUN5 socketvar.h warnings */
+# include "h/stropts.h" /* stops SUN5 socketvar.h warnings */
+# include "h/stream.h" /* stops SUN5 socketvar.h errors */
# endif
# ifdef AFS_SUN510_ENV
# include "h/protosw.h"
# if defined(AFS_FBSD_ENV)
+# include "sys/limits.h"
+# endif
+
+# ifdef AFS_HPUX_ENV
# include "limits.h"
# endif