Kill FBSD4X with fire
authorBen Kaduk <kaduk@mit.edu>
Sun, 16 May 2010 04:43:35 +0000 (00:43 -0400)
committerDerrick Brashear <shadow@dementia.org>
Mon, 17 May 2010 12:36:29 +0000 (05:36 -0700)
We haven't even pretended to work on the 4.X series for quite some
time, and keeping this code around just makes things (slightly)
harder to read.
AFS_FBSD_ENV is now equivalent to AFS_FBSD50_ENV (though the
latter should not be used).
Leave the fbsd_4 sysnames in afs_sysnames.h for archival purposes.

Change-Id: Ibebda92967ca26c3dd4bf0b2cc6a66ae3a94d0ff
Reviewed-on: http://gerrit.openafs.org/1968
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

52 files changed:
README
acinclude.m4
src/afs/FBSD/osi_file.c
src/afs/FBSD/osi_groups.c
src/afs/FBSD/osi_inode.c
src/afs/FBSD/osi_machdep.h
src/afs/FBSD/osi_misc.c
src/afs/FBSD/osi_vcache.c
src/afs/FBSD/osi_vfsops.c
src/afs/FBSD/osi_vnodeops.c
src/afs/VNOPS/afs_vnop_read.c
src/afs/VNOPS/afs_vnop_strategy.c
src/afs/VNOPS/afs_vnop_write.c
src/afs/afs_init.c
src/afs/afs_osi.c
src/afs/afs_osi.h
src/afs/afs_osidnlc.c
src/afs/afs_pioctl.c
src/afs/afs_syscall.c
src/afs/afs_user.c
src/afs/afs_vcache.c
src/afs/sysincludes.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_80.h
src/config/param.amd64_fbsd_81.h
src/config/param.amd64_fbsd_90.h
src/config/param.i386_fbsd_42.h [deleted file]
src/config/param.i386_fbsd_43.h [deleted file]
src/config/param.i386_fbsd_44.h [deleted file]
src/config/param.i386_fbsd_45.h [deleted file]
src/config/param.i386_fbsd_46.h [deleted file]
src/config/param.i386_fbsd_47.h [deleted file]
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_80.h
src/config/param.i386_fbsd_81.h
src/config/param.i386_fbsd_90.h
src/libafs/MakefileProto.FBSD.in
src/libuafs/MakefileProto.FBSD.in
src/rx/FBSD/rx_kmutex.h
src/rx/FBSD/rx_knet.c
src/rx/rx_kcommon.c
src/rx/rx_kcommon.h

diff --git a/README b/README
index 350aaed..19fd2f2 100644 (file)
--- a/README
+++ b/README
@@ -40,11 +40,13 @@ A  Configuring
       hp_ux11i, hp_ux110, hp_ux1123 (See notes below for information on
          getting missing header)
       hp_ux102 (Client port possible, but db servers and utilities work)
-      i386_fbsd_42, i386_fbsd_43, i386_fbsd_44, i386_fbsd_45,
-         i386_fbsd_46, i386_fbsd_47, i386_fbsd_50, i386_fbsd_51,
-         i386_fbsd_52, i386_fbsd_53, i386_fbsd_60, i386_fbsd_61,
-         i386_fbsd_62, i386_fbsd_70, i386_fbsd_80
-         (client may work on 70)
+      i386_fbsd_50, i386_fbsd_51, i386_fbsd_52, i386_fbsd_53,
+         i386_fbsd_60, i386_fbsd_61, i386_fbsd_62, i386_fbsd_70,
+         i386_fbsd_80, i386_fbsd_81, i386_fbsd_90, amd64_fbsd_50,
+         amd64_fbsd_51, amd64_fbsd_52, amd64_fbsd_53, amd64_fbsd_60,
+         amd64_fbsd_61, amd64_fbsd_62, amd64_fbsd_70, amd64_fbsd_80,
+         amd64_fbsd_81, amd64_fbsd_90
+         (client may work on 70 and later)
       i386_linux22, i386_linux24, i386_linux26
       i386_nbsd15, i386_nbsd16, i386_nbsd20, i386_nbsd21, i386_nbsd30,
          i386_nbsd40
index 2dcc7c2..2379bfa 100644 (file)
@@ -1087,9 +1087,6 @@ if test "x$with_bsd_kernel_build" != "x"; then
        BSD_KERNEL_BUILD="$with_bsd_kernel_build"
 else
        case $AFS_SYSNAME in
-               *_fbsd_4?)
-                       BSD_KERNEL_BUILD="${BSD_KERNEL_PATH}/compile/GENERIC"
-                       ;;
                *_fbsd_*)
                        BSD_KERNEL_BUILD="${BSD_KERNEL_PATH}/${HOST_CPU}/compile/GENERIC"
                        ;;
index 4b38d70..394a45c 100644 (file)
@@ -38,11 +38,7 @@ osi_UFSOpen(afs_dcache_id_t *ainode)
        osi_Panic("UFSOpen called for non-UFS cache\n");
     afile = (struct osi_file *)osi_AllocSmallSpace(sizeof(struct osi_file));
     AFS_GUNLOCK();
-#if defined(AFS_FBSD50_ENV)
     code = VFS_VGET(afs_cacheVfsp, (ino_t) ainode->ufs, LK_EXCLUSIVE, &vp);
-#else
-    code = VFS_VGET(afs_cacheVfsp, (ino_t) ainode->ufs, &vp);
-#endif
     AFS_GLOCK();
     if (code == 0 && vp->v_type == VNON)
        code = ENOENT;
index 3c54d27..ef62478 100644 (file)
@@ -17,9 +17,7 @@
 #include <afsconfig.h>
 #include "afs/param.h"
 #include <sys/param.h>
-#ifdef AFS_FBSD50_ENV
 #include <sys/sysproto.h>
-#endif
 
 
 #include "afs/sysincludes.h"
index cf73f67..5107894 100644 (file)
@@ -24,9 +24,7 @@
 #include <sys/queue.h>
 #include <sys/lock.h>
 #include <ufs/ufs/dinode.h>
-#if defined(AFS_FBSD50_ENV)
 #include <ufs/ufs/extattr.h>
-#endif
 #include <ufs/ufsmount.h>
 
 int
@@ -50,11 +48,7 @@ getinode(fs, dev, inode, ipp, perror)
        register struct ufsmount *ump;
        register struct mount *mp;
 
-#if defined(AFS_FBSD50_ENV)
        mtx_lock(&mountlist_mtx);
-#else
-       simple_lock(&mountlist_slock);
-#endif
        if ((mp = TAILQ_FIRST(&mountlist)) != NULL)
            do {
                /*
@@ -72,19 +66,11 @@ getinode(fs, dev, inode, ipp, perror)
                }
                mp = TAILQ_NEXT(mp, mnt_list);
            } while (mp != TAILQ_FIRST(&mountlist));
-#if defined(AFS_FBSD50_ENV)
        mtx_unlock(&mountlist_mtx);
-#else
-       simple_unlock(&mountlist_slock);
-#endif
        if (!fs)
            return (ENXIO);
     }
-#if defined(AFS_FBSD50_ENV)
     code = VFS_VGET(fs, inode, 0, &vp);
-#else
-    code = VFS_VGET(fs, inode, &vp);
-#endif
     if (code != 0) {
        *perror = BAD_IGET;
        return code;
index eddb35b..15cea31 100644 (file)
@@ -21,9 +21,7 @@
 
 #include <sys/lock.h>
 #include <sys/time.h>
-#if defined(AFS_FBSD50_ENV)
 #include <sys/mutex.h>
-#endif
 #include <sys/vnode.h>
 #if defined(AFS_FBSD80_ENV)
 #include <sys/priv.h>
@@ -66,6 +64,7 @@ extern int (**afs_vnodeop_p) ();
 #else
 #define osi_vinvalbuf(vp, flags, slpflag, slptimeo) \
   vinvalbuf((vp), (flags), (curthread), (slpflag), (slptimeo))
+#define osi_curproc() (curthread)
 #endif
 
 #undef gop_lookupname
index e433602..6c2876d 100644 (file)
@@ -27,11 +27,9 @@ osi_lookupname(char *aname, enum uio_seg seg, int followlink,
     struct nameidata n;
     int flags, error, glocked;
 
-#ifdef AFS_FBSD50_ENV
     glocked = ISAFS_GLOCK();
     if (glocked)
        AFS_GUNLOCK();
-#endif
 
     flags = 0;
     flags = LOCKLEAF;
@@ -44,10 +42,8 @@ osi_lookupname(char *aname, enum uio_seg seg, int followlink,
 #endif
     NDINIT(&n, LOOKUP, flags, seg, aname, curthread);
     if ((error = namei(&n)) != 0) {
-#ifdef AFS_FBSD50_ENV
        if (glocked)
            AFS_GLOCK();
-#endif
        return error;
     }
     *vpp = n.ni_vp;
@@ -58,10 +54,8 @@ osi_lookupname(char *aname, enum uio_seg seg, int followlink,
     VOP_UNLOCK(n.ni_vp, 0, curthread);
 #endif
     NDFREE(&n, NDF_ONLY_PNBUF);
-#ifdef AFS_FBSD50_ENV
     if (glocked)
        AFS_GLOCK();
-#endif
     return 0;
 }
 
@@ -71,27 +65,7 @@ osi_lookupname(char *aname, enum uio_seg seg, int followlink,
 void
 afs_osi_SetTime(osi_timeval_t * atv)
 {
-#ifdef AFS_FBSD50_ENV
     printf("afs attempted to set clock; use \"afsd -nosettime\"\n");
-#else
-    struct timespec ts;
-    struct timeval tv, delta;
-    int s;
-
-    AFS_GUNLOCK();
-    s = splclock();
-    microtime(&tv);
-    delta = *atv;
-    timevalsub(&delta, &tv);
-    ts.tv_sec = atv->tv_sec;
-    ts.tv_nsec = atv->tv_usec * 1000;
-    set_timecounter(&ts);
-    (void)splsoftclock();
-    lease_updatetime(delta.tv_sec);
-    splx(s);
-    resettodr();
-    AFS_GLOCK();
-#endif
 }
 
 /*
@@ -101,7 +75,6 @@ void *
 osi_fbsd_alloc(size_t size, int dropglobal)
 {
        void *rv;
-#ifdef AFS_FBSD50_ENV
        int glocked;
 
        if (dropglobal) {
@@ -112,7 +85,6 @@ osi_fbsd_alloc(size_t size, int dropglobal)
            if (glocked)
                AFS_GLOCK();
        } else
-#endif
            rv = malloc(size, M_AFS, M_NOWAIT);
 
        return (rv);
index 9d6e2aa..dd295f2 100644 (file)
@@ -70,10 +70,8 @@ osi_AttachVnode(struct vcache *avc, int seq) {
     AFS_GUNLOCK();
 #if defined(AFS_FBSD60_ENV)
     if (getnewvnode(MOUNT_AFS, afs_globalVFS, &afs_vnodeops, &vp))
-#elif defined(AFS_FBSD50_ENV)
-    if (getnewvnode(MOUNT_AFS, afs_globalVFS, afs_vnodeop_p, &vp))
 #else
-    if (getnewvnode(VT_AFS, afs_globalVFS, afs_vnodeop_p, &vp))
+    if (getnewvnode(MOUNT_AFS, afs_globalVFS, afs_vnodeop_p, &vp))
 #endif
        panic("afs getnewvnode");       /* can't happen */
 #ifdef AFS_FBSD70_ENV
index 83d6ce5..82875cf 100644 (file)
@@ -224,22 +224,15 @@ tryagain:
     if (tvp) {
        struct vnode *vp = AFSTOV(tvp);
 
-#ifdef AFS_FBSD50_ENV
        ASSERT_VI_UNLOCKED(vp, "afs_root");
-#endif
        AFS_GUNLOCK();
        /*
         * I'm uncomfortable about this.  Shouldn't this happen at a
         * higher level, and shouldn't we busy the top-level directory
         * to prevent recycling?
         */
-#ifdef AFS_FBSD50_ENV
        error = vget(vp, LK_EXCLUSIVE | LK_RETRY, td);
        vp->v_vflag |= VV_ROOT;
-#else
-       error = vget(vp, LK_EXCLUSIVE | LK_RETRY, p);
-       vp->v_flag |= VROOT;
-#endif
        AFS_GLOCK();
        if (error != 0)
                goto tryagain;
@@ -332,8 +325,6 @@ struct vfsops afs_vfsops = {
     afs_init,
     afs_uninit,
     vfs_stdextattrctl,
-#ifdef AFS_FBSD50_ENV
     vfs_stdsysctl,
-#endif
 };
 #endif
index 6dca7f4..779f4dc 100644 (file)
@@ -54,9 +54,6 @@
 #include <sys/malloc.h>
 #include <sys/namei.h>
 #include <sys/unistd.h>
-#ifndef AFS_FBSD50_ENV
-#include <vm/vm_zone.h>
-#endif
 #include <vm/vm_page.h>
 #include <vm/vm_object.h>
 #include <vm/vm_pager.h>
@@ -158,9 +155,6 @@ int afs_vop_putpages(struct vop_putpages_args *);
 int afs_vop_ioctl(struct vop_ioctl_args *);
 static int afs_vop_pathconf(struct vop_pathconf_args *);
 int afs_vop_poll(struct vop_poll_args *);
-#ifndef AFS_FBSD50_ENV
-int afs_vop_mmap(struct vop_mmap_args *);
-#endif
 int afs_vop_fsync(struct vop_fsync_args *);
 int afs_vop_remove(struct vop_remove_args *);
 int afs_vop_link(struct vop_link_args *);
@@ -186,9 +180,6 @@ struct vnodeopv_entry_desc afs_vnodeop_entries[] = {
     {&vop_access_desc, (vop_t *) afs_vop_access},      /* access */
     {&vop_advlock_desc, (vop_t *) afs_vop_advlock},    /* advlock */
     {&vop_bmap_desc, (vop_t *) afs_vop_bmap},  /* bmap */
-#ifndef AFS_FBSD50_ENV
-    {&vop_bwrite_desc, (vop_t *) vop_stdbwrite},
-#endif
     {&vop_close_desc, (vop_t *) afs_vop_close},        /* close */
     {&vop_createvobject_desc, (vop_t *) vop_stdcreatevobject},
     {&vop_destroyvobject_desc, (vop_t *) vop_stddestroyvobject},
@@ -204,9 +195,6 @@ struct vnodeopv_entry_desc afs_vnodeop_entries[] = {
     {&vop_lookup_desc, (vop_t *) afs_vop_lookup},      /* lookup */
     {&vop_mkdir_desc, (vop_t *) afs_vop_mkdir},        /* mkdir */
     {&vop_mknod_desc, (vop_t *) afs_vop_mknod},        /* mknod */
-#ifndef AFS_FBSD50_ENV
-    {&vop_mmap_desc, (vop_t *) afs_vop_mmap},  /* mmap */
-#endif
     {&vop_open_desc, (vop_t *) afs_vop_open},  /* open */
     {&vop_pathconf_desc, (vop_t *) afs_vop_pathconf},  /* pathconf */
     {&vop_poll_desc, (vop_t *) afs_vop_poll},  /* select */
@@ -244,11 +232,6 @@ struct vnodeopv_desc afs_vnodeop_opv_desc =
 
 #define DROPNAME() FREE(name, M_TEMP)
 
-/* This is a bit of a cheat... */
-#ifdef AFS_FBSD50_ENV
-#define a_p a_td
-#endif
-
 #if defined(AFS_FBSD80_ENV)
 #define ma_vn_lock(vp, flags, p) (vn_lock(vp, flags))
 #define MA_VOP_LOCK(vp, flags, p) (VOP_LOCK(vp, flags))
@@ -761,9 +744,7 @@ afs_vop_getpages(struct vop_getpages_args *ap)
     struct vnode *vp;
     struct vcache *avc;
 
-#ifdef AFS_FBSD50_ENV
     GIANT_REQUIRED;
-#endif
     vp = ap->a_vp;
     avc = VTOAFS(vp);
     if ((object = vp->v_object) == NULL) {
@@ -780,10 +761,8 @@ afs_vop_getpages(struct vop_getpages_args *ap)
     {
        vm_page_t m = ap->a_m[ap->a_reqpage];
 
-#ifdef AFS_FBSD50_ENV
        VM_OBJECT_LOCK(object);
        vm_page_lock_queues();
-#endif
        if (m->valid != 0) {
            /* handled by vm_fault now        */
            /* vm_page_zero_invalid(m, TRUE); */
@@ -791,25 +770,19 @@ afs_vop_getpages(struct vop_getpages_args *ap)
                if (i != ap->a_reqpage)
                    vm_page_free(ap->a_m[i]);
            }
-#ifdef AFS_FBSD50_ENV
            vm_page_unlock_queues();
            VM_OBJECT_UNLOCK(object);
-#endif
            return (0);
        }
-#ifdef AFS_FBSD50_ENV
        vm_page_unlock_queues();
        VM_OBJECT_UNLOCK(object);
-#endif
     }
     bp = getpbuf(&afs_pbuf_freecnt);
 
     kva = (vm_offset_t) bp->b_data;
     pmap_qenter(kva, ap->a_m, npages);
-#ifdef AFS_FBSD50_ENV
     cnt.v_vnodein++;
     cnt.v_vnodepgsin += npages;
-#endif
 
     iov.iov_base = (caddr_t) kva;
     iov.iov_len = ap->a_count;
@@ -830,26 +803,20 @@ afs_vop_getpages(struct vop_getpages_args *ap)
     relpbuf(bp, &afs_pbuf_freecnt);
 
     if (code && (uio.uio_resid == ap->a_count)) {
-#ifdef AFS_FBSD50_ENV
        VM_OBJECT_LOCK(object);
        vm_page_lock_queues();
-#endif
        for (i = 0; i < npages; ++i) {
            if (i != ap->a_reqpage)
                vm_page_free(ap->a_m[i]);
        }
-#ifdef AFS_FBSD50_ENV
        vm_page_unlock_queues();
        VM_OBJECT_UNLOCK(object);
-#endif
        return VM_PAGER_ERROR;
     }
 
     size = ap->a_count - uio.uio_resid;
-#ifdef AFS_FBSD50_ENV
     VM_OBJECT_LOCK(object);
     vm_page_lock_queues();
-#endif
     for (i = 0, toff = 0; i < npages; i++, toff = nextoff) {
        vm_page_t m;
        nextoff = toff + PAGE_SIZE;
@@ -901,10 +868,8 @@ afs_vop_getpages(struct vop_getpages_args *ap)
            }
        }
     }
-#ifdef AFS_FBSD50_ENV
     vm_page_unlock_queues();
     VM_OBJECT_UNLOCK(object);
-#endif
     return 0;
 }
 
@@ -953,9 +918,7 @@ afs_vop_putpages(struct vop_putpages_args *ap)
     struct vnode *vp;
     struct vcache *avc;
 
-#ifdef AFS_FBSD50_ENV
     GIANT_REQUIRED;
-#endif
 
     vp = ap->a_vp;
     avc = VTOAFS(vp);
@@ -975,10 +938,8 @@ afs_vop_putpages(struct vop_putpages_args *ap)
 
     kva = (vm_offset_t) bp->b_data;
     pmap_qenter(kva, ap->a_m, npages);
-#ifdef AFS_FBSD50_ENV
     cnt.v_vnodeout++;
     cnt.v_vnodepgsout += ap->a_count;
-#endif
 
     iov.iov_base = (caddr_t) kva;
     iov.iov_len = ap->a_count;
@@ -1441,7 +1402,7 @@ afs_vop_inactive(ap)
     afs_InactiveVCache(VTOAFS(vp), 0); /* decrs ref counts */
     AFS_GUNLOCK();
 #ifndef AFS_FBSD80_ENV
-    MA_VOP_UNLOCK(vp, 0, ap->a_p);
+    MA_VOP_UNLOCK(vp, 0, ap->a_td);
 #endif
     return 0;
 }
index 6b5b509..5821243 100644 (file)
@@ -883,7 +883,7 @@ afs_UFSRead(register struct vcache *avc, struct uio *auio,
            code = VOP_READ(tfile->vnode, &tuio, 0, afs_osi_credp);
            VOP_UNLOCK(tfile->vnode, 0);
            AFS_GLOCK();
-#elif defined(AFS_FBSD50_ENV)
+#elif defined(AFS_FBSD_ENV)
            AFS_GUNLOCK();
            VOP_LOCK(tfile->vnode, LK_EXCLUSIVE, curthread);
            code = VOP_READ(tfile->vnode, &tuio, 0, afs_osi_credp);
index a79e52a..d860352 100644 (file)
@@ -61,7 +61,7 @@ int afs_ustrategy(register struct buf *abp)
     ReleaseReadLock(&tvc->lock);
     osi_Assert(credp);
 #endif
-#ifdef AFS_FBSD50_ENV
+#ifdef AFS_FBSD_ENV
     if (abp->b_iocmd == BIO_READ) {
 #else
     if ((abp->b_flags & B_READ) == B_READ) {
@@ -190,7 +190,7 @@ int afs_ustrategy(register struct buf *abp)
 #if defined (AFS_XBSD_ENV)
     if (code) {
        abp->b_error = code;
-#if !defined(AFS_FBSD50_ENV)
+#if !defined(AFS_FBSD_ENV)
        abp->b_flags |= B_ERROR;
 #endif
     }
@@ -200,7 +200,7 @@ int afs_ustrategy(register struct buf *abp)
     crfree(credp);
 #elif defined(AFS_FBSD60_ENV)
     (*abp->b_iodone)(abp);
-#elif defined(AFS_FBSD50_ENV)
+#elif defined(AFS_FBSD_ENV)
     biodone(&abp->b_io);
 #elif defined(AFS_XBSD_ENV)
     biodone(abp);
index da3ca8e..c12c327 100644 (file)
@@ -510,7 +510,7 @@ afs_UFSWrite(register struct vcache *avc, struct uio *auio, int aio,
        code = VOP_WRITE(tfile->vnode, &tuio, 0, afs_osi_credp);
        VOP_UNLOCK(tfile->vnode, 0);
        AFS_GLOCK();
-#elif defined(AFS_FBSD50_ENV)
+#elif defined(AFS_FBSD_ENV)
        AFS_GUNLOCK();
        VOP_LOCK(tfile->vnode, LK_EXCLUSIVE, curthread);
        code = VOP_WRITE(tfile->vnode, &tuio, 0, afs_osi_credp);
index 9ca08e3..b247bb6 100644 (file)
@@ -421,14 +421,10 @@ afs_InitCacheInfo(register char *afile)
 #elif defined(AFS_DARWIN80_ENV)
         afs_cacheVfsp = vnode_mount(filevp);
        if (afs_cacheVfsp && ((st = *(vfs_statfs(afs_cacheVfsp))),1))
-#elif defined(AFS_DARWIN_ENV)
-       if (!VFS_STATFS(filevp->v_mount, &st, current_proc()))
 #elif defined(AFS_FBSD80_ENV)
        if (!VFS_STATFS(filevp->v_mount, &st))
-#elif defined(AFS_FBSD50_ENV)
-       if (!VFS_STATFS(filevp->v_mount, &st, curthread))
-#elif defined(AFS_XBSD_ENV)
-       if (!VFS_STATFS(filevp->v_mount, &st, curproc))
+#elif defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
+       if (!VFS_STATFS(filevp->v_mount, &st, osi_curproc()))
 #else
        if (!VFS_STATFS(filevp->v_vfsp, &st))
 #endif /* SGI... */
index e482a63..ed018bc 100644 (file)
@@ -45,6 +45,7 @@ long afs_global_owner;
 #endif
 
 #if defined(AFS_DARWIN_ENV) 
+thread_t afs_global_owner;
 #ifdef AFS_DARWIN80_ENV
 lck_mtx_t  *afs_global_lock;
 #else
@@ -52,19 +53,14 @@ struct lock__bsd__ afs_global_lock;
 #endif
 #endif
 
-#if defined(AFS_XBSD_ENV) && !defined(AFS_FBSD50_ENV)
+#if defined(AFS_XBSD_ENV) && !defined(AFS_FBSD_ENV)
 struct lock afs_global_lock;
 afs_proc_t *afs_global_owner;
-#endif
-#ifdef AFS_FBSD50_ENV
+#elif defined(AFS_FBSD_ENV)
 struct mtx afs_global_mtx;
 struct thread *afs_global_owner;
 #endif
 
-#if defined(AFS_DARWIN_ENV)
-thread_t afs_global_owner;
-#endif /* AFS_DARWIN_ENV */
-
 #if defined(AFS_AIX41_ENV)
 simple_lock_data afs_global_lock;
 #endif
index ba5e84b..916a656 100644 (file)
@@ -13,7 +13,7 @@
 #include "h/types.h"
 #include "h/param.h"
 
-#ifdef AFS_FBSD50_ENV
+#ifdef AFS_FBSD_ENV
 #include <sys/condvar.h>
 #endif
 
@@ -194,7 +194,7 @@ typedef struct timeval osi_timeval_t;
  * is going on in the system.  So if ps cannot show thread IDs it is
  * likely to be the process ID instead.
  */
-#ifdef AFS_FBSD50_ENV
+#ifdef AFS_FBSD_ENV
 /* should use curthread, but 'ps' can't display it */
 #define osi_ThreadUnique()     (curproc->p_pid)
 #elif defined(AFS_LINUX_ENV)
index 83bc793..880702d 100644 (file)
@@ -285,7 +285,7 @@ osi_dnlc_lookup(struct vcache *adp, char *aname, int locktype)
            ma_critical_exit();
            return 0;
        }
-#elif defined(AFS_FBSD50_ENV)
+#elif defined(AFS_FBSD_ENV)
        /* can't sleep in a critical section */
        ma_critical_exit();
        osi_vnhold(tvc, 0);
index 0e170d9..57555d6 100644 (file)
@@ -15,7 +15,7 @@
 #ifdef AFS_OBSD_ENV
 #include "h/syscallargs.h"
 #endif
-#ifdef AFS_FBSD50_ENV
+#ifdef AFS_FBSD_ENV
 #include "h/sysproto.h"
 #endif
 #ifdef AFS_NBSD40_ENV
@@ -798,7 +798,7 @@ afs_xioctl(afs_proc_t *p, register struct ioctl_args *uap, register_t *retval)
     return (code);
 }
 #elif defined(AFS_XBSD_ENV)
-# if defined(AFS_FBSD50_ENV)
+# if defined(AFS_FBSD_ENV)
 #  define arg data
 int
 afs_xioctl(struct thread *td, register struct ioctl_args *uap,
@@ -863,10 +863,8 @@ afs_xioctl(afs_proc_t *p, register struct ioctl_args *uap, register_t *retval)
     }
 
     if (!ioctlDone) {
-# if defined(AFS_FBSD50_ENV)
+# if defined(AFS_FBSD_ENV)
        return ioctl(td, uap);
-# elif defined(AFS_FBSD_ENV)
-       return ioctl(p, uap);
 # elif defined(AFS_OBSD_ENV)
        code = sys_ioctl(p, uap, retval);
 # elif defined(AFS_NBSD_ENV)
@@ -953,7 +951,7 @@ afs_pioctl(struct pioctlargs *uap, rval_t * rvp)
 # endif
 }
 
-#elif defined(AFS_FBSD50_ENV)
+#elif defined(AFS_FBSD_ENV)
 int
 afs_pioctl(struct thread *td, void *args, int *retval)
 {
@@ -971,11 +969,7 @@ afs_pioctl(struct thread *td, void *args, int *retval)
 
 #elif defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
 int
-# if defined(AFS_FBSD_ENV)
-afs_pioctl(struct thread *td, void *args)
-# else
 afs_pioctl(afs_proc_t *p, void *args, int *retval)
-# endif
 {
     struct a {
        char *path;
index 1236b2d..b6425fa 100644 (file)
@@ -738,7 +738,7 @@ Afs_syscall()
            code =
                afs_syscall_pioctl(uap->parm1, uap->parm2, uap->parm3,
                                   uap->parm4, rvp, CRED());
-#elif defined(AFS_FBSD50_ENV)
+#elif defined(AFS_FBSD_ENV)
            code =
                afs_syscall_pioctl(uap->parm1, uap->parm2, uap->parm3,
                                   uap->parm4, p->td_ucred);
index 2bfac9b..fc09636 100644 (file)
@@ -639,7 +639,7 @@ afs_GCPAGs_perproc_func(afs_proc_t * pproc)
     afs_GCPAGs_cred_count++;
 
     pag = PagInCred(pcred);
-#if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD40_ENV) || defined(AFS_LINUX22_ENV)
+#if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_LINUX22_ENV)
     uid = (pag != NOPAG ? pag : afs_cr_uid(pcred));
 #elif defined(AFS_SUN510_ENV)
     uid = (pag != NOPAG ? pag : crgetruid(pcred));
index 9365aa5..f564d19 100644 (file)
@@ -1647,20 +1647,13 @@ afs_GetVCache(register struct VenusFid *afid, struct vrequest *areq,
        vinvalbuf(vp, V_SAVE, curthread, PINOD, 0);
        if (!iheldthelock)
            VOP_UNLOCK(vp, LK_EXCLUSIVE, curthread);
-#elif defined(AFS_FBSD50_ENV)
+#elif defined(AFS_FBSD_ENV)
        iheldthelock = VOP_ISLOCKED(vp, curthread);
        if (!iheldthelock)
            vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, curthread);
        vinvalbuf(vp, V_SAVE, osi_curcred(), curthread, PINOD, 0);
        if (!iheldthelock)
            VOP_UNLOCK(vp, LK_EXCLUSIVE, curthread);
-#elif defined(AFS_FBSD40_ENV)
-       iheldthelock = VOP_ISLOCKED(vp, curproc);
-       if (!iheldthelock)
-           vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, curproc);
-       vinvalbuf(vp, V_SAVE, osi_curcred(), curproc, PINOD, 0);
-       if (!iheldthelock)
-           VOP_UNLOCK(vp, LK_EXCLUSIVE, curproc);
 #elif defined(AFS_OBSD_ENV)
        iheldthelock = VOP_ISLOCKED(vp, curproc);
        if (!iheldthelock)
index 32e2848..71bfbcf 100644 (file)
@@ -313,7 +313,7 @@ typedef unsigned short etap_event_t;
 #  include "h/user.h"
 # endif /* AFS_SGI64_ENV */
 # define       MACH_USER_API   1
-# if defined(AFS_FBSD50_ENV)
+# if defined(AFS_FBSD_ENV)
 #  include "h/bio.h"
 #  include "h/filedesc.h"
 # endif
@@ -340,7 +340,7 @@ struct vfspage;             /* for vnode.h compiler warnings */
 #  endif
 # endif /* AFS_HPUX_ENV */
 # if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
-#  if defined(AFS_FBSD50_ENV)
+#  if defined(AFS_FBSD_ENV)
 struct vop_getwritemount_args;
 #  endif
 #  include <sys/uio.h>
@@ -355,11 +355,7 @@ struct vop_getwritemount_args;
 #  ifndef AFS_NBSD40_ENV
 #   include <sys/malloc.h>
 #  endif
-#  ifndef AFS_FBSD_ENV
-#   include <sys/ubc.h>
-#   define timeout_fcn_t mach_timeout_fcn_t
-#   include <kern/sched_prim.h>
-#  else
+#  ifdef AFS_FBSD_ENV
 MALLOC_DECLARE(M_AFS);
 #   include <ufs/ufs/dinode.h>
 #   include <vm/vm.h>
@@ -368,6 +364,10 @@ MALLOC_DECLARE(M_AFS);
 #   include <vm/vm_map.h>
 #   include <sys/lock.h>
 #   include <sys/user.h>
+#  else
+#   include <sys/ubc.h>
+#   define timeout_fcn_t mach_timeout_fcn_t
+#   include <kern/sched_prim.h>
 #  endif
 #  undef timeout_fcn_t
 #  define _DIR_H_
index 7ebc01f..a9897bb 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_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_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_ENV 1
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_ENV 1
 #undef  AFS_NONFSTRANS
@@ -138,13 +126,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index 602cbfe..aa63705 100644 (file)
 #define AFS_64BITUSERPOINTER_ENV       1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_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_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_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
@@ -149,13 +137,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index 3ae1b7b..e0e9d40 100644 (file)
 #define AFS_64BITUSERPOINTER_ENV       1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_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_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_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
@@ -151,13 +139,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index ed0c492..1efb350 100644 (file)
 #define AFS_64BITUSERPOINTER_ENV       1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD71_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_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
@@ -153,13 +141,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index 4d0b11a..1f4f497 100644 (file)
 #define AFS_64BITUSERPOINTER_ENV       1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
 #define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_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
@@ -155,13 +143,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index f1053e5..3e220c7 100644 (file)
 #define AFS_64BITUSERPOINTER_ENV       1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD81_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_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
@@ -157,13 +145,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
diff --git a/src/config/param.i386_fbsd_42.h b/src/config/param.i386_fbsd_42.h
deleted file mode 100644 (file)
index 82789b8..0000000
+++ /dev/null
@@ -1,189 +0,0 @@
-#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_ENV 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define O_SYNC O_FSYNC
-#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    210
-#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_42"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_42
-
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-#define AFS_HAVE_STATVFS       0       /* System doesn't supports statvfs */
-
-#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        AFS_SHORTGID    1       /* are group id's short? */
-#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 */
-
-#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_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define O_SYNC O_FSYNC
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 210
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_ENV 1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#include <afs/afs_sysnames.h>
-
-#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_42"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_42
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    0  /* System doesn't 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 /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
diff --git a/src/config/param.i386_fbsd_43.h b/src/config/param.i386_fbsd_43.h
deleted file mode 100644 (file)
index b3ea04b..0000000
+++ /dev/null
@@ -1,192 +0,0 @@
-#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_ENV 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define O_SYNC O_FSYNC
-#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    210
-#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_43"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_43
-
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-#define AFS_HAVE_STATVFS       0       /* System doesn't supports statvfs */
-
-#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        AFS_SHORTGID    1       /* are group id's short? */
-#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 */
-
-#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_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define O_SYNC O_FSYNC
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 210
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_ENV 1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#include <afs/afs_sysnames.h>
-
-#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_43"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_43
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    0  /* System doesn't 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 /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
diff --git a/src/config/param.i386_fbsd_44.h b/src/config/param.i386_fbsd_44.h
deleted file mode 100644 (file)
index aabbea0..0000000
+++ /dev/null
@@ -1,195 +0,0 @@
-#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_ENV 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD44_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define O_SYNC O_FSYNC
-#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    210
-#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_44"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_44
-
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-#define AFS_HAVE_STATVFS       0       /* System doesn't supports statvfs */
-
-#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        AFS_SHORTGID    1       /* are group id's short? */
-#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 */
-
-#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_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define O_SYNC O_FSYNC
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 210
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_ENV 1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#include <afs/afs_sysnames.h>
-
-#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_44"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_44
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    0  /* System doesn't 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 /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
diff --git a/src/config/param.i386_fbsd_45.h b/src/config/param.i386_fbsd_45.h
deleted file mode 100644 (file)
index 2b76f03..0000000
+++ /dev/null
@@ -1,197 +0,0 @@
-#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_ENV 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD45_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define O_SYNC O_FSYNC
-#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    210
-#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_45"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_45
-
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-#define AFS_HAVE_STATVFS       0       /* System doesn't supports statvfs */
-
-#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        AFS_SHORTGID    1       /* are group id's short? */
-#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 */
-
-#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_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define O_SYNC O_FSYNC
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 210
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_ENV 1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#include <afs/afs_sysnames.h>
-
-#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_45"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_45
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    0  /* System doesn't 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 /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
diff --git a/src/config/param.i386_fbsd_46.h b/src/config/param.i386_fbsd_46.h
deleted file mode 100644 (file)
index 66686ff..0000000
+++ /dev/null
@@ -1,199 +0,0 @@
-#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_ENV 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define O_SYNC O_FSYNC
-#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    210
-#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_46"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_46
-
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-#define AFS_HAVE_STATVFS       0       /* System doesn't supports statvfs */
-
-#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        AFS_SHORTGID    1       /* are group id's short? */
-#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 */
-
-#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_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define O_SYNC O_FSYNC
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 210
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_ENV 1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#include <afs/afs_sysnames.h>
-
-#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_46"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_46
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    0  /* System doesn't 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 /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
diff --git a/src/config/param.i386_fbsd_47.h b/src/config/param.i386_fbsd_47.h
deleted file mode 100644 (file)
index 1a5e9f2..0000000
+++ /dev/null
@@ -1,202 +0,0 @@
-#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_ENV 1
-#define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
-#define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_ENV 1
-#define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_ENV 1
-#define AFS_X86_ENV 1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-#define O_SYNC O_FSYNC
-#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    210
-#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_47"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_47
-
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-#define AFS_HAVE_STATVFS       0       /* System doesn't supports statvfs */
-
-#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        AFS_SHORTGID    1       /* are group id's short? */
-#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 */
-
-#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_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
-#define AFS_USR_FBSD_ENV       1
-#undef  AFS_NONFSTRANS
-#define AFS_NONFSTRANS 1
-
-#define O_SYNC O_FSYNC
-
-#define AFS_MOUNT_AFS "afs"    /* The name of the filesystem type. */
-#define AFS_SYSCALL 210
-#define AFS_NAMEI_ENV         1        /* User space interface to file system */
-#define AFS_64BIT_ENV 1
-#define AFS_64BIT_IOPS_ENV    1        /* Needed for NAMEI */
-#include <afs/afs_sysnames.h>
-
-#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_47"
-#define SYS_NAME_ID    SYS_NAME_ID_i386_fbsd_47
-#define AFSLITTLE_ENDIAN    1
-#define AFS_HAVE_FFS        1  /* Use system's ffs. */
-#define AFS_HAVE_STATVFS    0  /* System doesn't 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 /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
index 0bb4449..51af23c 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_ENV 1
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_ENV 1
 #undef  AFS_NONFSTRANS
@@ -141,13 +129,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD_ENV       1
 #undef  AFS_NONFSTRANS
index 41c315b..5eceb7d 100644 (file)
 #define AFS_64BIT_CLIENT       1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_ENV 1
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_ENV 1
 #undef  AFS_NONFSTRANS
@@ -142,13 +130,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD_ENV       1
index 07e7673..44e6c7b 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_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_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_ENV 1
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_ENV 1
 #undef  AFS_NONFSTRANS
@@ -143,13 +131,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index bc0439e..7f62aeb 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_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_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_ENV 1
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_ENV 1
 #undef  AFS_NONFSTRANS
@@ -138,13 +126,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index 17c4dde..afa8810 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_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_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_ENV 1
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_ENV 1
 #undef  AFS_NONFSTRANS
@@ -139,13 +127,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index dfef61e..ba8a3e3 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_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_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_ENV 1
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_ENV 1
 #undef  AFS_NONFSTRANS
@@ -141,13 +129,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index c574fab..24090e1 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_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_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_ENV 1
 #define AFS_X86_FBSD50_ENV 1
 #define AFS_X86_FBSD60_ENV 1
 #define AFS_X86_FBSD62_ENV 1
@@ -145,13 +133,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index b89ba2f..b624759 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_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_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_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
@@ -147,13 +135,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index bd195d5..7bd6b60 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_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_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_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
@@ -149,13 +137,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index 3afa735..002db22 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD71_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_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
@@ -151,13 +139,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index d95b687..cf62adc 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD80_ENV 1
 #define AFS_FBSD81_ENV 1
 #define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_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
@@ -153,13 +141,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index 082e7f5..28a38eb 100644 (file)
 #define AFS_64BIT_CLIENT 1
 #define AFS_64BIT_IOPS_ENV 1   /* Needed for NAMEI */
 #define AFS_FBSD_ENV 1
-#define AFS_FBSD40_ENV 1
-#define AFS_FBSD42_ENV 1
-#define AFS_FBSD43_ENV 1
-#define AFS_FBSD44_ENV 1
-#define AFS_FBSD45_ENV 1
-#define AFS_FBSD46_ENV 1
-#define AFS_FBSD47_ENV 1
 #define AFS_FBSD50_ENV 1
 #define AFS_FBSD51_ENV 1
 #define AFS_FBSD52_ENV 1
 #define AFS_FBSD81_ENV 1
 #define AFS_FBSD90_ENV 1
 #define AFS_X86_FBSD_ENV 1
-#define AFS_X86_FBSD40_ENV 1
-#define AFS_X86_FBSD42_ENV 1
-#define AFS_X86_FBSD43_ENV 1
-#define AFS_X86_FBSD46_ENV 1
-#define AFS_X86_FBSD47_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
@@ -155,13 +143,6 @@ enum vcexcl { NONEXCL, EXCL };
 #define UKERNEL                        1       /* user space kernel */
 #define AFS_ENV                        1
 #define AFS_VFSINCL_ENV         1
-#define AFS_USR_FBSD40_ENV     1
-#define AFS_USR_FBSD42_ENV     1
-#define AFS_USR_FBSD43_ENV     1
-#define AFS_USR_FBSD44_ENV     1
-#define AFS_USR_FBSD45_ENV     1
-#define AFS_USR_FBSD46_ENV     1
-#define AFS_USR_FBSD47_ENV     1
 #define AFS_USR_FBSD50_ENV     1
 #define AFS_USR_FBSD51_ENV     1
 #define AFS_USR_FBSD52_ENV     1
index a7a36d1..cce28dc 100644 (file)
@@ -42,18 +42,11 @@ KOPTS = -fPIC
 
 KDEFS=-Wall -nostdinc -I/usr/include -D_KERNEL -DKLD_MODULE \
        -elf \
-<i386_fbsd_42 i386_fbsd_43 i386_fbsd_44 i386_fbsd_45 i386_fbsd_46 i386_fbsd_47>
-       -mpreferred-stack-boundary=2 \
-       -fformat-extensions \
-       -include ${KBLD}/opt_global.h \
-<i386_fbsd_42 i386_fbsd_43 i386_fbsd_44 i386_fbsd_45 i386_fbsd_46 i386_fbsd_47>
-       -include ${KBLD}/opt_global.h -mpreferred-stack-boundary=2 \
 <i386_fbsd_60>
        -mno-mmx -mno-3dnow -mno-sse -mno-sse2 \
-<all -i386_fbsd_42 -i386_fbsd_43 -i386_fbsd_44 -i386_fbsd_45 -i386_fbsd_46 -i386_fbsd_47>
+<all>
        -mno-align-long-strings -fno-common -ffreestanding \
        -I${KBLD} -include opt_global.h -fno-strict-aliasing
-<all>
 
 DBUG = -O2
 #DBUG = -O -g
@@ -127,17 +120,10 @@ ${LIBAFS}: $(AFSAOBJS) $(AFSNFSOBJS)
        $(LD) -Bshareable -o ${LIBAFS} setdef0.o ${LIBAFS}.kld setdef1.o
 
 ${LIBAFSNONFS}:  $(AFSAOBJS) $(AFSNONFSOBJS)
-<i386_fbsd_42 i386_fbsd_43 i386_fbsd_44 i386_fbsd_45 i386_fbsd_46 i386_fbsd_47>
-       $(LD) -r -o libafs.kld ${AFSAOBJS} ${AFSNONFSOBJS}
-       gensetdefs libafs.kld
-       $(MAKE) setdef0.o setdef1.o
-       $(LD) -Bshareable -o ${LIBAFSNONFS} setdef0.o libafs.kld setdef1.o
-<all -i386_fbsd_42 -i386_fbsd_43 -i386_fbsd_44 -i386_fbsd_45 -i386_fbsd_46 -i386_fbsd_47>
        $(LD) -r -d -warn-common -o libafs.kld ${AFSAOBJS} ${AFSNONFSOBJS}
        touch export_syms
        awk -f ${KSRC}/conf/kmod_syms.awk libafs.kld export_syms | xargs -J% objcopy % libafs.kld
        $(LD) -Bshareable -d -warn-common -o ${LIBAFSNONFS} libafs.kld
-<all>
 
 
 # Object build rules:
@@ -147,10 +133,6 @@ setdef1.o: setdef1.c
        $(CRULE_NOOPT)
 
 # vnode_if.h build rules:
-<i386_fbsd_42 i386_fbsd_43 i386_fbsd_44 i386_fbsd_45 i386_fbsd_46 i386_fbsd_47>
-vnode_if.h:    ${KSRC}/kern/vnode_if.src
-       perl5 ${KSRC}/kern/vnode_if.pl -h ${KSRC}/kern/vnode_if.src
-<all -i386_fbsd_42 -i386_fbsd_43 -i386_fbsd_44 -i386_fbsd_45 -i386_fbsd_46 -i386_fbsd_47>
 vnode_if.h:    ${KSRC}/kern/vnode_if.src
        awk -f ${KSRC}/tools/vnode_if.awk ${KSRC}/kern/vnode_if.src -h
        awk -f ${KSRC}/tools/vnode_if.awk ${KSRC}/kern/vnode_if.src -q
index e3907a0..5b8f034 100644 (file)
@@ -21,7 +21,7 @@ CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KOPTS) ${D
 OPTF=-O
 # WEBOPTS = -I../nsapi -DNETSCAPE_NSAPI -DNET_SSL -DXP_UNIX -DMCC_HTTPD
 
-TEST_CFLAGS=-D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_FBSD40_ENV $(XCFLAGS)
+TEST_CFLAGS=-D_REENTRANT -DAFS_PTHREAD_ENV -DAFS_FBSD50_ENV $(XCFLAGS)
 TEST_LDFLAGS=
 <all -i386_fbsd_62 -i386_fbsd_70 -i386_fbsd_71 -i386_fbsd_80 -i386_fbsd81 -i386_fbsd_90 -amd64_fbsd_62 -amd64_fbsd_70 -amd64_fbsd_71 -amd64_fbsd_80 -amd64_fbsd_81 -amd64_fbsd_90>
 TEST_LIBS=-lc_r
index 39fe820..9e7b6a6 100644 (file)
@@ -99,7 +99,7 @@ typedef struct mtx afs_kmutex_t;
 #define MUTEX_ISMINE(a)                                \
     ( mtx_owned((a)) )
 
-#elif defined(AFS_FBSD50_ENV)
+#else
 
 typedef struct {
     struct lock lock;
@@ -135,74 +135,6 @@ typedef struct {
 
 #undef MUTEX_ISMINE
 #define MUTEX_ISMINE(a) (((afs_kmutex_t *)(a))->owner == curthread)
-#elif defined(HEAVY_LOCKS)
-typedef struct {
-    struct lock lock;
-    struct proc *owner;
-} afs_kmutex_t;
-
-
-#define MUTEX_INIT(a,b,c,d) \
-    do { \
-       lockinit(&(a)->lock, PSOCK, "afs rx mutex", 0, 0); \
-       (a)->owner = 0; \
-    } while(0);
-#define MUTEX_DESTROY(a) \
-    do { \
-       (a)->owner = (struct proc *)-1; \
-    } while(0);
-#define MUTEX_ENTER(a) \
-    do { \
-       lockmgr(&(a)->lock, LK_EXCLUSIVE, 0, curproc); \
-       osi_Assert((a)->owner == 0); \
-       (a)->owner = curproc; \
-    } while(0);
-#define MUTEX_TRYENTER(a) \
-    ( lockmgr(&(a)->lock, LK_EXCLUSIVE|LK_NOWAIT, 0, curproc) ? 0 : ((a)->owner = curproc, 1) )
-#define xMUTEX_TRYENTER(a) \
-    ( osi_Assert((a)->owner == 0), (a)->owner = curproc, 1)
-#define MUTEX_EXIT(a) \
-    do { \
-       osi_Assert((a)->owner == curproc); \
-       (a)->owner = 0; \
-       lockmgr(&(a)->lock, LK_RELEASE, 0, curproc); \
-    } while(0);
-
-#undef MUTEX_ISMINE
-#define MUTEX_ISMINE(a) (((afs_kmutex_t *)(a))->owner == curproc)
-#else
-typedef struct {
-    struct simplelock lock;
-    struct proc *owner;
-} afs_kmutex_t;
-
-
-#define MUTEX_INIT(a,b,c,d) \
-    do { \
-       simple_lock_init(&(a)->lock); \
-       (a)->owner = 0; \
-    } while(0);
-#define MUTEX_DESTROY(a) \
-    do { \
-       (a)->owner = (struct proc *)-1; \
-    } while(0);
-#define MUTEX_ENTER(a) \
-    do { \
-       simple_lock(&(a)->lock); \
-       osi_Assert((a)->owner == 0); \
-       (a)->owner = curproc; \
-    } while(0);
-#define MUTEX_TRYENTER(a) \
-    ( simple_lock_try(&(a)->lock) ? 0 : ((a)->owner = curproc, 1) )
-#define MUTEX_EXIT(a) \
-    do { \
-       osi_Assert((a)->owner == curproc); \
-       (a)->owner = 0; \
-       simple_unlock(&(a)->lock); \
-    } while(0);
-
-#undef MUTEX_ISMINE
-#define MUTEX_ISMINE(a) (((afs_kmutex_t *)(a))->owner == curproc)
 #endif
 
 
index 51443cc..77f2eab 100644 (file)
@@ -11,7 +11,6 @@
 #include "afs/param.h"
 
 
-#ifdef AFS_FBSD40_ENV
 #include <sys/malloc.h>
 #include "rx/rx_kcommon.h"
 
@@ -41,11 +40,7 @@ osi_NetReceive(osi_socket asocket, struct sockaddr_in *addr,
     u.uio_resid = *alength;
     u.uio_segflg = UIO_SYSSPACE;
     u.uio_rw = UIO_READ;
-#ifdef AFS_FBSD50_ENV
     u.uio_td = NULL;
-#else
-    u.uio_procp = NULL;
-#endif
 
     if (haveGlock)
        AFS_GUNLOCK();
@@ -99,9 +94,7 @@ osi_StopListener(void)
     afs_warn("osi_StopListener: rxk_ListenerPid %lx\n", p);
     if (p)
        psignal(p, SIGUSR1);
-#ifdef AFS_FBSD50_ENV
     PROC_UNLOCK(p);
-#endif
 #ifdef AFS_FBSD70_ENV
     {
       /* Avoid destroying socket until osi_NetReceive has
@@ -150,11 +143,7 @@ osi_NetSend(osi_socket asocket, struct sockaddr_in *addr, struct iovec *dvec,
     u.uio_resid = alength;
     u.uio_segflg = UIO_SYSSPACE;
     u.uio_rw = UIO_WRITE;
-#ifdef AFS_FBSD50_ENV
     u.uio_td = NULL;
-#else
-    u.uio_procp = NULL;
-#endif
 
     addr->sin_len = sizeof(struct sockaddr_in);
 
@@ -163,14 +152,9 @@ osi_NetSend(osi_socket asocket, struct sockaddr_in *addr, struct iovec *dvec,
 #if KNET_DEBUG
     printf("+");
 #endif
-#ifdef AFS_FBSD50_ENV
     code =
        sosend(asocket, (struct sockaddr *)addr, &u, NULL, NULL, 0,
               curthread);
-#else
-    code =
-       sosend(asocket, (struct sockaddr *)addr, &u, NULL, NULL, 0, curproc);
-#endif
 #if KNET_DEBUG
     if (code) {
        if (code == EINVAL)
@@ -540,5 +524,3 @@ osi_NetSend(osi_socket asocket, struct sockaddr_in *addr, struct iovec *dvec,
     return code;
 }
 #endif
-
-#endif /* AFS_FBSD40_ENV */
index 3032711..31fcace 100644 (file)
@@ -829,7 +829,7 @@ rxk_NewSocketHost(afs_uint32 ahost, short aport)
 #else
     struct socket *newSocket;
 #endif
-#if (!defined(AFS_HPUX1122_ENV) && !defined(AFS_FBSD50_ENV))
+#if (!defined(AFS_HPUX1122_ENV) && !defined(AFS_FBSD_ENV))
     struct mbuf *nam;
 #endif
     struct sockaddr_in myaddr;
@@ -872,11 +872,9 @@ rxk_NewSocketHost(afs_uint32 ahost, short aport)
 #endif /* else AFS_HPUX110_ENV */
 #elif defined(AFS_SGI65_ENV) || defined(AFS_OBSD_ENV)
     code = socreate(AF_INET, &newSocket, SOCK_DGRAM, IPPROTO_UDP);
-#elif defined(AFS_FBSD50_ENV)
+#elif defined(AFS_FBSD_ENV)
     code = socreate(AF_INET, &newSocket, SOCK_DGRAM, IPPROTO_UDP,
                    afs_osi_credp, curthread);
-#elif defined(AFS_FBSD40_ENV)
-    code = socreate(AF_INET, &newSocket, SOCK_DGRAM, IPPROTO_UDP, curproc);
 #elif defined(AFS_DARWIN80_ENV)
     code = sock_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP, NULL, NULL, &newSocket);
 #elif defined(AFS_NBSD40_ENV)
@@ -944,10 +942,8 @@ rxk_NewSocketHost(afs_uint32 ahost, short aport)
     }
 #endif
 #if defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
-#if defined(AFS_FBSD50_ENV)
+#if defined(AFS_FBSD_ENV)
     code = sobind(newSocket, (struct sockaddr *)&myaddr, curthread);
-#elif defined(AFS_FBSD40_ENV)
-    code = sobind(newSocket, (struct sockaddr *)&myaddr, curproc);
 #else
     code = sobind(newSocket, (struct sockaddr *)&myaddr);
 #endif
index 2dff7f7..ec2c289 100644 (file)
@@ -63,9 +63,7 @@ typedef unsigned short etap_event_t;
 #include "h/dirent.h"
 #include "h/socket.h"
 #include "h/domain.h"
-#if defined(AFS_FBSD50_ENV)
 #include "h/bio.h"
-#endif
 #include "h/buf.h"
 #include "h/mbuf.h"
 #endif /* AFS_FBSD_ENV */