]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
config: Refactor the FreeBSD configuration files
authorChas Williams (CONTRACTOR) <chas@cmf.nrl.navy.mil>
Thu, 31 Jul 2014 15:45:14 +0000 (11:45 -0400)
committerD Brashear <shadow@your-file-system.com>
Wed, 6 Aug 2014 14:18:39 +0000 (10:18 -0400)
Use a common file for most of the platform specific settings.

Change-Id: If95ad44de99fc3320570d53d706fed4d760fe67d
Reviewed-on: http://gerrit.openafs.org/11346
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Garrett Wollman <wollman@csail.mit.edu>
Reviewed-by: D Brashear <shadow@your-file-system.com>
44 files changed:
acinclude.m4
src/config/param.amd64_fbsd_100.h
src/config/param.amd64_fbsd_101.h
src/config/param.amd64_fbsd_110.h
src/config/param.amd64_fbsd_53.h
src/config/param.amd64_fbsd_70.h
src/config/param.amd64_fbsd_71.h
src/config/param.amd64_fbsd_72.h
src/config/param.amd64_fbsd_73.h
src/config/param.amd64_fbsd_74.h
src/config/param.amd64_fbsd_80.h
src/config/param.amd64_fbsd_81.h
src/config/param.amd64_fbsd_82.h
src/config/param.amd64_fbsd_83.h
src/config/param.amd64_fbsd_84.h
src/config/param.amd64_fbsd_90.h
src/config/param.amd64_fbsd_91.h
src/config/param.amd64_fbsd_92.h
src/config/param.amd64_fbsd_93.h
src/config/param.generic_fbsd.h [new file with mode: 0644]
src/config/param.i386_fbsd_100.h
src/config/param.i386_fbsd_101.h
src/config/param.i386_fbsd_110.h
src/config/param.i386_fbsd_50.h
src/config/param.i386_fbsd_51.h
src/config/param.i386_fbsd_52.h
src/config/param.i386_fbsd_53.h
src/config/param.i386_fbsd_60.h
src/config/param.i386_fbsd_61.h
src/config/param.i386_fbsd_62.h
src/config/param.i386_fbsd_70.h
src/config/param.i386_fbsd_71.h
src/config/param.i386_fbsd_72.h
src/config/param.i386_fbsd_73.h
src/config/param.i386_fbsd_74.h
src/config/param.i386_fbsd_80.h
src/config/param.i386_fbsd_81.h
src/config/param.i386_fbsd_82.h
src/config/param.i386_fbsd_83.h
src/config/param.i386_fbsd_84.h
src/config/param.i386_fbsd_90.h
src/config/param.i386_fbsd_91.h
src/config/param.i386_fbsd_92.h
src/config/param.i386_fbsd_93.h

index 4052f99c1ac98ec53c64498bc30248be0d594efc..7c277acba380c73f5fb6128e237dbd9ad94472cf 100644 (file)
@@ -818,6 +818,7 @@ case $AFS_SYSNAME in
     *_linux_22) AFS_PARAM_COMMON=param.linux22.h ;;
     *_linux_24) AFS_PARAM_COMMON=param.linux24.h ;;
     *_linux_26) AFS_PARAM_COMMON=param.linux26.h ;;
+    *_fbsd_*)   AFS_PARAM_COMMON=param.generic_fbsd.h ;;
 esac
 
 OPENAFS_OSCONF
index 891fbb1bc486cd1751f3361a90ac83d214286d0a..7a8a26559ece475ec32345ce3a216e1a53d23aea 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_100"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_100
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
+#define AFS_FBSD92_ENV 1
+#define AFS_FBSD93_ENV 1
 #define AFS_FBSD100_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
+#define AFS_X86_FBSD92_ENV 1
+#define AFS_X86_FBSD93_ENV 1
 #define AFS_X86_FBSD100_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD100_ENV    1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
+#define AFS_USR_FBSD92_ENV 1
+#define AFS_USR_FBSD93_ENV 1
+#define AFS_USR_FBSD100_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index fce558979870800fdba13a3b7f677b83ab895be8..d092cd98f2419f687fc13da310bb36ad0c962636 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_101"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_101
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
+#define AFS_FBSD92_ENV 1
+#define AFS_FBSD93_ENV 1
 #define AFS_FBSD100_ENV 1
 #define AFS_FBSD101_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
+#define AFS_X86_FBSD92_ENV 1
+#define AFS_X86_FBSD93_ENV 1
 #define AFS_X86_FBSD100_ENV 1
 #define AFS_X86_FBSD101_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD100_ENV    1
-#define AFS_USR_FBSD101_ENV    1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
+#define AFS_USR_FBSD92_ENV 1
+#define AFS_USR_FBSD93_ENV 1
+#define AFS_USR_FBSD100_ENV 1
+#define AFS_USR_FBSD101_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index f14680dcee41aee91cdc35b13c1d8ce56f901f21..2e896a843e94aa608c643e953f98e00f939cd0c2 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_110"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_110
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
+#define AFS_FBSD92_ENV 1
+#define AFS_FBSD93_ENV 1
 #define AFS_FBSD100_ENV 1
 #define AFS_FBSD110_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
+#define AFS_X86_FBSD92_ENV 1
+#define AFS_X86_FBSD93_ENV 1
 #define AFS_X86_FBSD100_ENV 1
 #define AFS_X86_FBSD110_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD100_ENV    1
-#define AFS_USR_FBSD110_ENV    1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
+#define AFS_USR_FBSD92_ENV 1
+#define AFS_USR_FBSD93_ENV 1
+#define AFS_USR_FBSD100_ENV 1
+#define AFS_USR_FBSD110_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index a3c7429da23f1f2251958e0809d261278ca27bd4..310f8a5a24067b09b25a1eb0ca6c7cb7cc97449a 100644 (file)
 #ifndef        AFS_PARAM_H
 #define        AFS_PARAM_H
 
+#define AFS_64BITPOINTER_ENV 1
+
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD53_ENV 1
-#define AFS_X86_FBSD_ENV 1
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VM_RDWR_ENV        1
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
 
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
 #define SYS_NAME       "amd64_fbsd_53"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_53
 
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-#define AFSLITTLE_ENDIAN 1
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
-
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
 
 /* Machine / Operating system information */
-#include <afs/afs_sysnames.h>
 #define SYS_NAME       "i386_fbsd_53"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_53
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <limits.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <netinet/in.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-
 #endif /* !defined(UKERNEL) */
 
 #endif /* AFS_PARAM_H */
index b5b82d97dd87c8c0de45ac3338bc8d72cb2a89b3..0ed9df4e409a96e57219c68a4cb59d425e0d2e63 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_70"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_70
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD61_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 4ffcddad8c8cc962709fd0ae0250bcb433253f3b..255c3f8cd035a7a4c8bd4762f0ec8c8a1fca3143 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_71"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_71
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 4cbab9ecf419f1475a1eace9cf286812304b0d27..a38d01d5b1fd1da2da951931230c059a514ede0c 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_72"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_72
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
 #define AFS_FBSD72_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
-#define AFS_X86_FBSD71_ENV 1
 #define AFS_X86_FBSD72_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD72_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD72_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index b55a534d276f5b3fa0440e1ac4e27846ded9d142..304b4b4f553a1f7e7ef23860a0aa423338564146 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_73"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_73
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
@@ -38,7 +23,7 @@
 #define AFS_FBSD71_ENV 1
 #define AFS_FBSD72_ENV 1
 #define AFS_FBSD73_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD71_ENV 1
 #define AFS_X86_FBSD72_ENV 1
 #define AFS_X86_FBSD73_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD72_ENV     1
-#define AFS_USR_FBSD73_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index ad3d1e74abb01681a793d90759e19d960387ec88..18b16d8671eec0d61ad1b4f30e3e1ca8d8e98d34 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_74"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_74
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
@@ -39,7 +24,7 @@
 #define AFS_FBSD72_ENV 1
 #define AFS_FBSD73_ENV 1
 #define AFS_FBSD74_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD72_ENV 1
 #define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD74_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD72_ENV     1
-#define AFS_USR_FBSD73_ENV     1
-#define AFS_USR_FBSD74_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD74_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index bb8f2d1aa8aabf7448deef7ba77437026dfd57b7..29b03462cc9c50557ea476b9792535f48e5e2a98 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_80"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_80
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 4e159c0a87590a84723f00c37bfe7098cfa98b77..006e0643681ff1608ea0f4e0148fdece46854344 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_81"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_81
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 23572fcb40d78e15ecd61377a1f244a050e32953..c8d95917ca0d1ae562eaf994ae20f7973deebda6 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_82"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_82
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
 #define AFS_FBSD82_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
 #define AFS_X86_FBSD82_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD82_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 6eaaf393ee358a5317caeb2dbda05639c6cdb70e..d27d314d254b21a85bc1490019caaf23dd5af590 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_83"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_83
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
 #define AFS_FBSD82_ENV 1
 #define AFS_FBSD83_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
 #define AFS_X86_FBSD82_ENV 1
 #define AFS_X86_FBSD83_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD82_ENV     1
-#define AFS_USR_FBSD83_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 2bed47ea306ed498bb1151be56fddc1e649d42ba..903c83bb4a391d24caad5ff9fa5ec07afa3ddc7f 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_84"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_84
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
 #define AFS_FBSD82_ENV 1
 #define AFS_FBSD83_ENV 1
 #define AFS_FBSD84_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
 #define AFS_X86_FBSD82_ENV 1
 #define AFS_X86_FBSD83_ENV 1
 #define AFS_X86_FBSD84_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD82_ENV     1
-#define AFS_USR_FBSD83_ENV     1
-#define AFS_USR_FBSD84_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 054b8dbc72f98f81cea8a14ac716c58441d82fcc..e56c2d097c6d8ece0461fd92620581444b6ccf75 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_90"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_90
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 20669263ca5d70880643a148cea9698f962c778c..3ef236a97d66e0eb567ecd657665ccac08f6a8e4 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_91"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_91
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index b6c41d0d4c7c6c7f0c856ff78f9dfcedb4f2ae59..95c6e19c6360e53221be363bcdeb62793a43f22e 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_92"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_92
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
 #define AFS_FBSD92_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
 #define AFS_X86_FBSD92_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD92_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
+#define AFS_USR_FBSD92_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index d02e1157181a2e79d3a292b82870734c47eb87a9..1a798c8f8d3237a7c5365a9f4646a7ed95464f14 100644 (file)
@@ -5,28 +5,13 @@
 #define SYS_NAME       "amd64_fbsd_93"
 #define SYS_NAME_ID    SYS_NAME_ID_amd64_fbsd_93
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
+#define AFS_64BITPOINTER_ENV 1
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+#define AFS_64BITUSERPOINTER_ENV 1
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BITPOINTER_ENV 1
-#define AFS_64BITUSERPOINTER_ENV       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
 #define AFS_FBSD92_ENV 1
 #define AFS_FBSD93_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
 #define AFS_X86_FBSD92_ENV 1
 #define AFS_X86_FBSD93_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                               NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                               NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD92_ENV     1
-#define AFS_USR_FBSD93_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BITPOINTER_ENV  1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
+#define AFS_USR_FBSD92_ENV 1
+#define AFS_USR_FBSD93_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
diff --git a/src/config/param.generic_fbsd.h b/src/config/param.generic_fbsd.h
new file mode 100644 (file)
index 0000000..627d25e
--- /dev/null
@@ -0,0 +1,161 @@
+#ifndef        AFS_PARAM_COMMON_H
+#define        AFS_PARAM_COMMON_H
+
+#define AFSLITTLE_ENDIAN       1
+#define AFS_HAVE_FFS           1       /* Use system's ffs. */
+#define AFS_VM_RDWR_ENV                1       /* read/write implemented via VM */
+
+#ifndef UKERNEL
+/* This section for kernel libafs compiles only */
+
+#ifndef IGNORE_STDS_H
+#include <sys/param.h>
+#endif
+
+#define AFS_XBSD_ENV           1               /* {Free,Open,Net}BSD */
+#define AFS_X86_XBSD_ENV       1
+
+#define AFS_NAMEI_ENV          1       /* User space interface to file system */
+#define AFS_64BIT_CLIENT       1
+#define AFS_64BIT_IOPS_ENV     1       /* Needed for NAMEI */
+#define AFS_FBSD_ENV           1
+#define AFS_X86_FBSD_ENV       1
+#define AFS_X86_ENV            1
+#undef AFS_NONFSTRANS
+#define AFS_NONFSTRANS         1
+#define FTRUNC O_TRUNC
+
+#define IUPD 0x0010
+#define IACC 0x0020
+#define ICHG 0x0040
+#define IMOD 0x0080
+
+#define IN_LOCK(ip) lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
+                           NULL, curproc)
+#define IN_UNLOCK(ip) lockmgr(&ip->i_lock, LK_RELEASE, \
+                             NULL, curproc)
+
+#include <afs/afs_sysnames.h>
+
+#define AFS_VFS_ENV            1
+#define AFS_VFSINCL_ENV                1
+#define AFS_GREEDY43_ENV       1
+#define AFS_ENV                        1
+
+#define AFS_SYSCALL            339
+#define AFS_MOUNT_AFS          "afs"
+
+#ifndef MOUNT_UFS
+#define MOUNT_UFS "ufs"
+#endif
+
+#ifndef        MOUNT_AFS
+#define        MOUNT_AFS AFS_MOUNT_AFS
+#endif
+
+#define RXK_LISTENER_ENV       1
+#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
+#define AFS_USE_GETTIMEOFDAY   1       /* use gettimeofday to implement rx clock */
+
+/* Extra kernel definitions (from kdefs file) */
+#ifdef _KERNEL
+#define AFS_GLOBAL_SUNLOCK     1
+#define        AFS_VFS34               1       /* What is VFS34??? */
+#define        afsio_iov               uio_iov
+#define        afsio_iovcnt            uio_iovcnt
+#define        afsio_offset            uio_offset
+#define        afsio_seg               uio_segflg
+#define        afsio_resid             uio_resid
+#define        AFS_UIOSYS              UIO_SYSSPACE
+#define        AFS_UIOUSER             UIO_USERSPACE
+#define        AFS_CLBYTES             CLBYTES
+#define        osi_GetTime(x)          microtime(x)
+#define AFS_KALLOC(x)          osi_fbsd_alloc((x), 1)
+#undef AFS_KALLOC_NOSLEEP
+#define        AFS_KALLOC_NOSLEEP(x)   osi_fbsd_alloc((x), 0)
+#define AFS_KFREE(x,y)         osi_fbsd_free((x))
+#define        v_count                 v_usecount
+#define v_vfsp                 v_mount
+#define vfs_bsize              mnt_stat.f_bsize
+#define vfs_fsid               mnt_stat.f_fsid
+#define va_nodeid              va_fileid
+#define vfs_vnodecovered       mnt_vnodecovered
+#define direct                 dirent
+#define vnode_t                        struct vnode
+
+#ifndef MUTEX_DEFAULT
+#define MUTEX_DEFAULT 0
+#endif /* MUTEX_DEFAULT */
+
+#ifndef SSYS
+#define SSYS 0x00002
+#endif /* SSYS */
+
+#define p_rcred p_ucred
+
+# if !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
+enum vcexcl { NONEXCL, EXCL };
+
+#  ifdef KERNEL
+#   ifndef MIN
+#    define MIN(A,B) ((A) < (B) ? (A) : (B))
+#   endif
+#   ifndef MAX
+#    define MAX(A,B) ((A) > (B) ? (A) : (B))
+#   endif
+#  endif /* KERNEL */
+
+# endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
+#endif /* _KERNEL */
+
+#else /* !defined(UKERNEL) */
+
+/* This section for user space compiles only */
+
+#define UKERNEL                        1       /* user space kernel */
+#define AFS_ENV                        1
+#define AFS_VFSINCL_ENV                1
+#define AFS_USR_FBSD_ENV       1
+#undef  AFS_NONFSTRANS
+#define AFS_NONFSTRANS         1
+
+#define AFS_MOUNT_AFS          "afs"   /* The name of the filesystem type. */
+#define AFS_SYSCALL            339
+#define AFS_NAMEI_ENV          1       /* User space interface to file system */
+#define AFS_64BIT_IOPS_ENV     1       /* Needed for NAMEI */
+#define AFS_USERSPACE_IP_ADDR  1
+#define RXK_LISTENER_ENV       1
+#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
+#define AFS_HAVE_STATVFS       1       /* System supports statvfs */
+
+#include <afs/afs_sysnames.h>
+
+#define        afsio_iov               uio_iov
+#define        afsio_iovcnt            uio_iovcnt
+#define        afsio_offset            uio_offset
+#define        afsio_seg               uio_segflg
+#define        afsio_fmode             uio_fmode
+#define        afsio_resid             uio_resid
+#define        AFS_UIOSYS              1
+#define        AFS_UIOUSER             UIO_USERSPACE
+#define        AFS_CLBYTES             MCLBYTES
+#define        AFS_MINCHANGE           2
+#define        VATTR_NULL              usr_vattr_null
+
+#define AFS_DIRENT
+#ifndef CMSERVERPREF
+#define CMSERVERPREF
+#endif
+
+#include <sys/param.h>
+#include <sys/types.h>
+#include <sys/mount.h>
+#include <sys/fcntl.h>
+#include <sys/uio.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <limits.h>
+
+#endif /* !defined(UKERNEL) */
+
+#endif /* AFS_COMMON_PARAM_H */
index eaabbdd88e1e8e47d11b0b2c15a17c392d6b7df7..0e898c4cea941eec5dabccd0fd91d6ffd11df5eb 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_100"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_100
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
+#define AFS_FBSD92_ENV 1
+#define AFS_FBSD93_ENV 1
 #define AFS_FBSD100_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
+#define AFS_X86_FBSD92_ENV 1
+#define AFS_X86_FBSD93_ENV 1
 #define AFS_X86_FBSD100_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD100_ENV    1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
+#define AFS_USR_FBSD92_ENV 1
+#define AFS_USR_FBSD93_ENV 1
+#define AFS_USR_FBSD100_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 25f5c733ec2596e0a37f011841b8f694c16c5b40..6224bf2aded442aa8060955abcf64666fcf2d772 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_101"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_101
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
+#define AFS_FBSD92_ENV 1
+#define AFS_FBSD93_ENV 1
 #define AFS_FBSD100_ENV 1
 #define AFS_FBSD101_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
+#define AFS_X86_FBSD92_ENV 1
+#define AFS_X86_FBSD93_ENV 1
 #define AFS_X86_FBSD100_ENV 1
 #define AFS_X86_FBSD101_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD100_ENV    1
-#define AFS_USR_FBSD101_ENV    1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
+#define AFS_USR_FBSD92_ENV 1
+#define AFS_USR_FBSD93_ENV 1
+#define AFS_USR_FBSD100_ENV 1
+#define AFS_USR_FBSD101_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index b9e11c6f04d00d8f0ebb5585dccbb3ac6b7924c5..066c842b054cd5b8aceb39b709feb1fd54c96364 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_110"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_110
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
+#define AFS_FBSD92_ENV 1
+#define AFS_FBSD93_ENV 1
 #define AFS_FBSD100_ENV 1
+#define AFS_FBSD101_ENV 1
 #define AFS_FBSD110_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
+#define AFS_X86_FBSD92_ENV 1
+#define AFS_X86_FBSD93_ENV 1
 #define AFS_X86_FBSD100_ENV 1
+#define AFS_X86_FBSD101_ENV 1
 #define AFS_X86_FBSD110_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD100_ENV    1
-#define AFS_USR_FBSD110_ENV    1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
+#define AFS_USR_FBSD92_ENV 1
+#define AFS_USR_FBSD93_ENV 1
+#define AFS_USR_FBSD100_ENV 1
+#define AFS_USR_FBSD101_ENV 1
+#define AFS_USR_FBSD110_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index df86a4741b82b21b78286e1ec9ac31bef1b68746..fb756e1a955ef82276cfd9f9e147dbbaf02d724a 100644 (file)
-#ifndef UKERNEL
-/* This section for kernel libafs compiles only */
-
 #ifndef        AFS_PARAM_H
 #define        AFS_PARAM_H
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
-#define AFS_FBSD50_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VM_RDWR_ENV        1
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
+/* Machine / Operating system information */
 #define SYS_NAME       "i386_fbsd_50"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_50
 
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-#define AFSLITTLE_ENDIAN 1
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
+#ifndef UKERNEL
+/* This section for kernel libafs compiles only */
 
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
+#define AFS_FBSD50_ENV 1
 
-#endif /* AFS_PARAM_H */
+#define AFS_X86_FBSD50_ENV 1
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#ifndef AFS_PARAM_H
-#define AFS_PARAM_H
-
-
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#include <afs/afs_sysnames.h>
+#define AFS_USR_FBSD50_ENV 1
 
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-/* Machine / Operating system information */
-#define SYS_NAME       "i386_fbsd_50"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_50
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <limits.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <netinet/in.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
+#endif /* !defined(UKERNEL) */
 
 #endif /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
index fccf77af9447849bded223022a1daa20c5718809..65e9b47bc82878a7dcc8a981ab9bfbc61d2a86b0 100644 (file)
-#ifndef UKERNEL
-/* This section for kernel libafs compiles only */
-
 #ifndef        AFS_PARAM_H
 #define        AFS_PARAM_H
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT       1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
-#define AFS_FBSD50_ENV 1
-#define AFS_FBSD51_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VM_RDWR_ENV        1
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
+/* Machine / Operating system information */
 #define SYS_NAME       "i386_fbsd_51"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_51
 
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-#define AFSLITTLE_ENDIAN 1
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
+#ifndef UKERNEL
+/* This section for kernel libafs compiles only */
 
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
+#define AFS_FBSD50_ENV 1
+#define AFS_FBSD51_ENV 1
 
-#endif /* AFS_PARAM_H */
+#define AFS_X86_FBSD50_ENV 1
+#define AFS_X86_FBSD51_ENV 1
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#ifndef AFS_PARAM_H
-#define AFS_PARAM_H
-
-
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#include <afs/afs_sysnames.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
 
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-/* Machine / Operating system information */
-#define SYS_NAME       "i386_fbsd_51"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_51
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <limits.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <netinet/in.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
+#endif /* !defined(UKERNEL) */
 
 #endif /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
index bb831a8e93690477e446bdc98af5cc4aaca7404a..8c2caa20b809383190f9664e10acf498eb22e48f 100644 (file)
-#ifndef UKERNEL
-/* This section for kernel libafs compiles only */
-
 #ifndef        AFS_PARAM_H
 #define        AFS_PARAM_H
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
+/* Machine / Operating system information */
+#define SYS_NAME       "i386_fbsd_52"
+#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_52
 
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
+#ifndef UKERNEL
+/* This section for kernel libafs compiles only */
 
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VM_RDWR_ENV        1
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-#define SYS_NAME       "i386_fbsd_52"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_52
-
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-#define AFSLITTLE_ENDIAN 1
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
 
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
-
-#endif /* AFS_PARAM_H */
+#define AFS_X86_FBSD50_ENV 1
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#ifndef AFS_PARAM_H
-#define AFS_PARAM_H
-
-
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#include <afs/afs_sysnames.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
 
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-/* Machine / Operating system information */
-#define SYS_NAME       "i386_fbsd_52"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_52
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <limits.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <netinet/in.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
+#endif /* !defined(UKERNEL) */
 
 #endif /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
index d4c5178befd934cf03dc53f2965c562eb72504a3..eda7899d257f81b9613fd20a622cb23712d28977 100644 (file)
 #ifndef        AFS_PARAM_H
 #define        AFS_PARAM_H
 
+/* Machine / Operating system information */
+#define SYS_NAME       "i386_fbsd_53"
+#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_53
+
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD53_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VM_RDWR_ENV        1
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-#define SYS_NAME       "i386_fbsd_53"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_53
-
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
 
-#define AFSLITTLE_ENDIAN 1
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
+#define AFS_X86_FBSD50_ENV 1
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-/* Machine / Operating system information */
-#include <afs/afs_sysnames.h>
-#define SYS_NAME       "i386_fbsd_53"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_53
-
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <limits.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <netinet/in.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index cc53841596d1bd4041e64e38940c4bffbfcaa1e5..f059f4d17747c11c8366dcc8ef38eff01c3757b2 100644 (file)
 #ifndef        AFS_PARAM_H
 #define        AFS_PARAM_H
 
+/* Machine / Operating system information */
+#define SYS_NAME       "i386_fbsd_60"
+#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_60
+
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD53_ENV 1
 #define AFS_FBSD60_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VM_RDWR_ENV        1
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-#define SYS_NAME       "i386_fbsd_60"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_60
-
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
 
-#define AFSLITTLE_ENDIAN 1
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
+#define AFS_X86_FBSD50_ENV 1
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-/* Machine / Operating system information */
-#include <afs/afs_sysnames.h>
-#define SYS_NAME       "i386_fbsd_60"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_60
-
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <limits.h>
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <netinet/in.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 46f2e2e5daea5d74b92b33a9ad3f6dfa11f036da..778dabf72b9918f064098e9a386b7ef6fb8d3925 100644 (file)
 #define SYS_NAME       "i386_fbsd_61"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_61
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD53_ENV 1
 #define AFS_FBSD60_ENV 1
 #define AFS_FBSD61_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
 
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
+#define AFS_X86_FBSD50_ENV 1
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 3bfecba9c0cf7c1d82e8cfba3d056bb1819c09fe..347b7ac17504aab7d41b1b272410915c16390f6c 100644 (file)
@@ -5,26 +5,9 @@
 #define SYS_NAME       "i386_fbsd_62"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_62
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-
-
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD60_ENV 1
 #define AFS_FBSD61_ENV 1
 #define AFS_FBSD62_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
 #define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD62_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 2c2ea71907162791edc237ba8e5bfb6f48283dbf..ce73fd08c36089e4d1332112459fca15a79e7e0e 100644 (file)
@@ -5,26 +5,11 @@
 #define SYS_NAME       "i386_fbsd_70"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_70
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD61_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index f2bbdd4acd5661aa32a471bbf2d3148855f299d7..78e8c01709c753a798adb106f6cab3a253c2e3f7 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_71"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_71
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index ed658e1a969fbab9e45def837668f61446d3bbe2..d12bf5470efc521970025da5d4ffd1b03d1f66b9 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_72"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_72
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
 #define AFS_FBSD72_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
 #define AFS_X86_FBSD72_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD72_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index caab1c885365516ac6b41ca3fc3dafb0bbfbea59..42978576ac469e59ffc05c84978b14e33bd03490 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_73"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_73
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD71_ENV 1
 #define AFS_FBSD72_ENV 1
 #define AFS_FBSD73_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
 #define AFS_X86_FBSD72_ENV 1
 #define AFS_X86_FBSD73_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD72_ENV     1
-#define AFS_USR_FBSD73_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 8eef514be75d8813558faad1716c133eedc350bd..c74133fab7f1b7b06f403a669c9c8cfce0bd79a5 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_74"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_74
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD72_ENV 1
 #define AFS_FBSD73_ENV 1
 #define AFS_FBSD74_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
 #define AFS_X86_FBSD72_ENV 1
-#define AFS_X86_FBSD73_ENV 1
 #define AFS_X86_FBSD74_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD72_ENV     1
-#define AFS_USR_FBSD73_ENV     1
-#define AFS_USR_FBSD74_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD74_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 55aeaaa04672e733a01cb8564cbc6163c0ccad9a..02a52d3634f95baedc9c6484abe91532be42cb44 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_80"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_80
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 94992195651aad93e065865965ca4f60b3002fd8..5112efe301e8f34984e59c2479905fde7b055788 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_81"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_81
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 82fa6dcb38c2fc70ec5b639a6bac8052255f6b7a..12f15c4925e2c72e6fc81c306896f6f18cb71819 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_82"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_82
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
 #define AFS_FBSD82_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
 #define AFS_X86_FBSD82_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD82_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index d5b1961d83f3f9fe7bde5fcda0339c95ec0cd14f..9116291d8fe616a45f802367bed2e1a673a3e5e7 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_83"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_83
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
 #define AFS_FBSD82_ENV 1
 #define AFS_FBSD83_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
 #define AFS_X86_FBSD82_ENV 1
 #define AFS_X86_FBSD83_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD82_ENV     1
-#define AFS_USR_FBSD83_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index c16b403cc4e0d448490498085793065acc9e9a8c..5e6eab937a02b9977205d2c936bf260e847366af 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_84"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_84
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
 #define AFS_FBSD82_ENV 1
 #define AFS_FBSD83_ENV 1
 #define AFS_FBSD84_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
 #define AFS_X86_FBSD82_ENV 1
 #define AFS_X86_FBSD83_ENV 1
 #define AFS_X86_FBSD84_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD82_ENV     1
-#define AFS_USR_FBSD83_ENV     1
-#define AFS_USR_FBSD84_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 231bf3674fc63a9b079973f5d9716fb6d11e04be..c35cc244662f1ac4b8d4024fad9a9c7f696849c4 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_90"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_90
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index a4dc2b14aed3a6e61c74fbd4efaf260907056a06..9ab6de4d3c9fc669d8df1ac9d740ecde88ce7666 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_91"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_91
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 92a71e6668211809d77320a4f494d10f2e59c570..d084b58b30d49da4f03cea89a1422fd771a9c09d 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_92"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_92
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
 #define AFS_FBSD92_ENV 1
-#define AFS_X86_FBSD_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
 #define AFS_X86_FBSD92_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                                NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                                NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD92_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
+#define AFS_USR_FBSD92_ENV 1
 
 #endif /* !defined(UKERNEL) */
 
index 774d65f61e47e37acb7af08b3a57ee2d59d6f498..39086a7dd6057ffde07136f1e125dbabb647de8d 100644 (file)
@@ -5,27 +5,11 @@
 #define SYS_NAME       "i386_fbsd_93"
 #define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_93
 
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    1  /* System does support statvfs */
-#define AFS_VM_RDWR_ENV            1   /* read/write implemented via VM */
-#define AFS_FAKEOPEN_ENV    1   /* call afs_FakeOpen as if !AFS_VM_RDWR */
-
+#define AFS_FAKEOPEN_ENV 1     /* call afs_FakeOpen as if !AFS_VM_RDWR */
 
 #ifndef UKERNEL
 /* This section for kernel libafs compiles only */
 
-#ifndef IGNORE_STDS_H
-#include <sys/param.h>
-#endif
-
-#define AFS_XBSD_ENV 1         /* {Free,Open,Net}BSD */
-#define AFS_X86_XBSD_ENV 1
-
-#define AFS_NAMEI_ENV     1    /* User space interface to file system */
-#define AFS_64BIT_CLIENT 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD62_ENV 1
 #define AFS_FBSD70_ENV 1
 #define AFS_FBSD71_ENV 1
+#define AFS_FBSD72_ENV 1
+#define AFS_FBSD73_ENV 1
+#define AFS_FBSD74_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
+#define AFS_FBSD82_ENV 1
+#define AFS_FBSD83_ENV 1
+#define AFS_FBSD84_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_FBSD91_ENV 1
 #define AFS_FBSD92_ENV 1
-#define        AFS_FBSD93_ENV 1
-#define AFS_X86_FBSD_ENV 1
+#define AFS_FBSD93_ENV 1
+
 #define AFS_X86_FBSD50_ENV 1
-#define AFS_X86_FBSD60_ENV 1 /* added at 70--ie, some changes should port <-- */
+#define AFS_X86_FBSD51_ENV 1
+#define AFS_X86_FBSD52_ENV 1
+#define AFS_X86_FBSD53_ENV 1
+#define AFS_X86_FBSD60_ENV 1
+#define AFS_X86_FBSD61_ENV 1
 #define AFS_X86_FBSD62_ENV 1
 #define AFS_X86_FBSD70_ENV 1
 #define AFS_X86_FBSD71_ENV 1
+#define AFS_X86_FBSD72_ENV 1
+#define AFS_X86_FBSD74_ENV 1
 #define AFS_X86_FBSD80_ENV 1
 #define AFS_X86_FBSD81_ENV 1
+#define AFS_X86_FBSD82_ENV 1
+#define AFS_X86_FBSD83_ENV 1
+#define AFS_X86_FBSD84_ENV 1
 #define AFS_X86_FBSD90_ENV 1
 #define AFS_X86_FBSD91_ENV 1
 #define AFS_X86_FBSD92_ENV 1
-#define        AFS_X86_FBSD93_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define FTRUNC O_TRUNC
-
-#define IUPD 0x0010
-#define IACC 0x0020
-#define ICHG 0x0040
-#define IMOD 0x0080
-
-#define IN_LOCK(ip)     lockmgr(&ip->i_lock, LK_EXCLUSIVE, \
-                               NULL, curproc)
-#define IN_UNLOCK(ip)   lockmgr(&ip->i_lock, LK_RELEASE, \
-                               NULL, curproc)
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-#define AFS_VFSINCL_ENV 1
-#define AFS_GREEDY43_ENV       1
-#define AFS_ENV        1
-
-#define AFS_SYSCALL    339
-#define AFS_MOUNT_AFS  "afs"
-
-#ifndef MOUNT_UFS
-#define MOUNT_UFS "ufs"
-#endif
-
-#ifndef        MOUNT_AFS
-#define        MOUNT_AFS AFS_MOUNT_AFS
-#endif
-
-#define RXK_LISTENER_ENV 1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-#define AFS_USE_GETTIMEOFDAY    1      /* use gettimeofday to implement rx clock */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef _KERNEL
-#define AFS_GLOBAL_SUNLOCK        1
-#define        AFS_VFS34       1       /* What is VFS34??? */
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     CLBYTES
-#define        osi_GetTime(x)  microtime(x)
-#define AFS_KALLOC(x)   osi_fbsd_alloc((x), 1)
-#undef AFS_KALLOC_NOSLEEP
-#define        AFS_KALLOC_NOSLEEP(x) osi_fbsd_alloc((x), 0)
-#define AFS_KFREE(x,y)  osi_fbsd_free((x))
-#define        v_count         v_usecount
-#define v_vfsp         v_mount
-#define vfs_bsize      mnt_stat.f_bsize
-#define vfs_fsid       mnt_stat.f_fsid
-#define va_nodeid      va_fileid
-#define vfs_vnodecovered mnt_vnodecovered
-#define direct         dirent
-#define vnode_t                struct vnode
-
-#ifndef MUTEX_DEFAULT
-#define MUTEX_DEFAULT   0
-#endif /* MUTEX_DEFAULT */
-
-#ifndef SSYS
-#define SSYS            0x00002
-#endif /* SSYS */
-
-#define p_rcred         p_ucred
-
-#if    !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__)
-enum vcexcl { NONEXCL, EXCL };
-
-#ifdef KERNEL
-#ifndef MIN
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#endif
-#ifndef MAX
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
-#endif
-#endif /* KERNEL */
-
-#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */
-#endif /* _KERNEL */
+#define AFS_X86_FBSD93_ENV 1
 
 #else /* !defined(UKERNEL) */
 
 /* This section for user space compiles only */
 
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_ENV                        1
-#define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD50_ENV     1
-#define AFS_USR_FBSD51_ENV     1
-#define AFS_USR_FBSD52_ENV     1
-#define AFS_USR_FBSD53_ENV     1
-#define AFS_USR_FBSD60_ENV     1
-#define AFS_USR_FBSD61_ENV     1
-#define AFS_USR_FBSD70_ENV     1
-#define AFS_USR_FBSD71_ENV     1
-#define AFS_USR_FBSD80_ENV     1
-#define AFS_USR_FBSD81_ENV     1
-#define AFS_USR_FBSD90_ENV     1
-#define AFS_USR_FBSD91_ENV     1
-#define AFS_USR_FBSD92_ENV     1
-#define        AFS_USR_FBSD93_ENV      1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 339
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#define AFS_USERSPACE_IP_ADDR 1
-#define RXK_LISTENER_ENV      1
-#define AFS_GCPAGS           0 /* if nonzero, garbage collect PAGs */
-
-#include <afs/afs_sysnames.h>
-
-#define        afsio_iov       uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_offset
-#define        afsio_seg       uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      1
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        VATTR_NULL      usr_vattr_null
-
-#define AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-
-#include <sys/param.h>
-#include <sys/types.h>
-#include <sys/mount.h>
-#include <sys/fcntl.h>
-#include <sys/uio.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <limits.h>
+#define AFS_USR_FBSD50_ENV 1
+#define AFS_USR_FBSD51_ENV 1
+#define AFS_USR_FBSD52_ENV 1
+#define AFS_USR_FBSD53_ENV 1
+#define AFS_USR_FBSD60_ENV 1
+#define AFS_USR_FBSD61_ENV 1
+#define AFS_USR_FBSD62_ENV 1
+#define AFS_USR_FBSD70_ENV 1
+#define AFS_USR_FBSD71_ENV 1
+#define AFS_USR_FBSD72_ENV 1
+#define AFS_USR_FBSD73_ENV 1
+#define AFS_USR_FBSD80_ENV 1
+#define AFS_USR_FBSD81_ENV 1
+#define AFS_USR_FBSD82_ENV 1
+#define AFS_USR_FBSD83_ENV 1
+#define AFS_USR_FBSD84_ENV 1
+#define AFS_USR_FBSD90_ENV 1
+#define AFS_USR_FBSD91_ENV 1
+#define AFS_USR_FBSD92_ENV 1
+#define AFS_USR_FBSD93_ENV 1
 
 #endif /* !defined(UKERNEL) */