Remove support for Solaris pre-8
authorAndrew Deason <adeason@sinenomine.net>
Fri, 24 Jun 2011 20:25:46 +0000 (15:25 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 30 Jun 2011 14:27:39 +0000 (07:27 -0700)
Remove support for all Solaris and SunOS platforms prior to Solaris 8,
since Solaris 7 reached end-of-life in August of 2008. Remove all
non-documentation references to sunx86_57 and earlier, sun4x_57 and
earlier, and AFS_SUN57_ENV and earlier.

References to AFS_SUN58_ENV have been changed to AFS_SUN5_ENV where
appropriate, and AFS_SUN5_ENV now implies Solaris 8.
AFS_SUN57_64BIT_ENV has been renamed to AFS_SUN5_64BIT_ENV.

Change-Id: Ia64ce7da7bfc685fa28a5119c51ec740625456e3
Reviewed-on: http://gerrit.openafs.org/4888
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>

81 files changed:
README
acinclude.m4
doc/man-pages/pod1/fs_sysname.pod
doc/man-pages/pod1/sys.pod
doc/xml/AdminGuide/auagd007.xml
src/afs/SOLARIS/osi_file.c
src/afs/SOLARIS/osi_groups.c
src/afs/SOLARIS/osi_inode.c
src/afs/SOLARIS/osi_inode.h
src/afs/SOLARIS/osi_machdep.h
src/afs/SOLARIS/osi_prototypes.h
src/afs/SOLARIS/osi_vcache.c
src/afs/SOLARIS/osi_vfsops.c
src/afs/SOLARIS/osi_vm.c
src/afs/SOLARIS/osi_vnodeops.c
src/afs/VNOPS/afs_vnop_attrs.c
src/afs/VNOPS/afs_vnop_fid.c
src/afs/VNOPS/afs_vnop_flock.c
src/afs/VNOPS/afs_vnop_readdir.c
src/afs/VNOPS/afs_vnop_write.c
src/afs/afs.h
src/afs/afs_analyze.c
src/afs/afs_call.c
src/afs/afs_conn.c
src/afs/afs_error.c
src/afs/afs_icl.c
src/afs/afs_init.c
src/afs/afs_nfsdisp.c
src/afs/afs_osi.c
src/afs/afs_osi.h
src/afs/afs_pioctl.c
src/afs/afs_prototypes.h
src/afs/afs_server.c
src/afs/afs_syscall.c
src/afs/afs_user.c
src/afs/afs_util.c
src/afs/afs_volume.c
src/afs/afs_warn.c
src/afs/exporter.h
src/afs/lock.h
src/afs/sysincludes.h
src/afsd/Makefile.in
src/afsd/afs.rc.solaris [deleted file]
src/afsd/afs.rc.solaris.2.7 [deleted file]
src/afsd/afs.rc.solaris.2_5 [deleted file]
src/afsd/afsd_kernel.c
src/cf/osconf.m4
src/config/param.sun4_413.h [deleted file]
src/config/param.sun4x_510.h
src/config/param.sun4x_511.h
src/config/param.sun4x_55.h [deleted file]
src/config/param.sun4x_56.h [deleted file]
src/config/param.sun4x_57.h [deleted file]
src/config/param.sun4x_58.h
src/config/param.sun4x_59.h
src/config/param.sunx86_510.h
src/config/param.sunx86_511.h
src/config/param.sunx86_54.h [deleted file]
src/config/param.sunx86_57.h [deleted file]
src/config/param.sunx86_58.h
src/config/param.sunx86_59.h
src/dir/dir.c
src/libafs/MakefileProto.SOLARIS.in
src/pam/afs_auth.c
src/pam/afs_password.c
src/pam/afs_setcred.c
src/platform/SOLARIS/fs_conv_sol26.c
src/rx/SOLARIS/rx_knet.c
src/rx/rx.c
src/rx/rx_atomic.h
src/rx/rx_kcommon.h
src/rx/xdr_rec.c
src/rx/xdr_stdio.c
src/venus/kdump.c
src/vfsck/fsck.h
src/vfsck/inode.c
src/vfsck/pass1.c
src/vfsck/pass2.c
src/vfsck/setup.c
src/vfsck/utilities.c
src/vol/listinodes.c

diff --git a/README b/README
index 0b537e8..ffc42ff 100644 (file)
--- a/README
+++ b/README
@@ -69,10 +69,10 @@ A  Configuring
       sparc64_linux22, sparc64_linux24, sparc64_linux26
       sparc_linux22, sparc_linux24
       sun4_413 (No client support, no fileserver support, db servers only)
-      sun4x_56, sun4x_57, sun4x_58, sun4x_59, sun4x_510, sun4x_511
+      sun4x_58, sun4x_59, sun4x_510, sun4x_511
          (logging UFS not supported for mixed-use partitions containing
          client cache)
-      sunx86_57, sunx86_58, sunx86_59, sunx86_510, sunx86_511
+      sunx86_58, sunx86_59, sunx86_510, sunx86_511
          (logging UFS not supported for mixed-use partitions containing
          client cache)
       x86_darwin_80, x86_darwin90
index fb62691..5fd2c29 100644 (file)
@@ -568,16 +568,6 @@ else
                        AFS_SYSNAME="x86_darwin_110"
                        OSXSDK="macosx10.7"
                        ;;
-               sparc-sun-solaris2.5*)
-                       AFS_SYSNAME="sun4x_55"
-                       enable_login="yes"
-                       ;;
-               sparc-sun-solaris2.6)
-                       AFS_SYSNAME="sun4x_56"
-                       ;;
-               sparc-sun-solaris2.7)
-                       AFS_SYSNAME="sun4x_57"
-                       ;;
                sparc-sun-solaris2.8)
                        AFS_SYSNAME="sun4x_58"
                        ;;
@@ -594,9 +584,6 @@ else
                        AFS_SYSNAME="sun4_413"
                        enable_login="yes"
                        ;;
-               i386-pc-solaris2.7)
-                       AFS_SYSNAME="sunx86_57"
-                       ;;
                i386-pc-solaris2.8)
                        AFS_SYSNAME="sunx86_58"
                        ;;
index 47792cd..cce2903 100644 (file)
@@ -71,11 +71,11 @@ When the B<-newsys> argument is included, the output is the following:
 
 =head1 EXAMPLES
 
-The following example shows the output produced on a Sun SPARCStation
-running Solaris 5.7:
+The following example shows the output produced on a Sun Netra T1
+running Solaris 10:
 
    % fs sysname
-   Current sysname is 'sun4x_57'
+   Current sysname is 'sun4x_510'
 
 The following command defines a machine to be a IBM RS/6000 running AIX
 4.2:
index 456fa06..b01e0c3 100644 (file)
@@ -45,11 +45,11 @@ The machine's system type appears as a text string:
 
 =head1 EXAMPLES
 
-The following example shows the output produced on a Sun SPARCStation
-running Solaris 5.7:
+The following example shows the output produced on a Sun Netra T1
+running Solaris 10:
 
    % sys
-   sun4x_57
+   sun4x_510
 
 =head1 PRIVILEGE REQUIRED
 
index 4455bad..e21ea53 100644 (file)
       example, the Cache Manager on a machine running AIX 4.2 converts
       <emphasis role="bold">/afs/abc.com/@sys</emphasis> to <emphasis
       role="bold">/afs/abc.com/rs_aix42</emphasis>, whereas a machine
-      running Solaris 7 converts it to <emphasis
-      role="bold">/afs/abc.com/sun4x_57</emphasis>.</para>
+      running Solaris 10 converts it to <emphasis
+      role="bold">/afs/abc.com/sun4x_510</emphasis>.</para>
 
       <para>If you want to use the @sys variable, it is simplest to use
       the conventional AFS system type names as specified in the OpenAFS
index d6985f1..8f92cc8 100644 (file)
@@ -43,11 +43,7 @@ afs_InitDualFSCacheOps(struct vnode *vp)
     int code;
     static int inited = 0;
     struct vfs *vfsp;
-#ifdef AFS_SUN56_ENV
     struct statvfs64 vfst;
-#else /* AFS_SUN56_ENV */
-    struct statvfs vfst;
-#endif /* AFS_SUN56_ENV */
 
     if (inited)
        return;
@@ -355,11 +351,7 @@ afs_osi_Read(struct osi_file *afile, int offset, void *aptr,
             afs_int32 asize)
 {
     afs_ucred_t *oldCred;
-#if defined(AFS_SUN57_ENV)
     ssize_t resid;
-#else
-    int resid;
-#endif
     afs_int32 code;
     afs_int32 cnt1 = 0;
     AFS_STATCNT(osi_Read);
@@ -400,11 +392,7 @@ afs_osi_Write(struct osi_file *afile, afs_int32 offset, void *aptr,
              afs_int32 asize)
 {
     afs_ucred_t *oldCred;
-#if defined(AFS_SUN57_ENV)
     ssize_t resid;
-#else
-    int resid;
-#endif
     afs_int32 code;
     AFS_STATCNT(osi_Write);
     if (!afile)
index 58c510e..a6cd8e4 100644 (file)
@@ -36,21 +36,10 @@ static int
                int change_parent);
 
 
-#if    defined(AFS_SUN55_ENV)
 int
 afs_xsetgroups(uap, rvp)
      u_int uap;                        /* this is gidsetsize */
      gid_t *rvp;               /* this is gidset */
-#else
-struct setgroupsa {
-    u_int gidsetsize;
-    gid_t *gidset;
-};
-
-afs_xsetgroups(uap, rvp)
-     struct setgroupsa *uap;
-     rval_t *rvp;
-#endif
 {
     int code = 0;
     struct vrequest treq;
index d4959f8..42c3541 100644 (file)
@@ -53,13 +53,7 @@ getinode(vfsp, dev, inode, ipp, credp, perror)
 
     *perror = 0;
 
-    if (!vfsp
-#if !defined(AFS_SUN58_ENV)
-       && !(vfsp = vfs_devsearch(dev))
-#else
-       && !(vfsp = vfs_dev2vfsp(dev))
-#endif
-       ) {
+    if (!vfsp && !(vfsp = vfs_dev2vfsp(dev))) {
        return (ENODEV);
     }
     ufsvfsp = (struct ufsvfs *)vfsp->vfs_data;
@@ -163,7 +157,7 @@ afs_syscall_icreate(dev, near_inode, param1, param2, param3, param4, rvp,
       * This conversion is needed only for the 64 bit OS.
       */
 
-#ifdef AFS_SUN57_64BIT_ENV
+#ifdef AFS_SUN5_64BIT_ENV
     newdev = expldev((dev32_t) dev);
 #else
     newdev = dev;
@@ -195,12 +189,7 @@ afs_syscall_icreate(dev, near_inode, param1, param2, param3, param4, rvp,
     rw_enter(&newip->i_contents, RW_WRITER);
     newip->i_flag |= IACC | IUPD | ICHG;
 
-#if    defined(AFS_SUN56_ENV)
     newip->i_vicemagic = VICEMAGIC;
-#else
-    newip->i_uid = 0;
-    newip->i_gid = -2;
-#endif
     newip->i_nlink = 1;
     newip->i_mode = IFREG;
 #ifdef AFS_SUN510_ENV
@@ -219,7 +208,7 @@ afs_syscall_icreate(dev, near_inode, param1, param2, param3, param4, rvp,
            (((param4 >> 16) & 0x1f) << 22) + (param3 & 0x3fffff);
        newip->i_vicep3 = ((param4 << 16) + (param2 & 0xffff));
     }
-#ifdef AFS_SUN57_64BIT_ENV
+#ifdef AFS_SUN5_64BIT_ENV
     rvp->r_vals = newip->i_number;
 #else
     rvp->r_val1 = newip->i_number;
@@ -259,7 +248,7 @@ afs_syscall_iopen(dev, inode, usrmod, rvp, credp)
       * This conversion is needed only for the 64 bit OS.
       */
 
-#ifdef AFS_SUN57_64BIT_ENV
+#ifdef AFS_SUN5_64BIT_ENV
     newdev = expldev((dev32_t) dev);
 #else
     newdev = dev;
@@ -301,7 +290,7 @@ afs_syscall_iopen(dev, inode, usrmod, rvp, credp)
      * thing, but on 64-bit they point to two different 32-bit locations that
      * make up one 64-bit int; so on 64-bit big-endian we need to set the
      * second one. */
-#if defined(AFS_SUN57_64BIT_ENV) && !defined(AFSLITTLE_ENDIAN)
+#if defined(AFS_SUN5_64BIT_ENV) && !defined(AFSLITTLE_ENDIAN)
     rvp->r_val2 = fd;
 #else
     rvp->r_val1 = fd;
@@ -330,7 +319,7 @@ afs_syscall_iincdec(dev, inode, inode_p1, amount, rvp, credp)
       * This conversion is needed only for the 64 bit OS.
       */
 
-#ifdef AFS_SUN57_64BIT_ENV
+#ifdef AFS_SUN5_64BIT_ENV
     newdev = expldev((dev32_t) dev);
 #else
     newdev = dev;
index fef51bf..0e37dc3 100644 (file)
 
 #define di_vicep1         di_un . di_icom .ic_gen
 #define di_vicep2         di_un . di_icom .ic_flags
-#if    defined(AFS_SUN56_ENV)
 #define di_vicep3       di_ic.ic_uid
 #define di_vicemagic    di_ic.ic_gid
-#else
-#define di_vicep3         di_un . di_icom .ic_size.val[0]
-#endif
 
 #define i_vicep1 i_ic.ic_gen
 #define i_vicep2 i_ic.ic_flags
-#if    defined(AFS_SUN56_ENV)
 #define i_vicep3       i_ic.ic_uid
 #define i_vicemagic    i_ic.ic_gid
-#else
-#define i_vicep3 i_ic.ic_size.val[0]
-#endif
 
-#if    defined(AFS_SUN56_ENV)
 #define        IS_VICEMAGIC(ip)        ((ip)->i_vicemagic == VICEMAGIC)
 #define        IS_DVICEMAGIC(dp)       ((dp)->di_vicemagic == VICEMAGIC)
 
 #define        CLEAR_VICEMAGIC(ip)     (ip)->i_vicemagic = (ip)->i_vicep3 = 0
 #define        CLEAR_DVICEMAGIC(dp)    (dp)->di_vicemagic = (dp)->di_vicep3 = 0
-#else
-#define  IS_VICEMAGIC(ip)        (((ip)->i_vicep2 || (ip)->i_vicep3) ? 1 : 0)
-#define  IS_DVICEMAGIC(dp)       (((dp)->di_vicep2 || (dp)->di_vicep3) ? 1 : 0)
-
-#define  CLEAR_VICEMAGIC(ip)     (ip)->i_vicep2 = (ip)->i_vicep3 = 0
-#define  CLEAR_DVICEMAGIC(dp)    (dp)->di_vicep2 = (dp)->di_vicep3 = 0
-#endif
 
 #define AFS_SUN_UFS_CACHE 0
 #ifdef AFS_HAVE_VXFS
index 3147445..b38d1e3 100644 (file)
@@ -18,7 +18,7 @@
 #ifndef _OSI_MACHDEP_H_
 #define _OSI_MACHDEP_H_
 
-#ifdef AFS_SUN57_64BIT_ENV
+#ifdef AFS_SUN5_64BIT_ENV
 #include <sys/model.h>         /* for get_udatamodel() */
 #endif
 
@@ -54,8 +54,7 @@ local_osi_Time()
 #define osi_Time() (hrestime.tv_sec)
 #endif
 
-#ifdef AFS_SUN58_ENV
-# define osi_vnhold(avc, r)  do {    \
+#define osi_vnhold(avc, r)  do {    \
     struct vnode *vp = AFSTOV(avc); \
     uint_t prevcount;               \
                                     \
@@ -67,9 +66,6 @@ local_osi_Time()
        VFS_HOLD(afs_globalVFS);    \
     }                               \
 } while(0)
-#else /* !AFS_SUN58_ENV */
-# define osi_vnhold(avc, r)  do { VN_HOLD(AFSTOV(avc)); } while(0)
-#endif /* !AFS_SUN58_ENV */
 
 #define gop_rdwr(rw,gp,base,len,offset,segflg,ioflag,ulimit,cr,aresid) \
   vn_rdwr((rw),(gp),(base),(len),(offset),(segflg),(ioflag),(ulimit),(cr),(aresid))
@@ -113,7 +109,6 @@ extern kmutex_t afs_global_lock;
 #define        IO_SYNC         FSYNC
 #endif
 
-#if    defined(AFS_SUN56_ENV)
 /*
 ** Macro returns 1 if file is larger than 2GB; else returns 0
 */
@@ -121,7 +116,6 @@ extern kmutex_t afs_global_lock;
 #define AfsLargeFileUio(uio)       ( (uio)->_uio_offset._p._u ? 1 : 0 )
 #undef AfsLargeFileSize
 #define AfsLargeFileSize(pos, off) ( ((offset_t)(pos)+(offset_t)(off) > (offset_t)0x7fffffff)?1:0)
-#endif
 
 #if defined(AFS_SUN510_ENV)
 #include "h/sunddi.h"
index d74b9e5..237a868 100644 (file)
 extern afs_rwlock_t afs_xosi;
 
 /* osi_vnodeops.c */
-int afs_putapage(struct vnode *vp, struct page *pages,
-#if    defined(AFS_SUN56_ENV)
-                u_offset_t * offp,
-#else
-                u_int * offp,
-#endif
-#if     defined(AFS_SUN58_ENV)
-                size_t * lenp,
-#else
-                u_int * lenp,
-#endif
-                int flags, afs_ucred_t *credp);
-
-
+int afs_putapage(struct vnode *vp, struct page *pages, u_offset_t * offp,
+                size_t * lenp, int flags, afs_ucred_t *credp);
 
 #endif /* _OSI_PROTOTYPES_H_ */
index 6bd5428..1f19690 100644 (file)
@@ -43,7 +43,6 @@ osi_PrePopulateVCache(struct vcache *avc) {
 
     rw_init(&avc->rwlock, "vcache rwlock", RW_DEFAULT, NULL);
 
-#if defined(AFS_SUN55_ENV)
     /* This is required if the kaio (kernel aynchronous io)
      ** module is installed. Inside the kernel, the function
      ** check_vp( common/os/aio.c) checks to see if the kernel has
@@ -56,7 +55,6 @@ osi_PrePopulateVCache(struct vcache *avc) {
      ** for the time being, we fill up the v_data field with the
      ** vnode pointer itself. */
     avc->v.v_data = (char *)avc;
-#endif /* AFS_SUN55_ENV */
 
 #if defined(AFS_BOZONLOCK_ENV)
     afs_BozonInit(&avc->pvnLock, avc);
@@ -72,10 +70,8 @@ osi_PostPopulateVCache(struct vcache *avc) {
     AFSTOV(avc)->v_vfsp = afs_globalVFS;
     vSetType(avc, VREG);
 
-#ifdef AFS_SUN58_ENV
     /* Normally we do this in osi_vnhold when we notice the ref count went from
      * 0 -> 1. But if we just setup or reused a vcache, we set the refcount to
      * 1 directly. So, we must explicitly VFS_HOLD here. */
     VFS_HOLD(afs_globalVFS);
-#endif
 }
index 254c9ac..7d69c34 100644 (file)
 #endif
 #include <sys/kobj.h>
 
-#ifdef AFS_SUN58_ENV
-# include <sys/mount.h>
-#endif
+#include <sys/mount.h>
 
 struct vfs *afs_globalVFS = 0;
 struct vcache *afs_globalVp = 0;
 
-#if defined(AFS_SUN57_64BIT_ENV)
+#if defined(AFS_SUN5_64BIT_ENV)
 extern struct sysent sysent32[];
 #endif
 
@@ -83,13 +81,8 @@ afs_freevfs(void)
     afs_shutdown();
 }
 
-#if defined(AFS_SUN58_ENV)
 int
 afs_unmount(struct vfs *afsp, int flag, afs_ucred_t *credp)
-#else
-int
-afs_unmount(struct vfs *afsp, afs_ucred_t *credp)
-#endif
 {
     struct vcache *rootvp = NULL;
 
@@ -105,7 +98,6 @@ afs_unmount(struct vfs *afsp, afs_ucred_t *credp)
         return (EPERM);
     }
 
-#ifdef AFS_SUN58_ENV
     if (flag & MS_FORCE) {
        AFS_GUNLOCK();
        return ENOTSUP;
@@ -126,7 +118,6 @@ afs_unmount(struct vfs *afsp, afs_ucred_t *credp)
     }
 
     afsp->vfs_flag |= VFS_UNMOUNTED;
-#endif /* AFS_SUN58_ENV */
 
     /* release the root vnode, which should be the last reference to us
      * besides the caller of afs_unmount */
@@ -134,16 +125,10 @@ afs_unmount(struct vfs *afsp, afs_ucred_t *credp)
     afs_globalVp = NULL;
     AFS_RELE(rootvp);
 
-#ifndef AFS_SUN58_ENV
-    /* shutdown now, since gafs_freevfs() will not be called */
-    afs_freevfs();
-#endif /* !AFS_SUN58_ENV */
-
     AFS_GUNLOCK();
     return 0;
 }
 
-#ifdef AFS_SUN58_ENV
 void
 gafs_freevfs(struct vfs *afsp)
 {
@@ -153,7 +138,6 @@ gafs_freevfs(struct vfs *afsp)
 
     AFS_GUNLOCK();
 }
-#endif /* AFS_SUN58_ENV */
 
 int
 afs_root(struct vfs *afsp, struct vnode **avpp)
@@ -235,13 +219,8 @@ again:
     return code;
 }
 
-#ifdef AFS_SUN56_ENV
 int
 afs_statvfs(struct vfs *afsp, struct statvfs64 *abp)
-#else
-int
-afs_statvfs(struct vfs *afsp, struct statvfs *abp)
-#endif
 {
     AFS_GLOCK();
 
@@ -353,9 +332,7 @@ struct vfsops Afs_vfsops = {
     afs_vget,
     afs_mountroot,
     afs_swapvp,
-#if defined(AFS_SUN58_ENV)
     gafs_freevfs,
-#endif
 };
 #endif
 
@@ -420,12 +397,12 @@ afsinit(struct vfssw *vfsswp, int fstype)
     sysent[SYS_setgroups].sy_callc = afs_xsetgroups;
     sysent[SYS_ioctl].sy_call = afs_xioctl;
 
-#if defined(AFS_SUN57_64BIT_ENV)
+#if defined(AFS_SUN5_64BIT_ENV)
     afs_orig_setgroups32 = sysent32[SYS_setgroups].sy_callc;
     afs_orig_ioctl32 = sysent32[SYS_ioctl].sy_call;
     sysent32[SYS_setgroups].sy_callc = afs_xsetgroups;
     sysent32[SYS_ioctl].sy_call = afs_xioctl;
-#endif /* AFS_SUN57_64BIT_ENV */
+#endif /* AFS_SUN5_64BIT_ENV */
 
 #ifdef AFS_SUN510_ENV
     vfs_setfsops(fstype, afs_vfsops_template, &afs_vfsopsp);
@@ -548,7 +525,7 @@ static struct modlsys afsmodlsys = {
   * land here from sysent or sysent32
   */
 
-# if defined(AFS_SUN57_64BIT_ENV)
+# if defined(AFS_SUN5_64BIT_ENV)
 extern struct mod_ops mod_syscallops32;
 
 static struct modlsys afsmodlsys32 = {
@@ -567,7 +544,7 @@ static struct modlinkage afs_modlinkage = {
     (void *)&afs_modldrv,
 #else
     (void *)&afsmodlsys,
-# ifdef AFS_SUN57_64BIT_ENV
+# ifdef AFS_SUN5_64BIT_ENV
     (void *)&afsmodlsys32,
 # endif
 #endif /* !AFS_SUN511_ENV */
@@ -580,7 +557,7 @@ reset_sysent(void)
     if (afs_sinited) {
        sysent[SYS_setgroups].sy_callc = afs_orig_setgroups;
        sysent[SYS_ioctl].sy_call = afs_orig_ioctl;
-#if defined(AFS_SUN57_64BIT_ENV)
+#if defined(AFS_SUN5_64BIT_ENV)
        sysent32[SYS_setgroups].sy_callc = afs_orig_setgroups32;
        sysent32[SYS_ioctl].sy_call = afs_orig_ioctl32;
 #endif
@@ -614,7 +591,6 @@ _init()
        return (ENOSYS);
     }
 #ifndef        AFS_NONFSTRANS
-#if     defined(AFS_SUN55_ENV)
     if ((!(mp = mod_find_by_filename("misc", "nfssrv"))
         && !(mp = mod_find_by_filename(NULL, NFSSRV))
         && !(mp = mod_find_by_filename(NULL, NFSSRV_V9))
@@ -626,59 +602,8 @@ _init()
            ("misc/nfssrv module must be loaded before loading afs with nfs-xlator\n");
        return (ENOSYS);
     }
-#else /* !AFS_SUN55_ENV */
-#if    defined(AFS_SUN52_ENV)
-    if ((!(mp = mod_find_by_filename("fs", "nfs"))
-        && !(mp = mod_find_by_filename(NULL, "/kernel/fs/nfs"))
-        && !(mp = mod_find_by_filename(NULL, "sys/nfs"))) || (mp
-                                                              && !mp->
-                                                              mod_installed))
-    {
-       printf
-           ("fs/nfs module must be loaded before loading afs with nfs-xlator\n");
-       return (ENOSYS);
-    }
-#endif /* AFS_SUN52_ENV */
-#endif /* AFS_SUN55_ENV */
 #endif /* !AFS_NONFSTRANS */
 
-#ifndef AFS_SUN511_ENV
-    /* syscall initialization stff */
-
-# if !defined(AFS_SUN58_ENV)
-    /* 
-     * Re-read the /etc/name_to_sysnum file to make sure afs isn't added after
-     * reboot.  Ideally we would like to call modctl_read_sysbinding_file() but
-     * unfortunately in Solaris 2.2 it became a local function so we have to do
-     * the read_binding_file() direct call with the appropriate text file and
-     * system call hashtable.  make_syscallname actually copies "afs" to the
-     * proper slot entry and we also actually have to properly initialize the
-     * global sysent[AFS_SYSCALL] entry!
-     */
-#  ifdef       AFS_SUN53_ENV
-#   ifndef     SYSBINDFILE
-#    define    SYSBINDFILE     "/etc/name_to_sysnum"
-#   endif /* SYSBINDFILE */
-    read_binding_file(SYSBINDFILE, sb_hashtab);
-#  else /* !AFS_SUN53_ENV */
-    read_binding_file(sysbind, sb_hashtab);
-#  endif /* AFS_SUN53_ENV */
-    make_syscallname("afs", AFS_SYSCALL);
-
-    if (sysent[AFS_SYSCALL].sy_call == nosys) {
-       if ((sysn = mod_getsysname(AFS_SYSCALL)) != NULL) {
-           sysent[AFS_SYSCALL].sy_lock =
-               (krwlock_t *) kobj_zalloc(sizeof(krwlock_t), KM_SLEEP);
-           rw_init(sysent[AFS_SYSCALL].sy_lock, "afs_syscall",
-#  ifdef AFS_SUN57_ENV
-                   RW_DEFAULT, NULL);
-#  else /* !AFS_SUN57_ENV */
-                   RW_DEFAULT, DEFAULT_WT);
-#  endif /* AFS_SUN57_ENV */
-       }
-    }
-# endif /* !AFS_SUN58_ENV */
-#endif /* !AFS_SUN511_ENV */
 
     osi_Init();                        /* initialize global lock, etc */
 
index a6a58f5..4914120 100644 (file)
@@ -110,12 +110,8 @@ void
 osi_VM_StoreAllSegments(struct vcache *avc)
 {
     AFS_GUNLOCK();
-#if    defined(AFS_SUN56_ENV)
     (void)pvn_vplist_dirty(AFSTOV(avc), (u_offset_t) 0, afs_putapage, 0,
                           CRED());
-#else
-    (void)pvn_vplist_dirty(AFSTOV(avc), 0, afs_putapage, 0, CRED());
-#endif
     AFS_GLOCK();
 }
 
@@ -129,13 +125,8 @@ void
 osi_VM_TryToSmush(struct vcache *avc, afs_ucred_t *acred, int sync)
 {
     AFS_GUNLOCK();
-#if    defined(AFS_SUN56_ENV)
     (void)pvn_vplist_dirty(AFSTOV(avc), (u_offset_t) 0, afs_putapage,
                           (sync ? B_INVAL : B_FREE), acred);
-#else
-    (void)pvn_vplist_dirty(AFSTOV(avc), 0, afs_putapage,
-                          (sync ? B_INVAL : B_FREE), acred);
-#endif
     AFS_GLOCK();
 }
 
index cfd1124..d2ae694 100644 (file)
@@ -156,11 +156,7 @@ afs_getpage(struct vnode *vp, offset_t off, u_int len, u_int *protp,
 
     if (len <= PAGESIZE)
        code =
-           afs_GetOnePage(vp, 
-#if !defined(AFS_SUN56_ENV)
-                          (u_int)
-#endif
-                          off, len, protp, pl, plsz, seg, addr, rw, acred);
+           afs_GetOnePage(vp, off, len, protp, pl, plsz, seg, addr, rw, acred);
     else {
        struct vcache *vcp = VTOAFS(vp);
        ObtainWriteLock(&vcp->vlock, 548);
@@ -168,11 +164,7 @@ afs_getpage(struct vnode *vp, offset_t off, u_int len, u_int *protp,
        ReleaseWriteLock(&vcp->vlock);
        afs_BozonLock(&vcp->pvnLock, vcp);
        code =
-           pvn_getpages(afs_GetOnePage, vp, 
-#if !defined(AFS_SUN56_ENV)
-                        (u_int)
-#endif
-                        off, len, protp, pl, plsz, seg, addr, rw, acred);
+           pvn_getpages(afs_GetOnePage, vp, off, len, protp, pl, plsz, seg, addr, rw, acred);
        afs_BozonUnlock(&vcp->pvnLock, vcp);
        ObtainWriteLock(&vcp->vlock, 549);
        vcp->multiPage--;
@@ -184,15 +176,9 @@ afs_getpage(struct vnode *vp, offset_t off, u_int len, u_int *protp,
 
 /* Return all the pages from [off..off+len) in file */
 int
-#if    defined(AFS_SUN56_ENV)
 afs_GetOnePage(struct vnode *vp, u_offset_t off, u_int alen, u_int *protp, 
               struct page *pl[], u_int plsz, struct seg *seg, caddr_t addr, 
               enum seg_rw rw, afs_ucred_t *acred)
-#else
-afs_GetOnePage(struct vnode *vp, u_int off, u_int alen, u_int *protp, 
-              struct page *pl[], u_int plsz, struct seg *seg, caddr_t addr, 
-              enum seg_rw rw, afs_ucred_t *acred)
-#endif
 {
     struct page *page;
     afs_int32 code = 0;
@@ -362,24 +348,14 @@ afs_GetOnePage(struct vnode *vp, u_int off, u_int alen, u_int *protp,
        /* if we make it here, we can't find the page in memory.  Do a real disk read
         * from the cache to get the data */
        Code |= 0x200;          /* XXX */
-#if    defined(AFS_SUN54_ENV)
        /* use PG_EXCL because we know the page does not exist already.  If it 
         * actually does exist, we have somehow raced between lookup and create.
         * As of 4/98, that shouldn't be possible, but we'll be defensive here
         * in case someone tries to relax all the serialization of read and write
         * operations with harmless things like stat. */
-#if    defined(AFS_SUN58_ENV)
        page =
            page_create_va(vp, toffset, PAGESIZE, PG_WAIT | PG_EXCL, seg,
                           addr);
-#else
-       page =
-           page_create_va(vp, toffset, PAGESIZE, PG_WAIT | PG_EXCL,
-                          seg->s_as, addr);
-#endif
-#else
-       page = page_create(vp, toffset, PAGESIZE, PG_WAIT);
-#endif
        if (!page) {
            continue;
        }
@@ -395,11 +371,7 @@ afs_GetOnePage(struct vnode *vp, u_int off, u_int alen, u_int *protp,
            buf = pageio_setup(page, PAGESIZE, vp, B_READ);     /* allocate a buf structure */
            buf->b_edev = 0;
            buf->b_dev = 0;
-#if defined(AFS_SUN56_ENV)
            buf->b_lblkno = lbtodb(toffset);
-#else
-           buf->b_blkno = btodb(toffset);
-#endif
            bp_mapin(buf);      /* map it in to our address space */
 
            AFS_GLOCK();
@@ -422,12 +394,7 @@ afs_GetOnePage(struct vnode *vp, u_int off, u_int alen, u_int *protp,
       nextpage:
        /* put page in array and continue */
        /* The p_selock must be downgraded to a shared lock after the page is read */
-#if    defined(AFS_SUN56_ENV)
-       if ((rw != S_CREATE) && !(PAGE_SHARED(page)))
-#else
-       if ((rw != S_CREATE) && !(se_shared_assert(&page->p_selock)))
-#endif
-       {
+       if ((rw != S_CREATE) && !(PAGE_SHARED(page))) {
            page_downgrade(page);
        }
        pl[slot++] = page;
@@ -485,18 +452,10 @@ afs_putpage(struct vnode *vp, offset_t off, u_int len, int flags,
     struct vcache *avc;
     struct page *pages;
     afs_int32 code = 0;
-#if    defined(AFS_SUN58_ENV)
     size_t tlen;
-#else
-    afs_int32 tlen;
-#endif
     afs_offs_t endPos;
     afs_int32 NPages = 0;
-#if    defined(AFS_SUN56_ENV)
     u_offset_t toff = off;
-#else
-    int toff = (int)off;
-#endif
     int didWriteLock;
 
     AFS_STATCNT(afs_putpage);
@@ -554,11 +513,7 @@ afs_putpage(struct vnode *vp, offset_t off, u_int len, int flags,
        }
 
        AFS_GUNLOCK();
-#if    defined(AFS_SUN56_ENV)
        code = pvn_vplist_dirty(vp, toff, afs_putapage, flags, cred);
-#else
-       code = pvn_vplist_dirty(vp, (u_int) off, afs_putapage, flags, cred);
-#endif
        AFS_GLOCK();
     }
 
@@ -583,16 +538,8 @@ afs_putpage(struct vnode *vp, offset_t off, u_int len, int flags,
 
 
 int
-#if defined(AFS_SUN58_ENV)
 afs_putapage(struct vnode *vp, struct page *pages, u_offset_t * offp,
             size_t * lenp, int flags, afs_ucred_t *credp)
-#elif defined(AFS_SUN56_ENV)
-afs_putapage(struct vnode *vp, struct page *pages, u_offset_t * offp,
-            u_int * lenp, int flags, afs_ucred_t *credp)
-#else
-afs_putapage(struct vnode *vp, struct page *pages, u_int * offp,
-            u_int * lenp, int flags, afs_ucred_t *credp)
-#endif
 {
     struct buf *tbuf;
     struct vcache *avc = VTOAFS(vp);
@@ -621,11 +568,7 @@ afs_putapage(struct vnode *vp, struct page *pages, u_int * offp,
            return (ENOMEM);
 
        tbuf->b_dev = 0;
-#if defined(AFS_SUN56_ENV)
        tbuf->b_lblkno = lbtodb(pages->p_offset);
-#else
-       tbuf->b_blkno = btodb(pages->p_offset);
-#endif
        bp_mapin(tbuf);
        AFS_GLOCK();
        afs_Trace4(afs_iclSetp, CM_TRACE_PAGEOUTONE, ICL_TYPE_LONG, avc,
@@ -718,11 +661,7 @@ afs_nfsrdwr(struct vcache *avc, struct uio *auio, enum uio_rw arw,
 
     /* adjust parameters when appending files */
     if ((ioflag & IO_APPEND) && arw == UIO_WRITE) {
-#if defined(AFS_SUN56_ENV)
        auio->uio_loffset = avc->f.m.Length;    /* write at EOF position */
-#else
-       auio->uio_offset = avc->f.m.Length;     /* write at EOF position */
-#endif
     }
     if (auio->afsio_offset < 0 || (auio->afsio_offset + auio->uio_resid) < 0) {
        ReleaseWriteLock(&avc->lock);
@@ -741,7 +680,6 @@ afs_nfsrdwr(struct vcache *avc, struct uio *auio, enum uio_rw arw,
     didFakeOpen = 0;           /* keep track of open so we can do close */
     if (arw == UIO_WRITE) {
        /* do ulimit processing; shrink resid or fail */
-#if    defined(AFS_SUN56_ENV)
        if (auio->uio_loffset + auio->afsio_resid > auio->uio_llimit) {
            if (auio->uio_loffset >= auio->uio_llimit) {
                ReleaseWriteLock(&avc->lock);
@@ -757,25 +695,6 @@ afs_nfsrdwr(struct vcache *avc, struct uio *auio, enum uio_rw arw,
                extraResid -= auio->uio_resid;
            }
        }
-#else
-#ifdef AFS_SUN52_ENV
-       if (auio->afsio_offset + auio->afsio_resid > auio->uio_limit) {
-           if (auio->afsio_offset >= auio->uio_limit) {
-               ReleaseWriteLock(&avc->lock);
-               afs_BozonUnlock(&avc->pvnLock, avc);
-               return EFBIG;
-           } else {
-               /* track # of bytes we should write, but won't because of
-                * ulimit; we must add this into the final resid value
-                * so caller knows we punted some data.
-                */
-               extraResid = auio->uio_resid;
-               auio->uio_resid = auio->uio_limit - auio->afsio_offset;
-               extraResid -= auio->uio_resid;
-           }
-       }
-#endif
-#endif /* SUN56 */
        mode = S_WRITE;         /* segment map-in mode */
        afs_FakeOpen(avc);      /* do this for writes, so data gets put back
                                 * when we want it to be put back */
@@ -898,13 +817,8 @@ afs_nfsrdwr(struct vcache *avc, struct uio *auio, enum uio_rw arw,
        }
        ReleaseWriteLock(&avc->lock);   /* uiomove may page fault */
        AFS_GUNLOCK();
-#if    defined(AFS_SUN56_ENV)
        data = segmap_getmap(segkmap, AFSTOV(avc), (u_offset_t) pageBase);
        raddr = (caddr_t) (((uintptr_t) data + pageOffset) & PAGEMASK);
-#else
-       data = segmap_getmap(segkmap, AFSTOV(avc), pageBase);
-       raddr = (caddr_t) (((u_int) data + pageOffset) & PAGEMASK);
-#endif
        rsize =
            (((u_int) data + pageOffset + tsize + PAGEOFFSET) & PAGEMASK) -
            (u_int) raddr;
@@ -988,24 +902,16 @@ afs_nfsrdwr(struct vcache *avc, struct uio *auio, enum uio_rw arw,
     ReleaseWriteLock(&avc->lock);
     afs_BozonUnlock(&avc->pvnLock, avc);
     if (!code) {
-#ifdef AFS_SUN53_ENV
        if ((ioflag & FSYNC) && (arw == UIO_WRITE)
            && !AFS_NFSXLATORREQ(acred))
            code = afs_fsync(avc, 0, acred);
-#else
-       if ((ioflag & IO_SYNC) && (arw == UIO_WRITE)
-           && !AFS_NFSXLATORREQ(acred))
-           code = afs_fsync(avc, acred);
-#endif
     }
-#ifdef AFS_SUN52_ENV
     /* 
      * If things worked, add in as remaining in request any bytes
      * we didn't write due to file size ulimit.
      */
     if (code == 0 && extraResid > 0)
        auio->uio_resid += extraResid;
-#endif
     return afs_CheckCode(code, &treq, 46);
 }
 
@@ -1058,13 +964,7 @@ afs_map(struct vnode *vp, offset_t off, struct as *as, caddr_t *addr, u_int len,
     AFS_GUNLOCK();
     as_rangelock(as);
     if ((flags & MAP_FIXED) == 0) {
-#if    defined(AFS_SUN57_ENV)
        map_addr(addr, len, off, 1, flags);
-#elif  defined(AFS_SUN56_ENV)
-       map_addr(addr, len, off, 1);
-#else
-       map_addr(addr, len, (off_t) off, 1);
-#endif
        if (*addr == NULL) {
            as_rangeunlock(as);
            code = ENOMEM;
@@ -1185,11 +1085,8 @@ int
 #ifdef AFS_SUN59_ENV
 afs_frlock(struct vnode *vnp, int cmd, struct flock64 *ap, int flag, 
           offset_t off, struct flk_callback *flkcb, afs_ucred_t *credp)
-#elif defined(AFS_SUN56_ENV)
-afs_frlock(struct vnode *vnp, int cmd, struct flock64 *ap, int flag, 
-          offset_t off, afs_ucred_t *credp)
 #else
-afs_frlock(struct vnode *vnp, int cmd, struct flock *ap, int flag, 
+afs_frlock(struct vnode *vnp, int cmd, struct flock64 *ap, int flag,
           offset_t off, afs_ucred_t *credp)
 #endif
 {
@@ -1204,20 +1101,11 @@ afs_frlock(struct vnode *vnp, int cmd, struct flock *ap, int flag,
 #endif
     if ((cmd == F_GETLK) || (cmd == F_O_GETLK) || (cmd == F_SETLK)
        || (cmd == F_SETLKW)) {
-#ifdef AFS_SUN53_ENV
        ap->l_pid = ttoproc(curthread)->p_pid;
        ap->l_sysid = 0;
-#else
-       ap->l_pid = ttoproc(curthread)->p_epid;
-       ap->l_sysid = ttoproc(curthread)->p_sysid;
-#endif
 
        AFS_GUNLOCK();
-#ifdef AFS_SUN56_ENV
        code = convoff(vnp, ap, 0, off);
-#else
-       code = convoff(vnp, ap, 0, (off_t) off);
-#endif
        if (code)
            return code;
        AFS_GLOCK();
@@ -1230,23 +1118,14 @@ afs_frlock(struct vnode *vnp, int cmd, struct flock *ap, int flag,
 
 
 int
-#if    defined(AFS_SUN56_ENV)
 afs_space(struct vnode *vnp, int cmd, struct flock64 *ap, int flag, 
          offset_t off, afs_ucred_t *credp)
-#else
-afs_space(struct vnode *vnp, int cmd, struct flock *ap, int flag, 
-         offset_t off, afs_ucred_t *credp)
-#endif
 {
     afs_int32 code = EINVAL;
     struct vattr vattr;
 
     if ((cmd == F_FREESP)
-#ifdef AFS_SUN56_ENV
        && ((code = convoff(vnp, ap, 0, off)) == 0)) {
-#else
-       && ((code = convoff(vnp, ap, 0, (off_t) off)) == 0)) {
-#endif
        AFS_GLOCK();
        if (!ap->l_len) {
            vattr.va_mask = AT_SIZE;
@@ -1303,7 +1182,6 @@ afs_dumpctl(struct vnode *vp, int i)
     return EINVAL;
 }
 
-#ifdef AFS_SUN54_ENV
 #ifdef AFS_SUN511_ENV
 extern void
 afs_dispose(struct vnode *vp, struct page *p, int fl, int dn, struct cred *cr, struct caller_context_t *ct)
@@ -1342,7 +1220,6 @@ afs_getsecattr(struct vnode *vp, vsecattr_t *vsecattr, int flag, struct cred *cr
     return fs_fab_acl(vp, vsecattr, flag, creds);
 }
 #endif
-#endif
 
 #ifdef AFS_GLOBAL_SUNLOCK
 extern int gafs_open(struct vcache **avcp, afs_int32 aflags, 
@@ -1377,12 +1254,7 @@ extern int gafs_rmdir(struct vcache *adp, char *aname,
 extern int gafs_mkdir(struct vcache *adp, char *aname, 
                      struct vattr *attrs, struct vcache **avcp, 
                      afs_ucred_t *acred);
-extern int
-#ifdef  AFS_SUN53_ENV
-gafs_fsync(struct vcache *avc, int flag, afs_ucred_t *acred);
-#else
-gafs_fsync(struct vcache *avc, afs_ucred_t *acred);
-#endif
+extern int gafs_fsync(struct vcache *avc, int flag, afs_ucred_t *acred);
 extern int gafs_readlink(struct vcache *avc, struct uio *auio, 
                         afs_ucred_t *acred);
 extern int gafs_readdir(struct vcache *avc, struct uio *auio,
@@ -1540,14 +1412,10 @@ struct vnodeops Afs_vnodeops = {
     afs_pathconf,
     afs_pageio,
     afs_dumpctl,
-#ifdef AFS_SUN54_ENV
     afs_dispose,
     afs_setsecattr,
     afs_getsecattr,
-#endif
-#if    defined(AFS_SUN56_ENV)
     fs_shrlock,
-#endif
 };
 struct vnodeops *afs_ops = &Afs_vnodeops;
 #endif
@@ -1760,20 +1628,12 @@ gafs_readlink(struct vcache *avc, struct uio *auio, afs_ucred_t *acred)
 }
 
 int
-#ifdef AFS_SUN53_ENV
 gafs_fsync(struct vcache *avc, int flag, afs_ucred_t *acred)
-#else
-gafs_fsync(struct vcache *avc, afs_ucred_t *acred)
-#endif
 {
     int code;
 
     AFS_GLOCK();
-#ifdef AFS_SUN53_ENV
     code = afs_fsync(avc, flag, acred);
-#else
-    code = afs_fsync(avc, acred);
-#endif
     AFS_GUNLOCK();
     return (code);
 }
@@ -1816,13 +1676,11 @@ afs_inactive(struct vcache *avc, afs_ucred_t *acred)
 
     afs_InactiveVCache(avc, acred);
 
-#ifdef AFS_SUN58_ENV
     AFS_GUNLOCK();
     /* VFS_RELE must be called outside of GLOCK, since it can potentially
      * call afs_freevfs, which acquires GLOCK */
     VFS_RELE(afs_globalVFS);
     AFS_GLOCK();
-#endif
 
     return 0;
 }
index 6aebeaa..189f5da 100644 (file)
@@ -90,7 +90,7 @@ afs_CopyOutAttrs(struct vcache *avc, struct vattr *attrs)
 #endif /* AFS_DARWIN_ENV */
     attrs->va_uid = fakedir ? 0 : avc->f.m.Owner;
     attrs->va_gid = fakedir ? 0 : avc->f.m.Group;      /* yeah! */
-#if defined(AFS_SUN56_ENV)
+#if defined(AFS_SUN5_ENV)
     attrs->va_fsid = avc->v.v_vfsp->vfs_fsid.val[0];
 #elif defined(AFS_DARWIN80_ENV)
     VATTR_RETURN(attrs, va_fsid, vfs_statfs(vnode_mount(AFSTOV(avc)))->f_fsid.val[0]);
index 8dc5150..d0e26eb 100644 (file)
@@ -68,7 +68,7 @@ extern int afs_NFSRootOnly;   /* 1 => only allow NFS mounts of /afs. */
 int
 #ifdef AFS_AIX41_ENV
 afs_fid(OSI_VC_DECL(avc), struct fid *fidpp, struct ucred *credp)
-#elif defined(AFS_SUN54_ENV)
+#elif defined(AFS_SUN5_ENV)
 afs_fid(OSI_VC_DECL(avc), struct fid *fidpp)
 #else
 afs_fid(OSI_VC_DECL(avc), struct fid **fidpp)
@@ -105,7 +105,7 @@ afs_fid(OSI_VC_DECL(avc), struct fid **fidpp)
        if (avc->f.fid.Fid.Unique > 0xffffff)
            afs_fid_uniqueoverflow++;
     } else {
-#if defined(AFS_SUN57_64BIT_ENV) || (defined(AFS_SGI61_ENV) && (_MIPS_SZPTR == 64))
+#if defined(AFS_SUN5_64BIT_ENV) || (defined(AFS_SGI61_ENV) && (_MIPS_SZPTR == 64))
        addr[1] = (long)AFS_XLATOR_MAGIC << 48;
 #else /* defined(AFS_SGI61_ENV) && (_MIPS_SZPTR == 64) */
        addr[1] = AFS_XLATOR_MAGIC;
@@ -117,7 +117,7 @@ afs_fid(OSI_VC_DECL(avc), struct fid **fidpp)
        AFS_FAST_HOLD(avc);
 #endif
     }
-#if    defined(AFS_AIX_ENV) || defined(AFS_SUN54_ENV)
+#if    defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV)
     /* Use the fid pointer passed to us. */
     fidpp->fid_len = SizeOfSmallFid;
 
index 5b91a57..0e92fc0 100644 (file)
@@ -47,21 +47,11 @@ lockIdSet(struct AFS_FLOCK *flock, struct SimpleLocks *slp, int clid)
     proc_t *procp = ttoproc(curthread);
 
     if (slp) {
-# ifdef AFS_SUN53_ENV
        slp->sysid = 0;
        slp->pid = procp->p_pid;
-# else
-       slp->sysid = procp->p_sysid;
-       slp->pid = procp->p_epid;
-# endif
     } else {
-# ifdef AFS_SUN53_ENV
        flock->l_sysid = 0;
        flock->l_pid = procp->p_pid;
-# else
-       flock->l_sysid = procp->p_sysid;
-       flock->l_pid = procp->p_epid;
-# endif
     }
 }
 #elif defined(AFS_SGI_ENV)
@@ -580,7 +570,7 @@ int afs_lockctl(struct vcache * avc, struct AFS_FLOCK * af, int acmd,
     if (code) {
        goto done;
     }
-#if (defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV)) && !defined(AFS_SUN58_ENV)
+#if defined(AFS_SGI_ENV)
     if ((acmd == F_GETLK) || (acmd == F_RGETLK)) {
 #else
     if (acmd == F_GETLK) {
@@ -593,7 +583,7 @@ int afs_lockctl(struct vcache * avc, struct AFS_FLOCK * af, int acmd,
        code = afs_CheckCode(code, &treq, 2);   /* defeat buggy AIX optimz */
        goto done;
     } else if ((acmd == F_SETLK) || (acmd == F_SETLKW)
-#if (defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV)) && !defined(AFS_SUN58_ENV)
+#if defined(AFS_SGI_ENV)
               || (acmd == F_RSETLK) || (acmd == F_RSETLKW)) {
 #else
        ) {
@@ -620,7 +610,7 @@ int afs_lockctl(struct vcache * avc, struct AFS_FLOCK * af, int acmd,
        return EINVAL;          /* unknown lock type */
     }
     if (((acmd == F_SETLK)
-#if    (defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV)) && !defined(AFS_SUN58_ENV)
+#if    defined(AFS_SGI_ENV)
         || (acmd == F_RSETLK)
 #endif
        ) && code != LOCK_UN)
index b7ecbb1..2dcb576 100644 (file)
@@ -212,12 +212,9 @@ int afs_rd_stash_i = 0;
 #define DIRSIZ_LEN(len) \
     ((sizeof (struct __dirent) - (_MAXNAMLEN+1)) + (((len)+1 + DIRPAD) &~ DIRPAD))
 #else
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
 #define DIRSIZ_LEN(len) ((18 + (len) + 1 + 7) & ~7 )
 #else
-#ifdef AFS_SUN5_ENV
-#define DIRSIZ_LEN(len)        ((10 + (len) + 1 + (NBPW-1)) & ~(NBPW-1))
-#else
 #ifdef AFS_NBSD40_ENV
 #define DIRSIZ_LEN(len) \
     ((sizeof (struct dirent) - (MAXNAMLEN+1)) + (((len)+1 + 7) & ~7))
@@ -238,7 +235,6 @@ int afs_rd_stash_i = 0;
 #endif /* AFS_DIRENT */
 #endif /* AFS_NBSD40_ENV */
 #endif /* AFS_SUN5_ENV */
-#endif /* AFS_SUN56_ENV */
 #endif /* AFS_HPUX100_ENV */
 
 #if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
@@ -306,13 +302,13 @@ afs_readdir_move(struct DirEntry *de, struct vcache *vc, struct uio *auio,
     struct volume *tvp;
     afs_uint32 Volume = vc->f.fid.Fid.Volume;
     afs_uint32 Vnode  = de->fid.vnode;
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
     struct dirent64 *direntp;
 #else
-#if  defined(AFS_SUN5_ENV) || (defined(AFS_AIX51_ENV) && defined(AFS_64BIT_KERNEL))
+#if  (defined(AFS_AIX51_ENV) && defined(AFS_64BIT_KERNEL))
     struct dirent *direntp;
 #endif
-#endif /* AFS_SUN56_ENV */
+#endif /* AFS_SUN5_ENV */
 #ifndef        AFS_SGI53_ENV
     struct min_direct sdirEntry;
 #endif /* AFS_SGI53_ENV */
@@ -464,7 +460,7 @@ afs_readdir_move(struct DirEntry *de, struct vcache *vc, struct uio *auio,
     }
 #else /* AFS_SGI53_ENV */
 #if  defined(AFS_SUN5_ENV) || (defined(AFS_AIX51_ENV) && defined(AFS_64BIT_KERNEL))
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
     direntp = (struct dirent64 *)osi_AllocLargeSpace(AFS_LRALLOCSIZ);
 #else
     direntp = (struct dirent *)osi_AllocLargeSpace(AFS_LRALLOCSIZ);
index 26150ad..90e7811 100644 (file)
@@ -263,7 +263,7 @@ afs_write(struct vcache *avc, struct uio *auio, int aio,
 #else
     if (aio & IO_APPEND) {
        /* append mode, start it at the right spot */
-#if     defined(AFS_SUN56_ENV)
+#if     defined(AFS_SUN5_ENV)
        auio->uio_loffset = 0;
 #endif
        filePos = avc->f.m.Length;
@@ -639,13 +639,13 @@ afs_close(OSI_VC_DECL(avc), afs_int32 aflags, afs_ucred_t *acred)
 
 
 int
-#if defined(AFS_SGI_ENV) || defined(AFS_SUN53_ENV)
+#if defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV)
 afs_fsync(OSI_VC_DECL(avc), int flag, afs_ucred_t *acred
 # ifdef AFS_SGI65_ENV
          , off_t start, off_t stop
 # endif /* AFS_SGI65_ENV */
     )
-#else /* !SUN53 && !SGI */
+#else /* !SUN5 && !SGI */
 afs_fsync(OSI_VC_DECL(avc), afs_ucred_t *acred)
 #endif 
 {
index a911269..ed2e8a2 100644 (file)
@@ -53,7 +53,7 @@ extern int afs_shuttingdown;
 #if     defined(AFS_HPUX102_ENV)
 #define AFS_FLOCK       k_flock
 #else
-#if     defined(AFS_SUN56_ENV) || (defined(AFS_LINUX24_ENV) && !(defined(AFS_LINUX26_ENV) && defined(AFS_LINUX_64BIT_KERNEL)))
+#if     defined(AFS_SUN5_ENV) || (defined(AFS_LINUX24_ENV) && !(defined(AFS_LINUX26_ENV) && defined(AFS_LINUX_64BIT_KERNEL)))
 #define AFS_FLOCK       flock64
 #else
 #define AFS_FLOCK       flock
@@ -1120,7 +1120,7 @@ struct afs_fheader {
 
 #if defined(AFS_CACHE_VNODE_PATH)
 typedef char *afs_ufs_dcache_id_t;
-#elif defined(AFS_SGI61_ENV) || defined(AFS_SUN57_64BIT_ENV)
+#elif defined(AFS_SGI61_ENV) || defined(AFS_SUN5_64BIT_ENV)
 /* Using ino64_t here so that user level debugging programs compile
  * the size correctly.
  */
@@ -1534,7 +1534,6 @@ afs_set_cr_rgid(afs_ucred_t *cred, gid_t gid) {
  * to accomodate both, *long* is used instead of afs_int32
  */
 
-# ifdef AFS_SUN57_ENV
 struct afssysa {
     long syscall;
     long parm1;
@@ -1544,17 +1543,6 @@ struct afssysa {
     long parm5;
     long parm6;
 };
-# else
-struct afssysa {
-    afs_int32 syscall;
-    afs_int32 parm1;
-    afs_int32 parm2;
-    afs_int32 parm3;
-    afs_int32 parm4;
-    afs_int32 parm5;
-    afs_int32 parm6;
-};
-# endif
 extern int Afs_syscall(struct afssysa *uap, rval_t *rvp);
 #endif /* AFS_SUN5_ENV */
 
index 05d39a2..220311e 100644 (file)
 #include "afs/afs_util.h"
 #include "afs/unified_afs.h"
 
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
 #include <inet/led.h>
 #include <inet/common.h>
-#if     defined(AFS_SUN58_ENV)
 #include <netinet/ip6.h>
-#endif
 #include <inet/ip.h>
 #endif
 
index 97f518f..39f7b97 100644 (file)
@@ -606,7 +606,7 @@ afs_syscall_call(long parm, long parm2, long parm3,
 #endif
 {
     afs_int32 code = 0;
-#if defined(AFS_SGI61_ENV) || defined(AFS_SUN57_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
+#if defined(AFS_SGI61_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
     size_t bufferSize;
 #else /* AFS_SGI61_ENV */
     u_int bufferSize;
index abd0c18..f842a91 100644 (file)
 #include "afsincludes.h"       /* Afs-based standard headers */
 #include "afs/afs_stats.h"     /* afs statistics */
 
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
 #include <inet/led.h>
 #include <inet/common.h>
-#if     defined(AFS_SUN58_ENV)
 #include <netinet/ip6.h>
-#endif
 #include <inet/ip.h>
 #endif
 
index 7b0ad30..89edbbc 100644 (file)
 #include "afs/afs_util.h"
 #include "afs/unified_afs.h"
 
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
 #include <inet/led.h>
 #include <inet/common.h>
-#if     defined(AFS_SUN58_ENV)
 #include <netinet/ip6.h>
-#endif
 #include <inet/ip.h>
 #endif
 
index be9b502..ece5553 100644 (file)
@@ -126,7 +126,7 @@ Afscall_icl(long opcode, long p1, long p2, long p3, long p4, long *retval)
     afs_int32 code;
     struct afs_icl_log *logp;
     struct afs_icl_set *setp;
-#if defined(AFS_SGI61_ENV) || defined(AFS_SUN57_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
+#if defined(AFS_SGI61_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
     size_t temp;
 #else /* AFS_SGI61_ENV */
 #if defined(AFS_AIX51_ENV) && defined(AFS_64BIT_KERNEL)
index c414d56..2352262 100644 (file)
@@ -384,17 +384,17 @@ afs_InitCacheInfo(char *afile)
     if (code || !filevp)
        return ENOENT;
     {
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
        struct statvfs64 st;
 #elif  defined(AFS_HPUX102_ENV)
        struct k_statvfs st;
-#elif  defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV) || defined(AFS_HPUX100_ENV) || defined(AFS_NBSD40_ENV)
+#elif  defined(AFS_SGI_ENV) || defined(AFS_HPUX100_ENV) || defined(AFS_NBSD40_ENV)
        struct statvfs st;
 #elif defined(AFS_DARWIN80_ENV)
        struct vfsstatfs st;
 #else
        struct statfs st;
-#endif /* SUN56 */
+#endif /* SUN5 */
 
 #if    defined(AFS_SGI_ENV)
 #ifdef AFS_SGI65_ENV
index 39b92c9..9c7c56c 100644 (file)
 #define __XDR_INCLUDE__
 #include "afs/stds.h"
 #include "afs/sysincludes.h"   /* Standard vendor system headers */
-#if defined(AFS_SUN55_ENV) && !defined(AFS_NONFSTRANS)
+#if defined(AFS_SUN5_ENV) && !defined(AFS_NONFSTRANS)
 #include "rpc/types.h"
 #include "rpc/auth.h"
 #include "rpc/auth_unix.h"
 #include "rpc/auth_des.h"
-#if !defined(AFS_SUN58_ENV)
-#include "rpc/auth_kerb.h"
-#endif
 #include "sys/tiuser.h"
 #include "rpc/xdr.h"
 #include "rpc/svc.h"
@@ -314,7 +311,7 @@ afs_nfs2_smallfidder(struct nfsdiropres *dr)
     afs_int32 addr[2];
     struct vcache *vcp;
 
-#if defined(AFS_SUN57_64BIT_ENV)
+#if defined(AFS_SUN5_64BIT_ENV)
     /* See also afs_fid() */
     memcpy((char *)addr, fhp->fh_data, SIZEOF_SMALLFID);
     addr[1] = (addr[1] >> 48) & 0xffff;
@@ -816,11 +813,7 @@ nfs3_to_afs_call(int which, caddr_t * args, nfs_fh3 ** fhpp, nfs_fh3 ** fh2pp)
     case NFSPROC3_LOOKUP:
        {
            LOOKUP3args *arg = (LOOKUP3args *) args;
-#ifdef AFS_SUN58_ENV
            fhp1 = (nfs_fh3 *) arg->what.dirp;
-#else
-           fhp1 = (nfs_fh3 *) & arg->what.dir;
-#endif
            break;
        }
     case NFSPROC3_ACCESS:
@@ -850,84 +843,51 @@ nfs3_to_afs_call(int which, caddr_t * args, nfs_fh3 ** fhpp, nfs_fh3 ** fh2pp)
     case NFSPROC3_CREATE:
        {
            CREATE3args *arg = (CREATE3args *) args;
-#ifdef AFS_SUN58_ENV
            fhp1 = (nfs_fh3 *) arg->where.dirp;
-#else
-           fhp1 = (nfs_fh3 *) & arg->where.dir;
-#endif
            break;
        }
     case NFSPROC3_MKDIR:
        {
            MKDIR3args *arg = (MKDIR3args *) args;
-#ifdef AFS_SUN58_ENV
            fhp1 = (nfs_fh3 *) arg->where.dirp;
-#else
-           fhp1 = (nfs_fh3 *) & arg->where.dir;
-#endif
            break;
        }
     case NFSPROC3_SYMLINK:
        {
            SYMLINK3args *arg = (SYMLINK3args *) args;
-#ifdef AFS_SUN58_ENV
            fhp1 = (nfs_fh3 *) arg->where.dirp;
-#else
-           fhp1 = (nfs_fh3 *) & arg->where.dir;
-#endif
            break;
        }
     case NFSPROC3_MKNOD:
        {
            MKNOD3args *arg = (MKNOD3args *) args;
-#ifdef AFS_SUN58_ENV
            fhp1 = (nfs_fh3 *) arg->where.dirp;
-#else
-           fhp1 = (nfs_fh3 *) & arg->where.dir;
-#endif
            break;
        }
     case NFSPROC3_REMOVE:
        {
            REMOVE3args *arg = (REMOVE3args *) args;
-#ifdef AFS_SUN58_ENV
            fhp1 = (nfs_fh3 *) arg->object.dirp;
-#else
-           fhp1 = (nfs_fh3 *) & arg->object.dir;
-#endif
            break;
        }
     case NFSPROC3_RMDIR:
        {
            RMDIR3args *arg = (RMDIR3args *) args;
-#ifdef AFS_SUN58_ENV
            fhp1 = (nfs_fh3 *) arg->object.dirp;
-#else
-           fhp1 = (nfs_fh3 *) & arg->object.dir;
-#endif
            break;
        }
     case NFSPROC3_RENAME:
        {
            RENAME3args *arg = (RENAME3args *) args;
-#ifdef AFS_SUN58_ENV
            fhp1 = (nfs_fh3 *) arg->from.dirp;
            fhp2 = (nfs_fh3 *) arg->to.dirp;
-#else
-           fhp1 = (nfs_fh3 *) & arg->from.dir;
-           fhp2 = (nfs_fh3 *) & arg->to.dir;
-#endif
            break;
        }
     case NFSPROC3_LINK:
        {
            LINK3args *arg = (LINK3args *) args;
            fhp1 = (nfs_fh3 *) & arg->file;
-#ifdef AFS_SUN58_ENV
            fhp2 = (nfs_fh3 *) arg->link.dirp;
-#else
-           fhp2 = (nfs_fh3 *) & arg->link.dir;
-#endif
            break;
        }
     case NFSPROC3_READDIR:
@@ -1095,7 +1055,7 @@ afs_nfs3_smallfidder(struct nfs_fh3 *fhp, int status)
     afs_int32 addr[2];
     struct vcache *vcp;
 
-#if defined(AFS_SUN57_64BIT_ENV)
+#if defined(AFS_SUN5_64BIT_ENV)
     /* See also afs_fid() */
     memcpy((char *)addr, fhp->fh3_data, 10);
     addr[1] = (addr[1] >> 48) & 0xffff;
index 5496147..4829073 100644 (file)
@@ -205,21 +205,8 @@ afs_osi_SetTime(osi_timeval_t * atv)
     t.tv_sec = atv->tv_sec;
     t.tv_nsec = atv->tv_usec * 1000;
     ksettimer(&t);             /*  Was -> settimer(TIMEOFDAY, &t); */
-#elif defined(AFS_SUN55_ENV)
-    stime(atv->tv_sec);
 #elif defined(AFS_SUN5_ENV)
-    /*
-     * To get more than second resolution we can use adjtime. The problem
-     * is that the usecs from the server are wrong (by now) so it isn't
-     * worth complicating the following code.
-     */
-    struct stimea {
-       time_t time;
-    } sta;
-
-    sta.time = atv->tv_sec;
-
-    stime(&sta, NULL);
+    stime(atv->tv_sec);
 #elif defined(AFS_SGI_ENV)
     struct stimea {
        sysarg_t time;
index a194f94..3205a7b 100644 (file)
@@ -179,7 +179,7 @@ typedef struct {
     afs_int32 tv_sec;
     afs_int32 tv_usec;
 } osi_timeval_t;
-#elif defined(AFS_SUN57_ENV)
+#elif defined(AFS_SUN5_ENV)
 typedef struct timeval32 osi_timeval_t;
 #else
 typedef struct timeval osi_timeval_t;
index b186867..8e7d337 100644 (file)
@@ -667,19 +667,9 @@ afs_xioctl(struct afs_ioctl_sys *uap, rval_t *rvp)
     int ioctlDone = 0, code = 0;
 
     AFS_STATCNT(afs_xioctl);
-# if defined(AFS_SUN57_ENV)
     fd = getf(uap->fd);
     if (!fd)
        return (EBADF);
-# elif defined(AFS_SUN54_ENV)
-    fd = GETF(uap->fd);
-    if (!fd)
-       return (EBADF);
-# else
-    if (code = getf(uap->fd, &fd)) {
-       return (code);
-    }
-# endif
     if (fd->f_vnode->v_type == VREG || fd->f_vnode->v_type == VDIR) {
        tvc = VTOAFS(fd->f_vnode);      /* valid, given a vnode */
        if (tvc && IsAfsVnode(AFSTOV(tvc))) {
@@ -693,11 +683,7 @@ afs_xioctl(struct afs_ioctl_sys *uap, rval_t *rvp)
                if (code) {
                    osi_FreeSmallSpace(datap);
                    AFS_GUNLOCK();
-# if defined(AFS_SUN54_ENV)
                    releasef(uap->fd);
-# else
-                   releasef(fd);
-# endif
                    return (EFAULT);
                }
                code = HandleIoctl(tvc, uap->com, datap);
@@ -707,13 +693,7 @@ afs_xioctl(struct afs_ioctl_sys *uap, rval_t *rvp)
            }
        }
     }
-# if defined(AFS_SUN57_ENV)
     releasef(uap->fd);
-# elif defined(AFS_SUN54_ENV)
-    RELEASEF(uap->fd);
-# else
-    releasef(fd);
-# endif
     if (!ioctlDone)
        code = ioctl(uap, rvp);
 
@@ -2714,7 +2694,7 @@ Prefetch(uparmtype apath, struct afs_ioctl *adata, int afollow,
 {
     char *tp;
     afs_int32 code;
-#if defined(AFS_SGI61_ENV) || defined(AFS_SUN57_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
+#if defined(AFS_SGI61_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
     size_t bufferSize;
 #else
     u_int bufferSize;
index 7a18f27..b0e71a0 100644 (file)
@@ -1192,7 +1192,7 @@ struct fid;
 #if !defined(AFS_ATHENA_ENV)
 #ifdef AFS_AIX41_ENV
 int afs_fid(OSI_VC_DECL(avc), struct fid *fidpp, struct ucred *credp);
-#elif defined(AFS_SUN54_ENV)
+#elif defined(AFS_SUN5_ENV)
 int afs_fid(OSI_VC_DECL(avc), struct fid *fidpp);
 #else
 int afs_fid(OSI_VC_DECL(avc), struct fid **fidpp);
@@ -1362,7 +1362,7 @@ extern int afs_close(OSI_VC_DECL(avc), afs_int32 aflags,
 #if defined(AFS_SGI65_ENV)
 extern int afs_fsync(OSI_VC_DECL(avc), int flags, afs_ucred_t *acred,
                     off_t start, off_t stop);
-#elif defined(AFS_SGI_ENV) || defined(AFS_SUN53_ENV)
+#elif defined(AFS_SGI_ENV) || defined(AFS_SUN5_ENV)
 extern int afs_fsync(OSI_VC_DECL(avc), int flag, afs_ucred_t *acred);
 #else
 extern int afs_fsync(OSI_VC_DECL(avc), afs_ucred_t *acred);
index 83d393a..1baa80b 100644 (file)
 #include "afs/afs_stats.h"     /* afs statistics */
 #include "rx/rx_multi.h"
 
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
 #include <inet/led.h>
 #include <inet/common.h>
-#if     defined(AFS_SUN58_ENV)
-# include <netinet/ip6.h>
-# define ipif_local_addr ipif_lcl_addr
-#  ifndef V4_PART_OF_V6
-#  define V4_PART_OF_V6(v6)       v6.s6_addr32[3]
-#  endif
-# endif
+#include <netinet/ip6.h>
+#define ipif_local_addr ipif_lcl_addr
+#ifndef V4_PART_OF_V6
+# define V4_PART_OF_V6(v6)       v6.s6_addr32[3]
+#endif
 #include <inet/ip.h>
 #endif
 
@@ -1118,108 +1116,6 @@ afs_SortServers(struct server *aservers[], int count)
 
 #define        USEIFADDR
 
-
-#if    defined(AFS_SUN5_ENV) && ! defined(AFS_SUN56_ENV)
-#include <inet/common.h>
-/* IP interface structure, one per local address */
-typedef struct ipif_s {
-     /**/ struct ipif_s *ipif_next;
-    struct ill_s *ipif_ill;    /* Back pointer to our ill */
-    long ipif_id;              /* Logical unit number */
-    u_int ipif_mtu;            /* Starts at ipif_ill->ill_max_frag */
-    afs_int32 ipif_local_addr; /* Local IP address for this if. */
-    afs_int32 ipif_net_mask;   /* Net mask for this interface. */
-    afs_int32 ipif_broadcast_addr;     /* Broadcast addr for this interface. */
-    afs_int32 ipif_pp_dst_addr;        /* Point-to-point dest address. */
-    u_int ipif_flags;          /* Interface flags. */
-    u_int ipif_metric;         /* BSD if metric, for compatibility. */
-    u_int ipif_ire_type;       /* LOCAL or LOOPBACK */
-    mblk_t *ipif_arp_down_mp;  /* Allocated at time arp comes up to
-                                * prevent awkward out of mem condition
-                                * later
-                                */
-    mblk_t *ipif_saved_ire_mp; /* Allocated for each extra IRE_SUBNET/
-                                * RESOLVER on this interface so that
-                                * they can survive ifconfig down.
-                                */
-    /*
-     * The packet counts in the ipif contain the sum of the
-     * packet counts in dead IREs that were affiliated with
-     * this ipif.
-     */
-    u_long ipif_fo_pkt_count;  /* Forwarded thru our dead IREs */
-    u_long ipif_ib_pkt_count;  /* Inbound packets for our dead IREs */
-    u_long ipif_ob_pkt_count;  /* Outbound packets to our dead IREs */
-    unsigned int
-      ipif_multicast_up:1,     /* We have joined the allhosts group */
-    : 0;
-} ipif_t;
-
-typedef struct ipfb_s {
-     /**/ struct ipf_s *ipfb_ipf;      /* List of ... */
-    kmutex_t ipfb_lock;                /* Protect all ipf in list */
-} ipfb_t;
-
-typedef struct ilm_s {
-     /**/ afs_int32 ilm_addr;
-    int ilm_refcnt;
-    u_int ilm_timer;           /* IGMP */
-    struct ipif_s *ilm_ipif;   /* Back pointer to ipif */
-    struct ilm_s *ilm_next;    /* Linked list for each ill */
-} ilm_t;
-
-typedef struct ill_s {
-     /**/ struct ill_s *ill_next;      /* Chained in at ill_g_head. */
-    struct ill_s **ill_ptpn;   /* Pointer to previous next. */
-    queue_t *ill_rq;           /* Read queue. */
-    queue_t *ill_wq;           /* Write queue. */
-
-    int ill_error;             /* Error value sent up by device. */
-
-    ipif_t *ill_ipif;          /* Interface chain for this ILL. */
-    u_int ill_ipif_up_count;   /* Number of IPIFs currently up. */
-    u_int ill_max_frag;                /* Max IDU. */
-    char *ill_name;            /* Our name. */
-    u_int ill_name_length;     /* Name length, incl. terminator. */
-    u_int ill_subnet_type;     /* IRE_RESOLVER or IRE_SUBNET. */
-    u_int ill_ppa;             /* Physical Point of Attachment num. */
-    u_long ill_sap;
-    int ill_sap_length;                /* Including sign (for position) */
-    u_int ill_phys_addr_length;        /* Excluding the sap. */
-    mblk_t *ill_frag_timer_mp; /* Reassembly timer state. */
-    ipfb_t *ill_frag_hash_tbl; /* Fragment hash list head. */
-
-    queue_t *ill_bind_pending_q;       /* Queue waiting for DL_BIND_ACK. */
-    ipif_t *ill_ipif_pending;  /* IPIF waiting for DL_BIND_ACK. */
-
-    /* ill_hdr_length and ill_hdr_mp will be non zero if
-     * the underlying device supports the M_DATA fastpath
-     */
-    int ill_hdr_length;
-
-    ilm_t *ill_ilm;            /* Multicast mebership for lower ill */
-
-    /* All non-nil cells between 'ill_first_mp_to_free' and
-     * 'ill_last_mp_to_free' are freed in ill_delete.
-     */
-#define        ill_first_mp_to_free    ill_hdr_mp
-    mblk_t *ill_hdr_mp;                /* Contains fastpath template */
-    mblk_t *ill_bcast_mp;      /* DLPI header for broadcasts. */
-    mblk_t *ill_bind_pending;  /* T_BIND_REQ awaiting completion. */
-    mblk_t *ill_resolver_mp;   /* Resolver template. */
-    mblk_t *ill_attach_mp;
-    mblk_t *ill_bind_mp;
-    mblk_t *ill_unbind_mp;
-    mblk_t *ill_detach_mp;
-#define        ill_last_mp_to_free     ill_detach_mp
-
-    u_int ill_frag_timer_running:1, ill_needs_attach:1, ill_is_ptp:1,
-       ill_priv_stream:1, ill_unbind_pending:1, ill_pad_to_bit_31:27;
-      MI_HRT_DCL(ill_rtime)
-      MI_HRT_DCL(ill_rtmp)
-} ill_t;
-#endif
-
 #ifdef AFS_USERSPACE_IP_ADDR
 #ifndef afs_min
 #define afs_min(A,B) ((A)<(B)) ? (A) : (B)
@@ -1478,11 +1374,9 @@ afs_SetServerPrefs(struct srvAddr *sa)
 #else
     for (ill = (struct ill_s *)*addr /*ill_g_headp */ ; ill;
         ill = ill->ill_next) {
-#ifdef AFS_SUN58_ENV
        /* Make sure this is an IPv4 ILL */
        if (ill->ill_isv6)
            continue;
-#endif
        for (ipif = ill->ill_ipif; ipif; ipif = ipif->ipif_next) {
            subnet = ipif->ipif_local_addr & ipif->ipif_net_mask;
            subnetmask = ipif->ipif_net_mask;
index 6b7daeb..136ac0a 100644 (file)
@@ -29,7 +29,7 @@
 #endif
 #endif /* !defined(UKERNEL) */
 
-#if (defined(AFS_AIX51_ENV) && defined(AFS_64BIT_KERNEL)) || defined(AFS_HPUX_64BIT_ENV) || defined(AFS_SUN57_64BIT_ENV) || (defined(AFS_SGI_ENV) && (_MIPS_SZLONG==64)) || defined(NEED_IOCTL32)
+#if (defined(AFS_AIX51_ENV) && defined(AFS_64BIT_KERNEL)) || defined(AFS_HPUX_64BIT_ENV) || defined(AFS_SUN5_64BIT_ENV) || (defined(AFS_SGI_ENV) && (_MIPS_SZLONG==64)) || defined(NEED_IOCTL32)
 static void
 afs_ioctl32_to_afs_ioctl(const struct afs_ioctl32 *src, struct afs_ioctl *dst)
 {
@@ -91,7 +91,7 @@ copyin_afs_ioctl(caddr_t cmarg, struct afs_ioctl *dst)
     }
 #endif /* defined(AFS_HPUX_64BIT_ENV) */
 
-#if defined(AFS_SUN57_64BIT_ENV)
+#if defined(AFS_SUN5_64BIT_ENV)
     struct afs_ioctl32 dst32;
 
     if (get_udatamodel() == DATAMODEL_ILP32) {
@@ -100,7 +100,7 @@ copyin_afs_ioctl(caddr_t cmarg, struct afs_ioctl *dst)
            afs_ioctl32_to_afs_ioctl(&dst32, dst);
        return code;
     }
-#endif /* defined(AFS_SUN57_64BIT_ENV) */
+#endif /* defined(AFS_SUN5_64BIT_ENV) */
 
 #if defined(AFS_SGI_ENV) && (_MIPS_SZLONG==64)
     struct afs_ioctl32 dst32;
@@ -342,7 +342,7 @@ struct iparam32 {
 };
 
 
-#if defined(AFS_HPUX_64BIT_ENV) || defined(AFS_SUN57_64BIT_ENV) || (defined(AFS_LINUX_64BIT_KERNEL) && !defined(AFS_ALPHA_LINUX20_ENV) && !defined(AFS_IA64_LINUX20_ENV)) || defined(NEED_IOCTL32)
+#if defined(AFS_HPUX_64BIT_ENV) || defined(AFS_SUN5_64BIT_ENV) || (defined(AFS_LINUX_64BIT_KERNEL) && !defined(AFS_ALPHA_LINUX20_ENV) && !defined(AFS_IA64_LINUX20_ENV)) || defined(NEED_IOCTL32)
 static void
 iparam32_to_iparam(const struct iparam32 *src, struct iparam *dst)
 {
@@ -377,7 +377,7 @@ copyin_iparam(caddr_t cmarg, struct iparam *dst)
     }
 #endif /* AFS_HPUX_64BIT_ENV */
 
-#if defined(AFS_SUN57_64BIT_ENV)
+#if defined(AFS_SUN5_64BIT_ENV)
     struct iparam32 dst32;
 
     if (get_udatamodel() == DATAMODEL_ILP32) {
@@ -386,7 +386,7 @@ copyin_iparam(caddr_t cmarg, struct iparam *dst)
            iparam32_to_iparam(&dst32, dst);
        return code;
     }
-#endif /* AFS_SUN57_64BIT_ENV */
+#endif /* AFS_SUN5_64BIT_ENV */
 
 #if defined(AFS_LINUX_64BIT_KERNEL) && !defined(AFS_ALPHA_LINUX20_ENV) && !defined(AFS_IA64_LINUX20_ENV)
     struct iparam32 dst32;
index 2655c64..79d9faa 100644 (file)
 #include "afsincludes.h"       /* Afs-based standard headers */
 #include "afs/afs_stats.h"     /* afs statistics */
 
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
 #include <inet/led.h>
 #include <inet/common.h>
-#if   defined(AFS_SUN58_ENV)
 #include <netinet/ip6.h>
-#endif
 #include <inet/ip.h>
 #endif
 
index 9d022fa..7dfc5c7 100644 (file)
 #include "hcrypto/md5.h"
 #endif
 
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
 #include <inet/led.h>
 #include <inet/common.h>
-#if     defined(AFS_SUN58_ENV)
 #include <netinet/ip6.h>
-#endif
 #include <inet/ip.h>
 #endif
 
index 984067f..f2148a5 100644 (file)
 #include "afs/afs_stats.h"     /* afs statistics */
 #include "afs/afs_dynroot.h"
 
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
 #include <inet/led.h>
 #include <inet/common.h>
-#if     defined(AFS_SUN58_ENV)
 #include <netinet/ip6.h>
-#endif
 #include <inet/ip.h>
 #endif
 
index 8ec4334..58a5920 100644 (file)
@@ -23,7 +23,7 @@
 
 #if !defined(AFS_LINUX20_ENV)
 # include <net/if.h>
-# if defined(AFS_SUN58_ENV)
+# if defined(AFS_SUN5_ENV)
 #  include <sys/varargs.h>
 # else
 #  include <stdarg.h>
 #include "afsincludes.h"       /* Afs-based standard headers */
 #include "afs/afs_stats.h"     /* afs statistics */
 
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
 #include <inet/led.h>
 #include <inet/common.h>
-#if     defined(AFS_SUN58_ENV)
 #include <netinet/ip6.h>
-#endif
 #include <inet/ip.h>
 #endif
 
index 9987b68..c6ba0c6 100644 (file)
@@ -34,7 +34,7 @@
   * up 2 bytes
   */
 
-#if defined(AFS_SUN57_64BIT_ENV) || (defined(AFS_SGI61_ENV) && (_MIPS_SZPTR==64)) || defined(AFS_LINUX_64BIT_KERNEL)
+#if defined(AFS_SUN5_64BIT_ENV) || (defined(AFS_SGI61_ENV) && (_MIPS_SZPTR==64)) || defined(AFS_LINUX_64BIT_KERNEL)
 #define        AFS_XLATOR_MAGIC        0x8765  /* XXX */
 #else
 #define        AFS_XLATOR_MAGIC        0x87654321
index 74cd300..04b0abb 100644 (file)
@@ -74,7 +74,7 @@ typedef struct afs_bozoLock afs_bozoLock_t;
 typedef unsigned int afs_lock_tracker_t;
 # define MyPidxx (get_user_struct()->u_procp->p_pid )
 # define MyPidxx2Pid(x) (x)
-#elif defined(AFS_SUN57_ENV)
+#elif defined(AFS_SUN5_ENV)
 typedef kthread_t * afs_lock_tracker_t;
 # define MyPidxx (curthread)
 # define MyPidxx2Pid(x) (x ? ttoproc(x)->p_pid : 0)
index 9792c63..e8d072c 100644 (file)
@@ -263,12 +263,9 @@ typedef unsigned short etap_event_t;
 
 # ifdef        AFS_SUN5_ENV
 #  include <sys/cmn_err.h>     /* for kernel printf() prototype */
-# endif
-
-# if   defined(AFS_SUN56_ENV)
-#  include "h/vfs.h"           /* stops SUN56 socketvar.h warnings */
-#  include "h/stropts.h"               /* stops SUN56 socketvar.h warnings */
-#  include "h/stream.h"                /* stops SUN56 socketvar.h errors */
+#  include "h/vfs.h"           /* stops SUN5 socketvar.h warnings */
+#  include "h/stropts.h"               /* stops SUN5 socketvar.h warnings */
+#  include "h/stream.h"                /* stops SUN5 socketvar.h errors */
 # endif
 
 # ifdef AFS_SUN510_ENV
index f000716..20a23b3 100644 (file)
@@ -97,12 +97,6 @@ dest: afsd vsys @ENABLE_FUSE_CLIENT@
                                sgi_53 | sgi_61 ) \
                                ${INSTALL_SCRIPT} ${srcdir}/afs_rtsymtab.pl.${SYS_NAME} ${DEST}/root.client/usr/vice/etc/sgiload/afs_rtsymtab.pl ;;\
                        esac;; \
-               sun4_52 | sun4_53 | sun4c_52 | sun4c_53 | sun4m_52 | sun4m_53 | sun4m_54 | sun4_54 | sun4c_54 | sunx86_54) \
-                       ${INSTALL} -d ${DEST}/root.client/usr/vice/etc/modload ; \
-                       ${INSTALL_SCRIPT} ${srcdir}/afs.rc.solaris ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
-               sun*_57 ) \
-                       ${INSTALL} -d ${DEST}/root.client/usr/vice/etc/modload ; \
-                       ${INSTALL_SCRIPT} ${srcdir}/afs.rc.solaris.2.7 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
                sun*_58 ) \
                        ${INSTALL} -d ${DEST}/root.client/usr/vice/etc/modload ; \
                        ${INSTALL_SCRIPT} ${srcdir}/afs.rc.solaris.2.8 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
@@ -112,9 +106,6 @@ dest: afsd vsys @ENABLE_FUSE_CLIENT@
                sun*_511 ) \
                        ${INSTALL} -d ${DEST}/root.client/usr/vice/etc/modload ; \
                        ${INSTALL_SCRIPT} ${srcdir}/afs.rc.solaris.2.11 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
-               sun4x_5? ) \
-                       ${INSTALL} -d ${DEST}/root.client/usr/vice/etc/modload ; \
-                       ${INSTALL_SCRIPT} ${srcdir}/afs.rc.solaris.2_5 ${DEST}/root.client/usr/vice/etc/modload/afs.rc ;;\
                alpha_osf* ) \
                        ${INSTALL} -d ${DEST}/root.client/usr/vice/etc/dkload ; \
                        ${INSTALL_SCRIPT} ${srcdir}/afs.rc.alpha ${DEST}/root.client/usr/vice/etc/dkload/afs.rc ;;\
diff --git a/src/afsd/afs.rc.solaris b/src/afsd/afs.rc.solaris
deleted file mode 100644 (file)
index 9fef4f6..0000000
+++ /dev/null
@@ -1,169 +0,0 @@
-#!/bin/sh
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-# 
-# This software has been released under the terms of the IBM Public
-# License.  For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# afs.rc: rc script for AFS on Solaris 2.x platforms
-#
-# Install this script as /etc/init.d/afs.rc
-# then make links like this:
-# ln -s ../init.d/afs.rc /etc/rc0.d/K66afs
-# ln -s ../init.d/afs.rc /etc/rc3.d/S99afs 
-#
-CONFIG=/usr/vice/etc/config
-AFSDOPT=$CONFIG/afsd.options
-PACKAGE=$CONFIG/package.options
-
-# EXTRAOPTS can be used to enable/disable AFSDB support (-afsdb)
-# and Dynroot (dynamically-generated /afs) support (-dynroot).
-EXTRAOPTS="-afsdb"
-
-LARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128"
-MEDIUM="-stat 2000 -dcache 800 -daemons 3 -volumes 70"
-SMALL="-stat 300 -dcache 100 -daemons 2 -volumes 50"
-
-if [ -f $AFSDOPT ]; then
-    OPTIONS=`cat $AFSDOPT`
-else
-    OPTIONS="$MEDIUM $EXTRAOPTS"
-fi
-
-# Need the commands ps, awk, kill, sleep
-PATH=${PATH}${PATH:+:}/sbin:/bin:/usr/bin
-
-killproc() {            # kill the named process(es)
-       fpid='$2'
-       fproc='$9'
-       pid=`ps -ef | \
-           awk "$fproc == \"$1\" || $fproc ~ /.*\/$1/ { print $fpid }"`
-        [ "$pid" != "" ] && kill -KILL $pid
-}
-
-case $1 in
-'start')
-
-#
-# Make sure afs exists in /etc/name_to_sysnum
-#
-if grep -s "afs" /etc/name_to_sysnum > /dev/null; then
-    echo "Entry for afs already exists in /etc/name_to_sysnum"
-else
-    echo "Creating entry for afs in /etc/name_to_sysnum"
-    cp /etc/name_to_sysnum /etc/name_to_sysnum.orig
-    sed '/nfs/i\
-afs                    105' /etc/name_to_sysnum > /tmp/name_to_sysnum
-    mv /tmp/name_to_sysnum /etc/name_to_sysnum
-    echo "Rebooting now for new /etc/name_to_sysnum to take effect"
-    reboot
-fi
-
-#
-# Load kernel extensions
-#
-
-if [ -f /kernel/fs/afs ]; then
-       echo "Loading AFS kernel extensions"
-       modload /kernel/fs/afs
-else
-       echo "/kernel/fs/afs does not exist. Skipping AFS startup."
-       exit 1
-fi
-
-#
-# Start the AFS server processes if a bosserver exists
-#
-
-if [ -x /usr/afs/bin/bosserver ]; then
-       echo "Starting AFS Server processes"
-       /usr/afs/bin/bosserver
-       OPTIONS="$OPTIONS -nosettime"
-       sleep 30
-fi
-
-#
-# Check that all of the client configuration files exist
-#
-
-for file in /usr/vice/etc/afsd /usr/vice/etc/cacheinfo \
-           /usr/vice/etc/ThisCell /usr/vice/etc/CellServDB
-do
-       if [ ! -f ${file} ]; then
-               echo "${file} does not exist. Not starting AFS client."
-               exit 1
-       fi
-done
-
-#
-# Check that the root directory for AFS (/afs) 
-# and the cache directory (/usr/vice/cache) both exist
-#
-
-for dir in `awk -F: '{print $1, $2}' /usr/vice/etc/cacheinfo`
-do
-       if [ ! -d ${dir} ]; then
-               echo "${dir} does not exist. Not starting AFS client."
-               exit 2
-       fi
-done
-
-echo "Starting afsd"
-/usr/vice/etc/afsd $OPTIONS
-
-#
-# Run package to update the disk
-#
-if [ -f /usr/afsws/etc/package -a -f $PACKAGE ]; then
-       /usr/afsws/etc/package -v -o `cat $PACKAGE` > /dev/console 2>&1
-case $? in
-0)
-       (echo "Package completed successfully") > /dev/console 2>&1
-       date > /dev/console 2>&1
-       ;;
-4)
-       (echo "Rebooting to restart system") > /dev/console 2>&1
-       sync
-       /etc/reboot
-       ;;
-*)
-       (echo "Package update failed; continuing") > /dev/console 2>&1
-       ;;
-esac
-
-fi
-
-#
-# Start AFS inetd services
-# (See the AFS Command Ref. for notes on the proper configuration of inetd.afs)
-#
-if [ -f /usr/sbin/inetd.afs -a -f /etc/inetd.conf.afs ]; then
-       /usr/sbin/inetd.afs /etc/inetd.conf.afs
-fi
-
-echo ;;
-
-'stop')
-
-#
-# Stop the AFS inetd and server processes
-# Note that the afsd processes cannot be killed
-#
-
-echo "Killing inetd.afs"
-killproc inetd.afs
-
-bosrunning=`ps -ef | awk '/bosserver/ && ! /awk/ && ! /dcebos/'`
-if [ "${bosrunning}" != "" ]; then
-       echo "Shutting down AFS server processes"
-       /usr/afs/bin/bos shutdown localhost -localauth -wait
-       echo "Killing AFS bosserver"
-       killproc bosserver
-fi
-
-echo ;;
-
-*)     echo "Invalid option supplied to $0"
-       exit 1;;
-esac
diff --git a/src/afsd/afs.rc.solaris.2.7 b/src/afsd/afs.rc.solaris.2.7
deleted file mode 100644 (file)
index 6cda6aa..0000000
+++ /dev/null
@@ -1,199 +0,0 @@
-#!/bin/sh
-#
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-# 
-# This software has been released under the terms of the IBM Public
-# License.  For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-#
-# afs.rc: rc script for AFS on Solaris 2.x platforms
-#
-# Install this script as /etc/init.d/afs.rc
-# then make links like this:
-# ln -s ../init.d/afs.rc /etc/rc0.d/K66afs
-# ln -s ../init.d/afs.rc /etc/rc3.d/S99afs 
-#
-CONFIG=/usr/vice/etc/config
-AFSDOPT=$CONFIG/afsd.options
-PACKAGE=$CONFIG/package.options
-
-# EXTRAOPTS can be used to enable/disable AFSDB support (-afsdb)
-# and Dynroot (dynamically-generated /afs) support (-dynroot).
-EXTRAOPTS="-afsdb"
-
-LARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128"
-MEDIUM="-stat 2000 -dcache 800 -daemons 3 -volumes 70"
-SMALL="-stat 300 -dcache 100 -daemons 2 -volumes 50"
-
-if [ -f $AFSDOPT ]; then
-    OPTIONS=`cat $AFSDOPT`
-else
-    OPTIONS="$MEDIUM $EXTRAOPTS"
-fi
-
-# Need the commands ps, awk, kill, sleep
-PATH=${PATH}${PATH:+:}/sbin:/bin:/usr/bin
-
-killproc() {            # kill the named process(es)
-       awkfield2='$2'
-        pid=`ps -ef | awk "/$1/ && ! /awk/ {print $awkfield2}"`
-        [ "$pid" != "" ] && kill -KILL $pid
-}
-
-case $1 in
-'start')
-
-#
-# Make sure afs exists in /etc/name_to_sysnum
-#
-if grep -s "afs" /etc/name_to_sysnum > /dev/null; then
-    echo "Entry for afs already exists in /etc/name_to_sysnum"
-else
-    echo "Creating entry for afs in /etc/name_to_sysnum"
-    cp /etc/name_to_sysnum /etc/name_to_sysnum.orig
-    sed '/nfs/i\
-afs                    73' /etc/name_to_sysnum > /tmp/name_to_sysnum
-    mv /tmp/name_to_sysnum /etc/name_to_sysnum
-    echo "Rebooting now for new /etc/name_to_sysnum to take effect"
-    reboot
-fi
-
-## Check to see that /bin/isalist exists and is executable
-if [ ! -x /bin/isalist ] ;then
-       echo "/bin/isalist not executable"
-       exit 1;
-fi
-
-## Determine if we are running the 64 bit OS
-## If sparcv9 then the location of the afs and nfs extensions differ
-
-case `/bin/isalist` in
-    *sparcv9* )
-               nfssrv=/kernel/misc/sparcv9/nfssrv
-               afs=/kernel/fs/sparcv9/afs ;;
-           * )
-               nfssrv=/kernel/misc/nfssrv
-               afs=/kernel/fs/afs ;;
-esac
-
-
-#
-# Load kernel extensions
-#
-# nfssrv has to be loaded first
-
-
-if [ -f $nfssrv ]; then
-       echo "Loading NFS server kernel extensions"
-       modload $nfssrv
-else
-       echo "$nfssrv does not exist. Skipping AFS startup."
-       exit 1
-fi
-
-## Load AFS kernel extensions
-
-if [ -f $afs ]; then
-       echo "Loading AFS kernel extensions"
-       modload $afs
-else
-       echo "$afs does not exist. Skipping AFS startup."
-       exit 1
-fi
-
-#
-# Start the AFS server processes if a bosserver exists
-#
-
-if [ -x /usr/afs/bin/bosserver ]; then
-       echo "Starting AFS Server processes"
-       /usr/afs/bin/bosserver &
-       OPTIONS="$OPTIONS -nosettime"
-       sleep 30
-fi
-
-#
-# Check that all of the client configuration files exist
-#
-
-for file in /usr/vice/etc/afsd /usr/vice/etc/cacheinfo \
-           /usr/vice/etc/ThisCell /usr/vice/etc/CellServDB
-do
-       if [ ! -f ${file} ]; then
-               echo "${file} does not exist. Not starting AFS client."
-               exit 1
-       fi
-done
-
-#
-# Check that the root directory for AFS (/afs) 
-# and the cache directory (/usr/vice/cache) both exist
-#
-
-for dir in `awk -F: '{print $1, $2}' /usr/vice/etc/cacheinfo`
-do
-       if [ ! -d ${dir} ]; then
-               echo "${dir} does not exist. Not starting AFS client."
-               exit 2
-       fi
-done
-
-echo "Starting afsd"
-/usr/vice/etc/afsd $OPTIONS
-
-#
-# Run package to update the disk
-#
-if [ -f /usr/afsws/etc/package -a -f $PACKAGE ]; then
-       /usr/afsws/etc/package -v -o `cat $PACKAGE` > /dev/console 2>&1
-case $? in
-0)
-       (echo "Package completed successfully") > /dev/console 2>&1
-       date > /dev/console 2>&1
-       ;;
-4)
-       (echo "Rebooting to restart system") > /dev/console 2>&1
-       sync
-       /etc/reboot
-       ;;
-*)
-       (echo "Package update failed; continuing") > /dev/console 2>&1
-       ;;
-esac
-
-fi
-
-#
-# Start AFS inetd services
-# (See the AFS Command Ref. for notes on the proper configuration of inetd.afs)
-#
-if [ -f /usr/sbin/inetd.afs -a -f /etc/inetd.conf.afs ]; then
-       /usr/sbin/inetd.afs /etc/inetd.conf.afs
-fi
-
-echo ;;
-
-'stop')
-
-#
-# Stop the AFS inetd and server processes
-# Note that the afsd processes cannot be killed
-#
-
-echo "Killing inetd.afs"
-killproc inetd.afs
-
-bosrunning=`ps -ef | awk '/bosserver/ && ! /awk/'`
-if [ "${bosrunning}" != "" ]; then
-       echo "Shutting down AFS server processes"
-       /usr/afs/bin/bos shutdown localhost -localauth -wait
-       echo "Killing AFS bosserver"
-       killproc bosserver
-fi
-
-echo ;;
-
-*)     echo "Invalid option supplied to $0"
-       exit 1;;
-esac
diff --git a/src/afsd/afs.rc.solaris.2_5 b/src/afsd/afs.rc.solaris.2_5
deleted file mode 100644 (file)
index 692be63..0000000
+++ /dev/null
@@ -1,176 +0,0 @@
-#!/bin/sh
-# Copyright 2000, International Business Machines Corporation and others.
-# All Rights Reserved.
-# 
-# This software has been released under the terms of the IBM Public
-# License.  For details, see the LICENSE file in the top-level source
-# directory or online at http://www.openafs.org/dl/license10.html
-
-# afs.rc: rc script for AFS on Solaris 2.x platforms
-#
-# Install this script as /etc/init.d/afs.rc
-# then make links like this:
-# ln -s ../init.d/afs.rc /etc/rc0.d/K66afs
-# ln -s ../init.d/afs.rc /etc/rc3.d/S99afs 
-#
-CONFIG=/usr/vice/etc/config
-AFSDOPT=$CONFIG/afsd.options
-PACKAGE=$CONFIG/package.options
-
-# EXTRAOPTS can be used to enable/disable AFSDB support (-afsdb)
-# and Dynroot (dynamically-generated /afs) support (-dynroot).
-EXTRAOPTS="-afsdb"
-
-LARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128"
-MEDIUM="-stat 2000 -dcache 800 -daemons 3 -volumes 70"
-SMALL="-stat 300 -dcache 100 -daemons 2 -volumes 50"
-
-if [ -f $AFSDOPT ]; then
-    OPTIONS=`cat $AFSDOPT`
-else
-    OPTIONS="$MEDIUM $EXTRAOPTS"
-fi
-
-# Need the commands ps, awk, kill, sleep
-PATH=${PATH}${PATH:+:}/sbin:/bin:/usr/bin
-
-killproc() {            # kill the named process(es)
-       awkfield2='$2'
-        pid=`ps -ef | awk "/$1/ && ! /awk/ {print $awkfield2}"`
-        [ "$pid" != "" ] && kill -KILL $pid
-}
-
-case $1 in
-'start')
-
-#
-# Make sure afs exists in /etc/name_to_sysnum
-#
-if grep -s "afs" /etc/name_to_sysnum > /dev/null; then
-    echo "Entry for afs already exists in /etc/name_to_sysnum"
-else
-    echo "Creating entry for afs in /etc/name_to_sysnum"
-    cp /etc/name_to_sysnum /etc/name_to_sysnum.orig
-    sed '/nfs/i\
-afs                    105' /etc/name_to_sysnum > /tmp/name_to_sysnum
-    mv /tmp/name_to_sysnum /etc/name_to_sysnum
-    echo "Rebooting now for new /etc/name_to_sysnum to take effect"
-    reboot
-fi
-
-#
-# Load kernel extensions
-#
-
-# nfssrv has to be loaded first
-if [ -f /kernel/misc/nfssrv ]; then
-       echo "Loading NFS server kernel extensions"
-       modload /kernel/misc/nfssrv
-else
-       echo "/kernel/misc/nfssrv does not exist. Skipping AFS startup."
-       exit 1
-fi
-
-if [ -f /kernel/fs/afs ]; then
-       echo "Loading AFS kernel extensions"
-       modload /kernel/fs/afs
-else
-       echo "/kernel/fs/afs does not exist. Skipping AFS startup."
-       exit 1
-fi
-
-#
-# Start the AFS server processes if a bosserver exists
-#
-
-if [ -x /usr/afs/bin/bosserver ]; then
-       echo "Starting AFS Server processes"
-       /usr/afs/bin/bosserver
-       OPTIONS="$OPTIONS -nosettime"
-       sleep 30
-fi
-
-#
-# Check that all of the client configuration files exist
-#
-
-for file in /usr/vice/etc/afsd /usr/vice/etc/cacheinfo \
-           /usr/vice/etc/ThisCell /usr/vice/etc/CellServDB
-do
-       if [ ! -f ${file} ]; then
-               echo "${file} does not exist. Not starting AFS client."
-               exit 1
-       fi
-done
-
-#
-# Check that the root directory for AFS (/afs) 
-# and the cache directory (/usr/vice/cache) both exist
-#
-
-for dir in `awk -F: '{print $1, $2}' /usr/vice/etc/cacheinfo`
-do
-       if [ ! -d ${dir} ]; then
-               echo "${dir} does not exist. Not starting AFS client."
-               exit 2
-       fi
-done
-
-echo "Starting afsd"
-/usr/vice/etc/afsd $OPTIONS
-
-#
-# Run package to update the disk
-#
-if [ -f /usr/afsws/etc/package -a -f $PACKAGE ]; then
-       /usr/afsws/etc/package -v -o `cat $PACKAGE` > /dev/console 2>&1
-case $? in
-0)
-       (echo "Package completed successfully") > /dev/console 2>&1
-       date > /dev/console 2>&1
-       ;;
-4)
-       (echo "Rebooting to restart system") > /dev/console 2>&1
-       sync
-       /etc/reboot
-       ;;
-*)
-       (echo "Package update failed; continuing") > /dev/console 2>&1
-       ;;
-esac
-
-fi
-
-#
-# Start AFS inetd services
-# (See the AFS Command Ref. for notes on the proper configuration of inetd.afs)
-#
-if [ -f /usr/sbin/inetd.afs -a -f /etc/inetd.conf.afs ]; then
-       /usr/sbin/inetd.afs /etc/inetd.conf.afs
-fi
-
-echo ;;
-
-'stop')
-
-#
-# Stop the AFS inetd and server processes
-# Note that the afsd processes cannot be killed
-#
-
-echo "Killing inetd.afs"
-killproc inetd.afs
-
-bosrunning=`ps -ef | awk '/bosserver/ && ! /awk/'`
-if [ "${bosrunning}" != "" ]; then
-       echo "Shutting down AFS server processes"
-       /usr/afs/bin/bos shutdown localhost -localauth -wait
-       echo "Killing AFS bosserver"
-       killproc bosserver
-fi
-
-echo ;;
-
-*)     echo "Invalid option supplied to $0"
-       exit 1;;
-esac
index ea170d5..6665aae 100644 (file)
@@ -374,37 +374,14 @@ vmountdata(struct vmount * vmtp, char *obj, char *stub, char *host,
 #ifdef AFS_HPUX_ENV
 #define        MOUNTED_TABLE   MNT_MNTTAB
 #else
-#ifdef AFS_SUN5_ENV
-#define        MOUNTED_TABLE   MNTTAB
-#else
 #define        MOUNTED_TABLE   MOUNTED
 #endif
-#endif
 
 static int
 HandleMTab(char *cacheMountDir)
 {
-#if (defined (AFS_SUN_ENV) || defined (AFS_HPUX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV) || defined(AFS_LINUX20_ENV)) && !defined(AFS_SUN58_ENV)
+#if (defined (AFS_HPUX_ENV) || defined(AFS_SGI_ENV) || defined(AFS_LINUX20_ENV))
     FILE *tfilep;
-#ifdef AFS_SUN5_ENV
-    char tbuf[16];
-    struct mnttab tmntent;
-
-    memset(&tmntent, '\0', sizeof(struct mnttab));
-    if (!(tfilep = fopen(MOUNTED_TABLE, "a+"))) {
-       printf("Can't open %s\n", MOUNTED_TABLE);
-       perror(MNTTAB);
-       exit(-1);
-    }
-    tmntent.mnt_special = "AFS";
-    tmntent.mnt_mountp = cacheMountDir;
-    tmntent.mnt_fstype = "xx";
-    tmntent.mnt_mntopts = "rw";
-    sprintf(tbuf, "%ld", (long)time((time_t *) 0));
-    tmntent.mnt_time = tbuf;
-    putmntent(tfilep, &tmntent);
-    fclose(tfilep);
-#else
 #if defined(AFS_SGI_ENV) || defined(AFS_LINUX20_ENV)
     struct mntent tmntent;
     char *dir;
@@ -464,7 +441,6 @@ HandleMTab(char *cacheMountDir)
     addmntent(tfilep, &tmntent);
     endmntent(tfilep);
 #endif /* AFS_SGI_ENV */
-#endif /* AFS_SUN5_ENV */
 #endif /* unreasonable systems */
 #ifdef AFS_DARWIN_ENV
 #ifndef AFS_DARWIN100_ENV
index 70d20b0..eddb356 100644 (file)
@@ -534,34 +534,7 @@ case $AFS_SYSNAME in
                SHLIB_LINKER="${MT_CC} -shared"
                ;;
 
-       sun4_413)
-               CCXPG2="/usr/xpg2bin/cc"
-               CC="gcc"
-               CCOBJ="gcc"
-               SHLIB_CFLAGS="-PIC"
-               XCFLAGS=""
-               XLIBELFA="-lelf"
-               XLIBKVM="-lkvm"
-               XLIBS="${LIB_AFSDB}"
-               LD="ld"
-               ;;
-
-       sun4x_55)
-               CC=$SOLARISCC
-               CCOBJ=$SOLARISCC
-               MT_CC=$SOLARISCC
-               MT_CFLAGS='-mt'
-               SHLIB_CFLAGS="-KPIC"
-               XCFLAGS="-dy -Bdynamic"
-               XLIBELFA="-lelf"
-               XLIBKVM="-lkvm"
-               XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
-               LD="/usr/ccs/bin/ld"
-               SHLIB_LINKER="${CC} -G -dy -Bsymbolic -z text"
-               LWP_OPTMZ="-g"
-               ;;
-
-       sun4x_56|sun4x_57|sun4x_58|sun4x_59)
+       sun4x_58|sun4x_59)
                CC=$SOLARISCC
                CCOBJ=$SOLARISCC
                LD="/usr/ccs/bin/ld"
@@ -618,7 +591,7 @@ case $AFS_SYSNAME in
                LWP_OPTMZ="-g"
                ;;
 
-       sunx86_57|sunx86_58|sunx86_59)
+       sunx86_58|sunx86_59)
                CC=$SOLARISCC
                CCOBJ=$SOLARISCC
                LD="/usr/ccs/bin/ld"
diff --git a/src/config/param.sun4_413.h b/src/config/param.sun4_413.h
deleted file mode 100644 (file)
index 136cd91..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-#ifndef UKERNEL
-/* This section for kernel libafs compiles only */
-
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef        AFS_PARAM_H
-#define        AFS_PARAM_H
-
-#define AFS_VFSINCL_ENV        1       /* NOBODY uses this.... */
-#define AFS_ENV                        1
-#define AFS_SUN_ENV            1
-#define AFS_SUN4_ENV           1
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_GCPAGS             1       /* if nonzero, garbage collect PAGs */
-#define AFS_GLOBAL_SUNLOCK     1       /* For global locking */
-
-#define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
-#define        AFS_SYSCALL             31
-
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */
-#define AFS_MOUNT_AFS   "afs"
-
-/* Machine / Operating system information */
-#define sys_sun4_413   1
-#define SYS_NAME       "sun4_413"
-#define SYS_NAME_ID    SYS_NAME_ID_sun4_411
-#define AFSBIG_ENDIAN  1
-#define AFS_HAVE_FFS    1       /* Use system's ffs. */
-#define AFS_HAVE_STATVFS 0
-#define AFS_VM_RDWR_ENV        1       /* read/write implemented via VM */
-
-#define KERNEL_HAVE_UERROR 1
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef KERNEL
-/* sun definitions here */
-#define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
-#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      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        osi_GetTime(x)  uniqtime(x)
-#define        AFS_KALLOC(n)   kmem_alloc(n, KMEM_SLEEP)
-#define        AFS_KALLOC_NOSLEEP(n)   kmem_alloc(n, KMEM_NOSLEEP)
-#define        AFS_KFREE       kmem_free
-#define        VATTR_NULL      vattr_null
-#endif /* KERNEL */
-#define memset(A, B, S) bzero(A, S)
-#define memcpy(B, A, S) bcopy(A, B, S)
-#define memcmp(A, B, S) bcmp(A, B, S)
-#define memmove(B, A, S) bcopy(A, B, S)
-#define        AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif /*  */
-
-#endif /* AFS_PARAM_H */
-#else /* !defined(UKERNEL) */
-
-/* This section for user space compiles only */
-
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef        AFS_PARAM_H
-#define        AFS_PARAM_H
-
-#define UKERNEL
-#define AFS_ENV                        1
-/* define AFS_USR_XXX_ENV XXX */
-
-#include <afs/afs_sysnames.h>
-
-#define RXK_LISTENER_ENV        1
-#define AFS_USERSPACE_IP_ADDR   1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-
-#define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
-#define        AFS_SYSCALL             31
-
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */
-#define AFS_MOUNT_AFS   1
-
-/* Machine / Operating system information */
-#define sys_sun4_413   1
-#define SYS_NAME       "sun4_413"
-#define SYS_NAME_ID    SYS_NAME_ID_sun4_411
-#define AFSBIG_ENDIAN  1
-#define AFS_HAVE_FFS    1       /* Use system's ffs. */
-#define AFS_HAVE_STATVFS 0
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef KERNEL
-/* sun definitions here */
-#define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
-#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
-#endif /* KERNEL */
-#define        AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif /*  */
-
-#endif /* AFS_PARAM_H */
-#endif /* !defined(UKERNEL) */
index 7f7b5f6..dae0241 100644 (file)
 #define AFS_ENV                        1
 #define AFS_SUN_ENV            1
 #define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-#define        AFS_SUN56_ENV           1
-#define AFS_SUN57_ENV          1
-#define AFS_SUN58_ENV          1
 #define AFS_SUN59_ENV          1
 #define AFS_SUN510_ENV         1
 #define AFS_BOZONLOCK_ENV       1
@@ -89,7 +82,7 @@
   * AFS_SYSCALL32 is used to protect the ILP32 syscall interface
   */
 #if defined(__sparcv9)
-#define        AFS_SUN57_64BIT_ENV     1
+#define        AFS_SUN5_64BIT_ENV      1
 #define AFS_64BIT_INO          1
 #endif
 
index 0a98289..a7c1327 100644 (file)
 #define AFS_ENV                        1
 #define AFS_SUN_ENV            1
 #define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-#define        AFS_SUN56_ENV           1
-#define AFS_SUN57_ENV          1
-#define AFS_SUN58_ENV          1
 #define AFS_SUN59_ENV          1
 #define AFS_SUN510_ENV         1
 #define AFS_SUN511_ENV         1
@@ -88,7 +81,7 @@
   * AFS_SYSCALL32 is used to protect the ILP32 syscall interface
   */
 #if defined(__sparcv9)
-#define        AFS_SUN57_64BIT_ENV     1
+#define        AFS_SUN5_64BIT_ENV      1
 #define AFS_64BIT_INO          1
 #endif
 
diff --git a/src/config/param.sun4x_55.h b/src/config/param.sun4x_55.h
deleted file mode 100644 (file)
index d337e68..0000000
+++ /dev/null
@@ -1,166 +0,0 @@
-#ifndef UKERNEL
-/* This section for kernel libafs compiles only */
-
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef        AFS_PARAM_H
-#define        AFS_PARAM_H
-
-#define AFS_VFS_ENV    1
-/* Used only in vfsck code; is it needed any more???? */
-
-#define AFS_VFSINCL_ENV        1       /* NOBODY uses this.... */
-#define AFS_GREEDY43_ENV       1       /* Used only in rx/rx_user.c */
-#define AFS_ENV                        1
-#define AFS_SUN_ENV            1
-#define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-
-#define AFS_BOZONLOCK_ENV       1
-#define AFS_HAVE_FLOCK_SYSID    1
-
-#include <afs/afs_sysnames.h>
-
-#define RXK_LISTENER_ENV       1
-#define AFS_GCPAGS             1       /* if nonzero, garbage collect PAGs */
-#define AFS_GLOBAL_SUNLOCK     1       /* For global locking */
-
-#define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
-#define        AFS_SYSCALL             105
-
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */
-#define AFS_MOUNT_AFS   "afs"
-
-/* Machine / Operating system information */
-#define sys_sun4x_55   1
-#define SYS_NAME       "sun4x_55"
-#define SYS_NAME_ID    SYS_NAME_ID_sun4x_55
-#define AFSBIG_ENDIAN  1
-#define AFS_HAVE_FFS    1      /* Use system's ffs. */
-#define AFS_HAVE_STATVFS 1     /* System supports statvfs */
-#define AFS_VM_RDWR_ENV        1       /* read/write implemented via VM */
-#define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */
-#define AFS_HAVE_VXFS 1                /* support client cache on Veritas VXFS */
-#define AFS_HAVE_LLSEEK 1      /* System supports llseek */
-
-#define NEARINODE_HINT  1      /* hint to ufs module to scatter inodes on disk */
-#define nearInodeHash(volid, hval) {                                 \
-                unsigned char*  ts = (unsigned char*)&(volid)+sizeof(volid)-1;\
-                for ( (hval)=0; ts >= (unsigned char*)&(volid); ts--){\
-                    (hval) *= 173;                      \
-                    (hval) += *ts;                      \
-                }                                       \
-                }
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef KERNEL
-/* sun definitions here */
-#define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
-#define        AFS_SYSVLOCK            1       /* sys v locking supported */
-#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      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        osi_GetTime(x)  uniqtime(x)
-#define        AFS_KALLOC(n)   kmem_alloc(n, KM_SLEEP)
-#define        AFS_KALLOC_NOSLEEP(n)   kmem_alloc(n, KM_NOSLEEP)
-#define        AFS_KFREE       kmem_free
-#define        VATTR_NULL      vattr_null
-#define memset(A, B, S) bzero(A, S)
-#define memcpy(B, A, S) bcopy(A, B, S)
-#define memcmp(A, B, S) bcmp(A, B, S)
-#endif /* KERNEL */
-#define        AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-#define        ROOTINO         UFSROOTINO
-
-#endif /* AFS_PARAM_H */
-
-#else /* !defined(UKERNEL) */
-
-/* This section for user space compiles only */
-
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef        AFS_PARAM_H
-#define        AFS_PARAM_H
-
-#define AFS_VFS_ENV    1
-/* Used only in vfsck code; is it needed any more???? */
-#define RXK_LISTENER_ENV       1
-#define AFS_USERSPACE_IP_ADDR  1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_GREEDY43_ENV       1       /* Used only in rx/rx_user.c */
-#define AFS_ENV                        1
-#define AFS_USR_SUN5_ENV       1
-
-#include <afs/afs_sysnames.h>
-
-                                                                                                              /*#define AFS_GLOBAL_SUNLOCK    1 *//* For global locking */
-
-#define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
-#define        AFS_SYSCALL             105
-
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */
-#define AFS_MOUNT_AFS   1
-
-/* Machine / Operating system information */
-#define sys_sun4x_55   1
-#define SYS_NAME       "sun4x_55"
-#define SYS_NAME_ID    SYS_NAME_ID_sun4x_55
-#define AFSBIG_ENDIAN  1
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-#define AFS_HAVE_STATVFS       1       /* System supports statvfs */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef KERNEL
-#define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
-#define        AFS_SYSVLOCK            1       /* sys v locking supported */
-#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
-#endif /* KERNEL */
-#define        AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-#define        ROOTINO         UFSROOTINO
-
-#endif /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
diff --git a/src/config/param.sun4x_56.h b/src/config/param.sun4x_56.h
deleted file mode 100644 (file)
index 3514fc2..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-#ifndef UKERNEL
-/* This section for kernel libafs compiles only */
-
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef        AFS_PARAM_H
-#define        AFS_PARAM_H
-
-#define AFS_VFS_ENV    1
-/* Used only in vfsck code; is it needed any more???? */
-
-#define AFS_VFSINCL_ENV        1       /* NOBODY uses this.... */
-#define AFS_GREEDY43_ENV       1       /* Used only in rx/rx_user.c */
-#define AFS_ENV                        1
-#define AFS_SUN_ENV            1
-#define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-#define        AFS_SUN56_ENV           1
-#define AFS_BOZONLOCK_ENV       1
-#define AFS_GLOBAL_SUNLOCK     1       /* For global locking */
-#define RXK_LISTENER_ENV   1
-#define AFS_GCPAGS             1       /* if nonzero, garbage collect PAGs */
-
-#define AFS_64BIT_CLIENT       1
-
-#define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
-#define        AFS_SYSCALL             105
-
-#define AFS_HAVE_FLOCK_SYSID    1
-
-#include <afs/afs_sysnames.h>
-
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */
-#define AFS_MOUNT_AFS   "afs"
-
-/* Machine / Operating system information */
-#define sys_sun4x_56   1
-#define SYS_NAME       "sun4x_56"
-#define SYS_NAME_ID    SYS_NAME_ID_sun4x_56
-#define AFSBIG_ENDIAN  1
-#define AFS_HAVE_FFS    1      /* Use system's ffs. */
-#define AFS_HAVE_VXFS  1       /* Support cache on Veritas vxfs file system */
-#define AFS_HAVE_STATVFS 1     /* System supports statvfs */
-#define AFS_VM_RDWR_ENV        1       /* read/write implemented via VM */
-#define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */
-
-#define NEARINODE_HINT  1      /* hint to ufs module to scatter inodes on disk */
-#define nearInodeHash(volid, hval) {                                 \
-                unsigned char*  ts = (unsigned char*)&(volid)+sizeof(volid)-1;\
-                for ( (hval)=0; ts >= (unsigned char*)&(volid); ts--){\
-                    (hval) *= 173;                      \
-                    (hval) += *ts;                      \
-                }                                       \
-                }
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef KERNEL
-/* sun definitions here */
-#define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
-#define        AFS_SYSVLOCK            1       /* sys v locking supported */
-#define        afsio_iov               uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_loffset
-#define        afsio_seg               uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        osi_GetTime(x)  uniqtime(x)
-#define        AFS_KALLOC(n)   kmem_alloc(n, KM_SLEEP)
-#define AFS_KALLOC_NOSLEEP(n)   kmem_alloc(n, KM_NOSLEEP)
-#define        AFS_KFREE       kmem_free
-#define        VATTR_NULL      vattr_null
-#define memset(A, B, S) bzero(A, S)
-#define memcpy(B, A, S) bcopy(A, B, S)
-#define memcmp(A, B, S) bcmp(A, B, S)
-#endif /* KERNEL */
-#define        AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-#define        ROOTINO         UFSROOTINO
-
-#endif /* AFS_PARAM_H */
-
-#else /* !defined(UKERNEL) */
-
-/* This section for user space compiles only */
-
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef        AFS_PARAM_H
-#define        AFS_PARAM_H
-
-#define AFS_VFS_ENV    1
-/* Used only in vfsck code; is it needed any more???? */
-#define RXK_LISTENER_ENV       1
-#define AFS_USERSPACE_IP_ADDR  1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_GREEDY43_ENV       1       /* Used only in rx/rx_user.c */
-#define AFS_ENV                        1
-#define AFS_USR_SUN5_ENV       1
-#define AFS_USR_SUN6_ENV       1
-
-#include <afs/afs_sysnames.h>
-
-                                                                                                              /*#define AFS_GLOBAL_SUNLOCK    1 *//* For global locking */
-
-#define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
-#define        AFS_SYSCALL             105
-
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */
-#define AFS_MOUNT_AFS   1
-
-/* Machine / Operating system information */
-#define sys_sun4x_55   1
-#define SYS_NAME       "sun4x_55"
-#define SYS_NAME_ID    SYS_NAME_ID_sun4x_55
-#define AFSBIG_ENDIAN  1
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-#define AFS_HAVE_STATVFS       1       /* System supports statvfs */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef KERNEL
-#define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
-#define        AFS_SYSVLOCK            1       /* sys v locking supported */
-#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
-#endif /* KERNEL */
-#define        AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-#define        ROOTINO         UFSROOTINO
-
-#endif /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
diff --git a/src/config/param.sun4x_57.h b/src/config/param.sun4x_57.h
deleted file mode 100644 (file)
index 7aaf4a8..0000000
+++ /dev/null
@@ -1,182 +0,0 @@
-#ifndef UKERNEL
-/* This section for kernel libafs compiles only */
-
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef        AFS_PARAM_H
-#define        AFS_PARAM_H
-
-#define AFS_VFS_ENV    1
-/* Used only in vfsck code; is it needed any more???? */
-
-#define AFS_VFSINCL_ENV        1       /* NOBODY uses this.... */
-#define AFS_GREEDY43_ENV       1       /* Used only in rx/rx_user.c */
-#define AFS_ENV                        1
-#define AFS_SUN_ENV            1
-#define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-#define        AFS_SUN56_ENV           1
-#define AFS_SUN57_ENV          1
-#define AFS_BOZONLOCK_ENV       1
-
-#define AFS_64BIT_CLIENT       1
-
-#define AFS_HAVE_FLOCK_SYSID    1
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_GLOBAL_SUNLOCK     1       /* For global locking */
-#define RXK_LISTENER_ENV   1
-#define AFS_GCPAGS             1       /* if nonzero, garbage collect PAGs */
-
-#define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
-#define        AFS_SYSCALL             73
-
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */
-#define AFS_MOUNT_AFS   "afs"
-
-/* Machine / Operating system information */
-#define sys_sun4x_57   1
-#define SYS_NAME       "sun4x_57"
-#define SYS_NAME_ID    SYS_NAME_ID_sun4x_57
-#define AFSBIG_ENDIAN  1
-#define AFS_HAVE_FFS    1      /* Use system's ffs. */
-#define AFS_HAVE_VXFS  1       /* Support cache on Veritas vxfs file system */
-#define AFS_HAVE_STATVFS 1     /* System supports statvfs */
-#define AFS_VM_RDWR_ENV        1       /* read/write implemented via VM */
-#define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */
-
-#define NEARINODE_HINT  1      /* hint to ufs module to scatter inodes on disk */
-#define nearInodeHash(volid, hval) {                                 \
-                unsigned char*  ts = (unsigned char*)&(volid)+sizeof(volid)-1;\
-                for ( (hval)=0; ts >= (unsigned char*)&(volid); ts--){\
-                    (hval) *= 173;                      \
-                    (hval) += *ts;                      \
-                }                                       \
-                }
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef KERNEL
-/* sun definitions here */
-#define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
-#define        AFS_SYSVLOCK            1       /* sys v locking supported */
-#define        afsio_iov               uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_loffset
-#define        afsio_seg               uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        osi_GetTime(x)  uniqtime32(x)
-
-/**
-  * These defines are for the 64 bit Solaris 7 port
-  * AFS_SYSCALL32 is used to protect the ILP32 syscall interface
-  */
-#if defined(__sparcv9)
-#define        AFS_SUN57_64BIT_ENV     1
-#define AFS_64BIT_INO          1
-#endif
-
-#define        AFS_KALLOC(n)   kmem_alloc(n, KM_SLEEP)
-#define AFS_KALLOC_NOSLEEP(n)   kmem_alloc(n, KM_NOSLEEP)
-#define        AFS_KFREE       kmem_free
-#define        VATTR_NULL      vattr_null
-#define memset(A, B, S) bzero(A, S)
-#define memcpy(B, A, S) bcopy(A, B, S)
-#define memcmp(A, B, S) bcmp(A, B, S)
-#endif /* KERNEL */
-#define        AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-#define        ROOTINO         UFSROOTINO
-
-#endif /* AFS_PARAM_H */
-
-#else /* !defined(UKERNEL) */
-
-/* This section for user space compiles only */
-
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef        AFS_PARAM_H
-#define        AFS_PARAM_H
-
-#define AFS_VFS_ENV    1
-/* Used only in vfsck code; is it needed any more???? */
-#define RXK_LISTENER_ENV       1
-#define AFS_USERSPACE_IP_ADDR  1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_GREEDY43_ENV       1       /* Used only in rx/rx_user.c */
-#define AFS_ENV                        1
-#define AFS_USR_SUN5_ENV       1
-#define AFS_USR_SUN6_ENV       1
-
-#include <afs/afs_sysnames.h>
-
-#ifdef undef
-#define AFS_GLOBAL_SUNLOCK     1       /* For global locking */
-#endif
-
-#define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
-#define        AFS_SYSCALL             73
-
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */
-#define AFS_MOUNT_AFS   1
-
-/* Machine / Operating system information */
-#define sys_sun4x_55   1
-#define SYS_NAME       "sun4x_55"
-#define SYS_NAME_ID    SYS_NAME_ID_sun4x_55
-#define AFSBIG_ENDIAN  1
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-#define AFS_HAVE_STATVFS      1        /* System supports statvfs */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef KERNEL
-#define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
-#define        AFS_SYSVLOCK            1       /* sys v locking supported */
-#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
-#endif /* KERNEL */
-#define        AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-#define        ROOTINO         UFSROOTINO
-
-#endif /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
index b1a79fc..8acc4ae 100644 (file)
 #define AFS_ENV                        1
 #define AFS_SUN_ENV            1
 #define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-#define        AFS_SUN56_ENV           1
-#define AFS_SUN57_ENV          1
-#define AFS_SUN58_ENV          1
 #define AFS_BOZONLOCK_ENV       1
 
 #define AFS_64BIT_CLIENT       1
@@ -85,7 +78,7 @@
   * AFS_SYSCALL32 is used to protect the ILP32 syscall interface
   */
 #if defined(__sparcv9)
-#define        AFS_SUN57_64BIT_ENV     1
+#define        AFS_SUN5_64BIT_ENV      1
 #define AFS_64BIT_INO          1
 #endif
 
index 945f296..fa6697c 100644 (file)
 #define AFS_ENV                        1
 #define AFS_SUN_ENV            1
 #define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-#define        AFS_SUN56_ENV           1
-#define AFS_SUN57_ENV          1
-#define AFS_SUN58_ENV          1
 #define AFS_SUN59_ENV          1
 #define AFS_BOZONLOCK_ENV       1
 
@@ -86,7 +79,7 @@
   * AFS_SYSCALL32 is used to protect the ILP32 syscall interface
   */
 #if defined(__sparcv9)
-#define        AFS_SUN57_64BIT_ENV     1
+#define        AFS_SUN5_64BIT_ENV      1
 #define AFS_64BIT_INO          1
 #endif
 
index fa2d1fd..0f5c17f 100644 (file)
 #define AFS_ENV                        1
 #define AFS_SUN_ENV            1
 #define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-#define        AFS_SUN56_ENV           1
-#define AFS_SUN57_ENV          1
-#define AFS_SUN58_ENV          1
 #define AFS_SUN59_ENV          1
 #define AFS_SUN510_ENV         1
 #define AFS_BOZONLOCK_ENV       1
@@ -99,7 +92,7 @@
   * AFS_SYSCALL32 is used to protect the ILP32 syscall interface
   */
 #if defined(__amd64)
-#define        AFS_SUN57_64BIT_ENV     1
+#define        AFS_SUN5_64BIT_ENV      1
 #define AFS_64BIT_INO          1
 #endif
 
index 9454109..b4d8509 100644 (file)
 #define AFS_ENV                        1
 #define AFS_SUN_ENV            1
 #define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-#define        AFS_SUN56_ENV           1
-#define AFS_SUN57_ENV          1
-#define AFS_SUN58_ENV          1
 #define AFS_SUN59_ENV          1
 #define AFS_SUN510_ENV         1
 #define AFS_SUN511_ENV         1
   * AFS_SYSCALL32 is used to protect the ILP32 syscall interface
   */
 #if defined(__amd64)
-#define        AFS_SUN57_64BIT_ENV     1
+#define        AFS_SUN5_64BIT_ENV      1
 #define AFS_64BIT_INO          1
 #endif
 
diff --git a/src/config/param.sunx86_54.h b/src/config/param.sunx86_54.h
deleted file mode 100644 (file)
index b618619..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-#ifndef UKERNEL
-/* This section for kernel libafs compiles only */
-
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef        AFS_PARAM_H
-#define        AFS_PARAM_H
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_VFS_ENV    1
-/* Used only in vfsck code; is it needed any more???? */
-
-#define AFS_VFSINCL_ENV        1       /* NOBODY uses this.... */
-#define AFS_GREEDY43_ENV       1       /* Used only in rx/rx_user.c */
-#define AFS_ENV                        1
-#define AFS_SUN_ENV            1
-#define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_X86_ENV             1
-
-#define AFS_HAVE_FLOCK_SYSID    1
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_GLOBAL_SUNLOCK     1       /* For global locking */
-
-#define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
-#define        AFS_SYSCALL             105
-
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */
-#define AFS_MOUNT_AFS   "afs"
-
-/* Machine / Operating system information */
-#define        sys_sunx86_54   1
-#define SYS_NAME       "sunx86_54"
-#define SYS_NAME_ID    SYS_NAME_ID_sunx86_54
-#define AFS_HAVE_STATVFS 1     /* System supports statvfs */
-#define AFSLITTLE_ENDIAN       1
-#define AFS_VM_RDWR_ENV        1
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef KERNEL
-/* sun definitions here */
-#define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
-#define        AFS_SYSVLOCK            1       /* sys v locking supported */
-#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      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        osi_GetTime(x)  uniqtime(x)
-#define        AFS_KALLOC(n)   kmem_alloc(n, KM_SLEEP)
-#define        AFS_KALLOC_NOSLEEP(n)   kmem_alloc(n, KM_NOSLEEP)
-#define        AFS_KFREE       kmem_free
-#define        VATTR_NULL      vattr_null
-#endif /* KERNEL */
-#define        AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-#define        ROOTINO         UFSROOTINO
-
-
-#endif /* AFS_PARAM_H */
-
-#else /* !defined(UKERNEL) */
-
-/* This section for user space compiles only */
-#define AFS_HAVE_STATVFS 1     /* System supports statvfs */
-
-
-#endif /* !defined(UKERNEL) */
diff --git a/src/config/param.sunx86_57.h b/src/config/param.sunx86_57.h
deleted file mode 100644 (file)
index a48daf5..0000000
+++ /dev/null
@@ -1,176 +0,0 @@
-#ifndef UKERNEL
-/* This section for kernel libafs compiles only */
-
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef        AFS_PARAM_H
-#define        AFS_PARAM_H
-
-#define AFS_VFS_ENV    1
-/* Used only in vfsck code; is it needed any more???? */
-
-#define AFS_VFSINCL_ENV        1       /* NOBODY uses this.... */
-#define AFS_GREEDY43_ENV       1       /* Used only in rx/rx_user.c */
-#define AFS_ENV                        1
-#define AFS_SUN_ENV            1
-#define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-#define        AFS_SUN56_ENV           1
-#define AFS_SUN57_ENV          1
-#define AFS_BOZONLOCK_ENV       1
-
-#define AFS_X86_ENV            1
-
-#define AFS_64BIT_CLIENT       1
-
-#define AFS_HAVE_FLOCK_SYSID    1
-
-
-#include <afs/afs_sysnames.h>
-
-#define AFS_GLOBAL_SUNLOCK     1       /* For global locking */
-#define RXK_LISTENER_ENV   1
-#define AFS_GCPAGS             1       /* if nonzero, garbage collect PAGs */
-
-#define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
-#define        AFS_SYSCALL             73
-
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */
-#define AFS_MOUNT_AFS   "afs"
-
-/* Machine / Operating system information */
-#define sys_sunx86_57  1
-#define SYS_NAME       "sunx86_57"
-#define SYS_NAME_ID    SYS_NAME_ID_sunx86_57
-#define AFSLITTLE_ENDIAN       1
-#define AFS_HAVE_FFS    1      /* Use system's ffs. */
-#define AFS_HAVE_VXFS  1       /* Support cache on Veritas vxfs file system */
-#define AFS_HAVE_STATVFS 1     /* System supports statvfs */
-#define AFS_VM_RDWR_ENV        1       /* read/write implemented via VM */
-#define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */
-
-#define NEARINODE_HINT  1      /* hint to ufs module to scatter inodes on disk */
-#define nearInodeHash(volid, hval) {                                 \
-                unsigned char*  ts = (unsigned char*)&(volid)+sizeof(volid)-1;\
-                for ( (hval)=0; ts >= (unsigned char*)&(volid); ts--){\
-                    (hval) *= 173;                      \
-                    (hval) += *ts;                      \
-                }                                       \
-                }
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef KERNEL
-/* sun definitions here */
-#define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
-#define        AFS_SYSVLOCK            1       /* sys v locking supported */
-#define        afsio_iov               uio_iov
-#define        afsio_iovcnt    uio_iovcnt
-#define        afsio_offset    uio_loffset
-#define        afsio_seg               uio_segflg
-#define        afsio_fmode     uio_fmode
-#define        afsio_resid     uio_resid
-#define        AFS_UIOSYS      UIO_SYSSPACE
-#define        AFS_UIOUSER     UIO_USERSPACE
-#define        AFS_CLBYTES     MCLBYTES
-#define        AFS_MINCHANGE   2
-#define        osi_GetTime(x)  uniqtime32(x)
-
-#define        AFS_KALLOC(n)   kmem_alloc(n, KM_SLEEP)
-#define AFS_KALLOC_NOSLEEP(n)   kmem_alloc(n, KM_NOSLEEP)
-#define        AFS_KFREE       kmem_free
-#define        VATTR_NULL      vattr_null
-#define memset(A, B, S) bzero(A, S)
-#define memcpy(B, A, S) bcopy(A, B, S)
-#define memcmp(A, B, S) bcmp(A, B, S)
-#endif /* KERNEL */
-#define        AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-#define        ROOTINO         UFSROOTINO
-
-#endif /* AFS_PARAM_H */
-
-#else /* !defined(UKERNEL) */
-
-/* This section for user space compiles only */
-
-/*
- * Copyright 2000, International Business Machines Corporation and others.
- * All Rights Reserved.
- *
- * This software has been released under the terms of the IBM Public
- * License.  For details, see the LICENSE file in the top-level source
- * directory or online at http://www.openafs.org/dl/license10.html
- */
-
-#ifndef        AFS_PARAM_H
-#define        AFS_PARAM_H
-
-#define AFS_VFS_ENV    1
-/* Used only in vfsck code; is it needed any more???? */
-#define RXK_LISTENER_ENV       1
-#define AFS_USERSPACE_IP_ADDR  1
-#define AFS_GCPAGS             0       /* if nonzero, garbage collect PAGs */
-
-#define UKERNEL                        1       /* user space kernel */
-#define AFS_GREEDY43_ENV       1       /* Used only in rx/rx_user.c */
-#define AFS_ENV                        1
-#define AFS_USR_SUN5_ENV       1
-#define AFS_USR_SUN6_ENV       1
-
-#include <afs/afs_sysnames.h>
-
-#if 0
-#define AFS_GLOBAL_SUNLOCK     1       /* For global locking */
-#endif
-
-#define        AFS_3DISPARES           1       /* Utilize the 3 available disk inode 'spares' */
-#define        AFS_SYSCALL             73
-
-/* File system entry (used if mount.h doesn't define MOUNT_AFS */
-#define AFS_MOUNT_AFS   1
-
-/* Machine / Operating system information */
-#define sys_sunx86_57  1
-#define SYS_NAME       "sunx86_57"
-#define SYS_NAME_ID    SYS_NAME_ID_sunx86_57
-#define AFSLITTLE_ENDIAN       1
-#define AFS_HAVE_FFS            1      /* Use system's ffs. */
-#define AFS_HAVE_STATVFS      1        /* System supports statvfs */
-
-/* Extra kernel definitions (from kdefs file) */
-#ifdef KERNEL
-#define        AFS_UIOFMODE            1       /* Only in afs/afs_vnodeops.c (afs_ustrategy) */
-#define        AFS_SYSVLOCK            1       /* sys v locking supported */
-#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
-#endif /* KERNEL */
-#define        AFS_DIRENT
-#ifndef CMSERVERPREF
-#define CMSERVERPREF
-#endif
-#define        ROOTINO         UFSROOTINO
-
-#endif /* AFS_PARAM_H */
-
-#endif /* !defined(UKERNEL) */
index abb6b84..c134333 100644 (file)
 #define AFS_ENV                        1
 #define AFS_SUN_ENV            1
 #define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-#define        AFS_SUN56_ENV           1
-#define AFS_SUN57_ENV          1
-#define AFS_SUN58_ENV          1
 #define AFS_BOZONLOCK_ENV       1
 
 #define AFS_X86_ENV            1
index 2a6df80..34c3583 100644 (file)
 #define AFS_ENV                        1
 #define AFS_SUN_ENV            1
 #define AFS_SUN5_ENV           1
-#define        AFS_SUN52_ENV           1
-#define        AFS_SUN53_ENV           1
-#define        AFS_SUN54_ENV           1
-#define        AFS_SUN55_ENV           1
-#define        AFS_SUN56_ENV           1
-#define AFS_SUN57_ENV          1
-#define AFS_SUN58_ENV          1
 #define AFS_SUN59_ENV          1
 #define AFS_BOZONLOCK_ENV       1
 
index 0896114..28647d0 100644 (file)
@@ -29,7 +29,7 @@
 #    include "h/kernel.h"
 #   endif
 #  endif
-#  if  defined(AFS_SUN56_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_DARWIN80_ENV)
+#  if  defined(AFS_SUN5_ENV) || defined(AFS_HPUX_ENV) || defined(AFS_FBSD_ENV) || defined(AFS_DARWIN80_ENV)
 #   include "afs/sysincludes.h"
 #  endif
 #  if !defined(AFS_SGI64_ENV) && !defined(AFS_DARWIN_ENV) && !defined(AFS_OBSD48_ENV) && !defined(AFS_NBSD_ENV)
index ff10d5b..eff036c 100644 (file)
@@ -42,11 +42,11 @@ DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
 #CC = /opt/SUNWspro/bin/cc
 KDEFS= -D_KERNEL -DSYSV -dn ${ARCH_DEFS}
 
-<sun4x_57 sun4x_58 sun4x_59 sun4x_510 sun4x_511>
+<sun4x_58 sun4x_59 sun4x_510 sun4x_511>
 KDEFS_32 = -xarch=v8
 KDEFS_64 = -xarch=v9 
 
-<sunx86_57 sunx86_58 sunx86_59 sunx86_510 sunx86_511>
+<sunx86_58 sunx86_59 sunx86_510 sunx86_511>
 KDEFS_32 = 
 KDEFS_64 = -xarch=amd64 -xmodel=kernel
 
@@ -54,25 +54,17 @@ KDEFS_64 = -xarch=amd64 -xmodel=kernel
 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) $(KDEFS) $(KOPTS) ${DBUG}
 
 # Name of directory to hold object files and libraries.
-<all -sun4x_57 -sun4x_58 -sun4x_59 -sun4x_510 -sun4x_511 -sunx86_57 -sunx86_58 -sunx86_59 -sunx86_510 -sunx86_511>
-KOBJ = MODLOAD
-<sun4x_57 sun4x_58 sun4x_59 sunx86_57 sunx86_58 sunx86_59 sunx86_510 sunx86_511>
+<all -sun4x_510 sun4x_511>
 KOBJ = MODLOAD32 MODLOAD64
 <sun4x_510 sun4x_511>
 KOBJ = MODLOAD64
 
 # This tells Makefile.common to use it's single directory build target.
-<all -sun4x_57 -sun4x_58 -sun4x_59 -sun4x_510 -sun4x_511 -sunx86_57 -sunx86_58 -sunx86_59 -sunx86_510 -sunx86_511>
-COMPDIRS = single_compdir
-INSTDIRS = single_instdir
-DESTDIRS = single_destdir
-
-<sun4x_57 sun4x_58 sun4x_59 sun4x_510 sun4x_511 sunx86_57 sunx86_58 sunx86_59 sunx86_510 sunx86_511>
+<all>
 COMPDIRS = solaris_compdirs
 INSTDIRS = solaris_instdirs
 DESTDIRS = solaris_destdirs
 
-<all>
 include Makefile.common
 
 
@@ -99,7 +91,6 @@ setup:
 ## This is the target for a Solaris 7. Here we build both the 32 bit and
 ## the 64 bit libafs in MODLOAD32 and MODLOAD64 directories respectively
 
-<sun4x_57 sun4x_58 sun4x_59 sun4x_510 sun4x_511 sunx86_57 sunx86_58 sunx86_59 sunx86_510 sunx86_511>
 ${COMPDIRS} ${INSTDIRS} ${DESTDIRS}:
        for t in ${KOBJ} ; do \
                echo Building directory: $$t ; \
@@ -122,28 +113,16 @@ solaris_compdirs_libafs: depsrcs libafs
 solaris_instdirs_libafs: install_libafs
 solaris_destdirs_libafs: dest_libafs
 
-<all>
-
 # Below this line are targets when in the COMMON directory:
 LIBAFS = libafs.o
 LIBAFSNONFS = libafs.nonfs.o
 
-<all -sun4x_57 -sun4x_58 -sun4x_59>
-INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
-INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/${LIBAFSNONFS}
-
-DEST_LIBAFS = ${DEST}/root.client/usr/vice/etc/modload/${LIBAFS}
-DEST_LIBAFSNONFS = ${DEST}/root.client/usr/vice/etc/modload/${LIBAFSNONFS}
-
-<sun4x_57 sun4x_58 sun4x_59 sun4x_510 sun4x_511 sunx86_57 sunx86_58 sunx86_59 sunx86_510 sunx86_511>
 INST_LIBAFSNONFS = ${DESTDIR}${afskerneldir}/libafs${BITS}.nonfs.o
 INST_LIBAFS = ${DESTDIR}${afskerneldir}/libafs${BITS}.o
 
 DEST_LIBAFSNONFS = ${DEST}/root.client/usr/vice/etc/modload/libafs${BITS}.nonfs.o
 DEST_LIBAFS = ${DEST}/root.client/usr/vice/etc/modload/libafs${BITS}.o
 
-<all>
-
 # Without this line, gmake tries to build libafs.o
 .PHONY: libafs
 
index 9051cc4..8bdc107 100644 (file)
@@ -69,7 +69,7 @@ pam_sm_authenticate(pam_handle_t * pamh, int flags, int argc,
     struct sigaction newAction, origAction;
 
 
-#ifndef AFS_SUN56_ENV
+#ifndef AFS_SUN5_ENV
     openlog(pam_afs_ident, LOG_CONS | LOG_PID, LOG_AUTH);
 #endif
     origmask = setlogmask(logmask);
@@ -171,8 +171,8 @@ pam_sm_authenticate(pam_handle_t * pamh, int flags, int argc,
     /* enhanced: use "ignore_uid <number>" to specify the largest uid
      * which should be ignored by this module
      */
-#if    defined(AFS_HPUX_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN58_ENV)
-#if     defined(AFS_HPUX110_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN58_ENV)
+#if    defined(AFS_HPUX_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN5_ENV)
+#if     defined(AFS_HPUX110_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN5_ENV)
     i = getpwnam_r(user, &unix_pwd, upwd_buf, sizeof(upwd_buf), &upwd);
 #else /* AFS_HPUX110_ENV */
     i = getpwnam_r(user, &unix_pwd, upwd_buf, sizeof(upwd_buf));
@@ -413,7 +413,7 @@ pam_sm_authenticate(pam_handle_t * pamh, int flags, int argc,
            memset(torch_password, 0, strlen(torch_password));
     }
     (void)setlogmask(origmask);
-#ifndef AFS_SUN56_ENV
+#ifndef AFS_SUN5_ENV
     closelog();
 #endif
     return retcode;
index 0aab5b1..846efc4 100644 (file)
@@ -56,7 +56,7 @@ pam_sm_chauthtok(pam_handle_t * pamh, int flags, int argc, const char **argv)
     PAM_CONST struct pam_conv *pam_convp = NULL;
     struct passwd unix_pwd, *upwd = NULL;
 
-#ifndef AFS_SUN56_ENV
+#ifndef AFS_SUN5_ENV
     openlog(pam_afs_ident, LOG_CONS, LOG_AUTH);
 #endif
     origmask = setlogmask(logmask);
@@ -115,8 +115,8 @@ pam_sm_chauthtok(pam_handle_t * pamh, int flags, int argc, const char **argv)
      * and its uid==0, and "ignore_root" was given in pam.conf,
      * ignore the user.
      */
-#if    defined(AFS_HPUX_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN58_ENV)
-#if     defined(AFS_HPUX110_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN58_ENV)
+#if    defined(AFS_HPUX_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN5_ENV)
+#if     defined(AFS_HPUX110_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN5_ENV)
     i = getpwnam_r(user, &unix_pwd, upwd_buf, sizeof(upwd_buf), &upwd);
 #else /* AFS_HPUX110_ENV */
     i = getpwnam_r(user, &unix_pwd, upwd_buf, sizeof(upwd_buf));
@@ -301,7 +301,7 @@ pam_sm_chauthtok(pam_handle_t * pamh, int flags, int argc, const char **argv)
        memset(torch_password, 0, strlen(torch_password));
     }
     (void)setlogmask(origmask);
-#ifndef AFS_SUN56_ENV
+#ifndef AFS_SUN5_ENV
     closelog();
 #endif
     return retcode;
index 5fa060f..a6f7392 100644 (file)
@@ -60,7 +60,7 @@ pam_sm_setcred(pam_handle_t * pamh, int flags, int argc, const char **argv)
     struct passwd unix_pwd, *upwd = NULL;
     char upwd_buf[2048];       /* size is a guess. */
 
-#ifndef AFS_SUN56_ENV
+#ifndef AFS_SUN5_ENV
     openlog(pam_afs_ident, LOG_CONS, LOG_AUTH);
 #endif
     origmask = setlogmask(logmask);
@@ -150,8 +150,8 @@ pam_sm_setcred(pam_handle_t * pamh, int flags, int argc, const char **argv)
     /* enhanced: use "ignore_uid <number>" to specify the largest uid
      * which should be ignored by this module
      */
-#if    defined(AFS_HPUX_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN58_ENV)
-#if     defined(AFS_HPUX110_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN58_ENV)
+#if    defined(AFS_HPUX_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN5_ENV)
+#if     defined(AFS_HPUX110_ENV) || defined(AFS_DARWIN100_ENV) || defined(AFS_SUN5_ENV)
     i = getpwnam_r(user, &unix_pwd, upwd_buf, sizeof(upwd_buf), &upwd);
 #else /* AFS_HPUX110_ENV */
     i = getpwnam_r(user, &unix_pwd, upwd_buf, sizeof(upwd_buf));
@@ -352,7 +352,7 @@ pam_sm_setcred(pam_handle_t * pamh, int flags, int argc, const char **argv)
     if (password && torch_password)
        memset(torch_password, 0, strlen(torch_password));
     (void)setlogmask(origmask);
-#ifndef AFS_SUN56_ENV
+#ifndef AFS_SUN5_ENV
     closelog();
 #endif
     return retcode;
index cf24ab9..3bf52e8 100644 (file)
@@ -13,7 +13,6 @@
 
 #include <stdio.h>
 
-#if defined(AFS_SUN54_ENV)
 #define OSVERS "SunOS 5.6"
 #include <sys/types.h>
 #include <rx/xdr.h>
@@ -332,11 +331,7 @@ ProcessAfsInodes(devname, partition)
                int p5;
                quad *q;
 
-#if    defined(AFS_SUN56_ENV)
                q = (quad *) & (p->di_ic.ic_lsize);
-#else
-               q = &(p->di_ic.ic_size);
-#endif
 
                p1 = p->di_gen;
                p2 = p->di_ic.ic_flags;
@@ -706,17 +701,3 @@ CheckMountedDevice(devName)
        return 1;
     return 0;
 }
-
-#else /* !AFS_SUN54_ENV */
-
-#include "AFS_component_version_number.c"
-
-main(argc, argv)
-     int argc;
-     char *argv[];
-{
-    printf
-       ("%s: **ONLY** supported for Solaris 2.4 and later ...\n",
-        argv[0]);
-}
-#endif /* !AFS_SUN5_ENV */
index 2118e04..0e8dcd2 100644 (file)
@@ -15,8 +15,6 @@
 #include "rx/rx_kcommon.h"
 
 
-#ifdef AFS_SUN56_ENV
-
 #include "inet/common.h"
 #include "sys/tiuser.h"
 #include "sys/t_kuser.h"
 #include "sys/stream.h"
 #include "sys/tihdr.h"
 #include "sys/fcntl.h"
-#ifdef AFS_SUN58_ENV
 #include "netinet/ip6.h"
 #define ipif_local_addr ipif_lcl_addr
 #ifndef V4_PART_OF_V6
 #define V4_PART_OF_V6(v6)       v6.s6_addr32[3]
 #endif
-#endif
 #include "inet/ip.h"
 #include "inet/ip_if.h"
 #include "netinet/udp.h"
@@ -152,11 +148,9 @@ rxi_GetIFInfo()
 
 #else
     for (ill = ill_g_head; ill; ill = ill->ill_next) {
-#ifdef AFS_SUN58_ENV
        /* Make sure this is an IPv4 ILL */
        if (ill->ill_isv6)
            continue;
-#endif
 
        /* Iterate over all the addresses on this ILL */
        for (ipif = ill->ill_ipif; ipif; ipif = ipif->ipif_next) {
@@ -277,11 +271,9 @@ rxi_FindIfMTU(afs_uint32 addr)
 }
 #else
     for (ill = ill_g_head; ill; ill = ill->ill_next) {
-#ifdef AFS_SUN58_ENV
        /* Make sure this is an IPv4 ILL */
        if (ill->ill_isv6)
            continue;
-#endif
 
        /* Iterate over all the addresses on this ILL */
        for (ipif = ill->ill_ipif; ipif; ipif = ipif->ipif_next) {
@@ -802,351 +794,4 @@ osi_StopListener(void)
     osi_FreeSocket(rx_socket);
 }
 
-#else /* AFS_SUN56_ENV */
-
-#include "inet/common.h"
-#include "sys/tiuser.h"
-#include "sys/t_kuser.h"
-#include "sys/ioctl.h"
-#include "sys/stropts.h"
-#include "sys/stream.h"
-#include "sys/strsubr.h"
-#include "sys/vnode.h"
-#include "sys/stropts.h"
-#include "sys/tihdr.h"
-#include "sys/timod.h"
-#include "sys/fcntl.h"
-#include "sys/debug.h"
-#include "inet/common.h"
-#include "inet/mi.h"
-#include "netinet/udp.h"
-
-extern dev_t afs_udp_rdev;
-
-
-int
-rxi_GetIFInfo()
-{
-    return 0;
-}
-
-
-/* rxi_NewSocket, rxi_FreeSocket and osi_NetSend are from the now defunct
- * afs_osinet.c. 
- */
-
-dev_t afs_udp_rdev = (dev_t) 0;
-
-/* Allocate a new socket at specified port in network byte order. */
-osi_socket *
-rxk_NewSocketHost(afs_uint32 ahost, short aport)
-{
-    TIUSER *udp_tiptr;
-    struct t_bind *reqp, *rspp;
-    afs_int32 code;
-    struct sockaddr_in *myaddrp;
-    struct stdata *stp;
-    struct queue *q;
-
-    AFS_STATCNT(osi_NewSocket);
-    afs_udp_rdev = makedevice(11 /*CLONE*/, ddi_name_to_major("udp"));
-    code = t_kopen(NULL, afs_udp_rdev, FREAD | FWRITE, &udp_tiptr, CRED());
-    if (code) {
-       return (osi_socket *)0;
-    }
-
-    code = t_kalloc(udp_tiptr, T_BIND, T_ADDR, (char **)&reqp);
-    if (code) {
-       t_kclose(udp_tiptr, 0);
-    }
-    code = t_kalloc(udp_tiptr, T_BIND, T_ADDR, (char **)&rspp);
-    if (code) {
-       t_kfree(udp_tiptr, (char *)reqp, T_BIND);
-       t_kclose(udp_tiptr, 0);
-       return (osi_socket *)0;
-    }
-
-    reqp->addr.len = sizeof(struct sockaddr_in);
-    myaddrp = (struct sockaddr_in *)reqp->addr.buf;
-    myaddrp->sin_family = AF_INET;
-    myaddrp->sin_port = aport;
-    myaddrp->sin_addr.s_addr = ahost;  /* byteswap? */
-
-    code = t_kbind(udp_tiptr, reqp, rspp);
-    if (code) {
-       t_kfree(udp_tiptr, (char *)reqp, T_BIND);
-       t_kfree(udp_tiptr, (char *)rspp, T_BIND);
-       t_kclose(udp_tiptr, 0);
-       return (osi_socket *)0;
-    }
-    if (memcmp(reqp->addr.buf, rspp->addr.buf, rspp->addr.len)) {
-       t_kfree(udp_tiptr, (char *)reqp, T_BIND);
-       t_kfree(udp_tiptr, (char *)rspp, T_BIND);
-       t_kclose(udp_tiptr, 0);
-       return (osi_socket *)0;
-    }
-    t_kfree(udp_tiptr, (char *)reqp, T_BIND);
-    t_kfree(udp_tiptr, (char *)rspp, T_BIND);
-
-    /*
-     * Set the send and receive buffer sizes.
-     */
-    stp = udp_tiptr->fp->f_vnode->v_stream;
-    q = stp->sd_wrq;
-    q->q_hiwat = rx_UdpBufSize;
-    q->q_next->q_hiwat = rx_UdpBufSize;
-    RD(q)->q_hiwat = rx_UdpBufSize;
-
-    return (osi_socket *)udp_tiptr;
-}
-
-osi_socket *
-rxk_NewSocket(short aport)
-{
-    return rxk_NewSocketHost(htonl(INADDR_ANY), aport);
-}
-
-int
-osi_FreeSocket(osi_socket *asocket)
-{
-    extern int rxk_ListenerPid;
-    TIUSER *udp_tiptr = (TIUSER *) asocket;
-    AFS_STATCNT(osi_FreeSocket);
-
-    if (rxk_ListenerPid) {
-       kill(rxk_ListenerPid, SIGUSR1);
-       afs_osi_Sleep(&rxk_ListenerPid);
-    }
-    return 0;
-}
-
-
-int
-osi_NetSend(osi_socket asocket, struct sockaddr_in *addr, struct iovec *dvec,
-           int nvecs, afs_int32 asize, int istack)
-{
-    int i;
-    int code;
-    TIUSER *udp_tiptr = (TIUSER *) asocket;
-    struct t_kunitdata *udreq;
-    struct sockaddr_in sin;
-    mblk_t *bp;
-    mblk_t *dbp;
-
-    /*
-     * XXX We don't do any checking on the family since it's assumed to be
-     * AF_INET XXX
-     */
-    sin.sin_family = AF_INET;
-    sin.sin_addr.s_addr = addr->sin_addr.s_addr;
-    sin.sin_port = addr->sin_port;
-
-    /*
-     * Get a buffer for the RX header
-     */
-    if (nvecs < 1) {
-       osi_Panic("osi_NetSend, nvecs=%d\n", nvecs);
-    }
-    while (!(bp = allocb(dvec[0].iov_len, BPRI_LO))) {
-       if (strwaitbuf(dvec[i].iov_len, BPRI_LO)) {
-           return (ENOSR);
-       }
-    }
-
-    /* Copy the data into the buffer */
-    memcpy((char *)bp->b_wptr, (char *)dvec[0].iov_base, dvec[0].iov_len);
-    bp->b_datap->db_type = M_DATA;
-    bp->b_wptr += dvec[0].iov_len;
-
-    /*
-     * Append each element in the iovec to the buffer
-     */
-    for (i = 1; i < nvecs; i++) {
-       /* Get a buffer for the next chunk */
-       while (!(dbp = allocb(dvec[i].iov_len, BPRI_LO))) {
-           if (strwaitbuf(dvec[i].iov_len, BPRI_LO)) {
-               freeb(bp);
-               return (ENOSR);
-           }
-       }
-
-       /* Copy the data into the buffer */
-       memcpy((char *)dbp->b_wptr, (char *)dvec[i].iov_base,
-              dvec[i].iov_len);
-       dbp->b_datap->db_type = M_DATA;
-       dbp->b_wptr += dvec[i].iov_len;
-
-       /* Append it to the message buffer */
-       linkb(bp, dbp);
-    }
-
-    /*
-     * Allocate and format the unitdata structure.
-     */
-    code = t_kalloc(udp_tiptr, T_UNITDATA, T_UDATA, (char **)&udreq);
-    if (code) {
-       freeb(bp);
-       printf("osi_NetSend: t_kalloc failed %d\n", code);
-       return code;
-    }
-    udreq->addr.len = sizeof(struct sockaddr_in);
-    udreq->addr.maxlen = sizeof(struct sockaddr_in);
-    udreq->addr.buf =
-       (char *)kmem_alloc(sizeof(struct sockaddr_in), KM_SLEEP);
-    udreq->opt.len = 0;
-    udreq->opt.maxlen = 0;
-    memcpy(udreq->addr.buf, (char *)&sin, sizeof(struct sockaddr_in));
-    udreq->udata.udata_mp = bp;
-    udreq->udata.len = asize;
-
-    code = t_ksndudata(udp_tiptr, udreq, NULL);
-    if (code) {
-       printf("osi_NetSend: t_ksndudata failed %d\n", code);
-    }
-
-    t_kfree(udp_tiptr, (caddr_t) udreq, T_UNITDATA);
-    return code;
-}
-
-
-int
-osi_NetReceive(osi_socket *asocket, struct sockaddr_in *addr,
-              struct iovec *dvec, int nvecs, int *alength)
-{
-    int i;
-    TIUSER *udp_tiptr = (TIUSER *) asocket;
-    struct t_kunitdata *udreq;
-    mblk_t *dbp;
-    char *phandle;
-    short sport;
-    int code = 0;
-    int length;
-    int tlen;
-    int blen;
-    char *tbase;
-    int type;
-    int error;
-    int events;
-
-    /*
-     * Allocate the unitdata structure.
-     */
-    code = t_kalloc(udp_tiptr, T_UNITDATA, T_UDATA, (char **)&udreq);
-    if (code) {
-       printf("osi_NetReceive: t_kalloc failed %d\n", code);
-       return code;
-    }
-    udreq->addr.len = sizeof(struct sockaddr_in);
-    udreq->addr.maxlen = sizeof(struct sockaddr_in);
-    udreq->addr.buf =
-       (char *)kmem_alloc(sizeof(struct sockaddr_in), KM_SLEEP);
-    udreq->opt.len = 0;
-    udreq->opt.maxlen = 0;
-
-    /*
-     * Loop until we get an error or receive some data.
-     */
-    while (1) {
-       /*
-        * Wait until there is something to do
-        */
-       code = t_kspoll(udp_tiptr, -1, READWAIT, &events);
-       if (events == 0) {
-           osi_Panic("osi_NetReceive, infinite t_kspoll timed out\n");
-       }
-       /*
-        * If there is a message then read it in
-        */
-       if (code == 0) {
-           code = t_krcvudata(udp_tiptr, udreq, &type, &error);
-       }
-
-       /*
-        * Block attempts to kill this thread
-        */
-       if (code == EINTR && ISSIG(curthread, FORREAL)) {
-           klwp_t *lwp = ttolwp(curthread);
-           proc_t *p = ttoproc(curthread);
-           int sig = lwp->lwp_cursig;
-
-           if (sig == SIGKILL) {
-               mutex_enter(&p->p_lock);
-               p->p_flag &= ~SKILLED;
-               mutex_exit(&p->p_lock);
-           }
-           lwp->lwp_cursig = 0;
-           if (lwp->lwp_curinfo) {
-               kmem_free((caddr_t) lwp->lwp_curinfo,
-                         sizeof(*lwp->lwp_curinfo));
-               lwp->lwp_curinfo = NULL;
-           }
-       }
-
-       if (code) {
-           break;
-       }
-
-       /*
-        * Ignore non-data message types
-        */
-       if (type != T_DATA) {
-           continue;
-       }
-
-       /*
-        * Save the source address
-        */
-       memcpy((char *)addr, udreq->addr.buf, sizeof(struct sockaddr_in));
-
-       /*
-        * Copy out the message buffers, take care not to overflow
-        * the I/O vector.
-        */
-       dbp = udreq->udata.udata_mp;
-       length = *alength;
-       for (i = 0; dbp != NULL && length > 0 && i < nvecs; i++) {
-           tlen = dvec[i].iov_len;
-           tbase = dvec[i].iov_base;
-           if (tlen > length) {
-               tlen = length;
-           }
-           while (dbp != NULL && tlen > 0) {
-               blen = dbp->b_wptr - dbp->b_rptr;
-               if (blen > tlen) {
-                   memcpy(tbase, (char *)dbp->b_rptr, tlen);
-                   length -= tlen;
-                   dbp->b_rptr += tlen;
-                   tlen = 0;
-               } else {
-                   memcpy(tbase, (char *)dbp->b_rptr, blen);
-                   length -= blen;
-                   tlen -= blen;
-                   tbase += blen;
-                   dbp = dbp->b_cont;
-               }
-           }
-       }
-       *alength = *alength - length;
-       break;
-    }
-
-    t_kfree(udp_tiptr, (caddr_t) udreq, T_UNITDATA);
-    return code;
-}
-
-
-void
-osi_StopListener(void)
-{
-    osi_FreeSocket(rx_socket);
-}
-
-
-void
-shutdown_rxkernel(void)
-{
-}
-
-
-#endif /* AFS_SUN56_ENV */
 #endif /* AFS_SUN5_ENV */
index ba9583b..3ce5178 100644 (file)
 #   include "h/socket.h"
 #  endif
 #  include "netinet/in.h"
-#  ifdef AFS_SUN58_ENV
+#  ifdef AFS_SUN5_ENV
 #   include "netinet/ip6.h"
-#  endif
-#  ifdef AFS_SUN57_ENV
 #   include "inet/common.h"
 #   include "inet/ip.h"
 #   include "inet/ip_ire.h"
@@ -6224,7 +6222,7 @@ rxi_CheckCall(struct rx_call *call)
     if (now > (call->lastReceiveTime + deadTime)) {
        if (call->state == RX_STATE_ACTIVE) {
 #ifdef ADAPT_PMTU
-#if defined(KERNEL) && defined(AFS_SUN57_ENV)
+#if defined(KERNEL) && defined(AFS_SUN5_ENV)
            ire_t *ire;
 #if defined(AFS_SUN510_ENV) && defined(GLOBAL_NETSTACKID)
            netstack_t *ns =  netstack_find_by_stackid(GLOBAL_NETSTACKID);
index 3e30e3e..d8a5c90 100644 (file)
@@ -138,7 +138,7 @@ typedef atomic_t rx_atomic_t;
 #define rx_atomic_dec_and_read(X) atomic_dec_return(X)
 #define rx_atomic_sub(X, V)      atomic_sub(V, X)
 
-#elif defined(AFS_SUN510_ENV) || (defined(AFS_SUN58_ENV) && defined(KERNEL) && !defined(UKERNEL))
+#elif defined(AFS_SUN510_ENV) || (defined(AFS_SUN5_ENV) && defined(KERNEL) && !defined(UKERNEL))
 
 # if defined(KERNEL) && !defined(UKERNEL)
 #  include <sys/atomic.h>
index 904735f..4ec4821 100644 (file)
@@ -40,10 +40,10 @@ typedef unsigned short etap_event_t;
 #include "h/systm.h"
 #endif
 #include "h/time.h"
-#ifdef AFS_SUN56_ENV
-#include "h/vfs.h"             /* stops SUN56 socketvar.h warnings */
-#include "h/stropts.h"         /* stops SUN56 socketvar.h warnings */
-#include "h/stream.h"          /* stops SUN56 socketvar.h errors */
+#ifdef AFS_SUN5_ENV
+#include "h/vfs.h"             /* stops SUN5 socketvar.h warnings */
+#include "h/stropts.h"         /* stops SUN5 socketvar.h warnings */
+#include "h/stream.h"          /* stops SUN5 socketvar.h errors */
 #include "h/disp.h"
 #endif
 #include "h/socket.h"
index 587ee3e..f801d19 100644 (file)
@@ -108,7 +108,7 @@ static u_int fix_buf_size(u_int s);
 static struct xdr_ops xdrrec_ops = {
 #ifdef AFS_NT40_ENV
     /* Windows does not support labeled assignments */
-#if !(defined(KERNEL) && defined(AFS_SUN57_ENV))
+#if !(defined(KERNEL) && defined(AFS_SUN5_ENV))
     xdrrec_getint32,    /* deserialize an afs_int32 */
     xdrrec_putint32,    /* serialize an afs_int32 */
 #endif
@@ -118,7 +118,7 @@ static struct xdr_ops xdrrec_ops = {
     xdrrec_setpos,      /* set offset in the stream: not supported. */
     xdrrec_inline,      /* prime stream for inline macros */
     xdrrec_destroy,     /* destroy stream */
-#if (defined(KERNEL) && defined(AFS_SUN57_ENV))
+#if (defined(KERNEL) && defined(AFS_SUN5_ENV))
     NULL,
     xdrrec_getint32,    /* deserialize an afs_int32 */
     xdrrec_putint32,    /* serialize an afs_int32 */
index 21197e6..d724d45 100644 (file)
@@ -60,7 +60,7 @@ static void xdrstdio_destroy();
 static struct xdr_ops xdrstdio_ops = {
 #ifdef AFS_NT40_ENV
     /* Windows does not support labeled assignments */
-#if !(defined(KERNEL) && defined(AFS_SUN57_ENV))
+#if !(defined(KERNEL) && defined(AFS_SUN5_ENV))
     xdrstdio_getint32,         /* deserialize an afs_int32 */
     xdrstdio_putint32,         /* serialize an afs_int32 */
 #endif
@@ -70,7 +70,7 @@ static struct xdr_ops xdrstdio_ops = {
     xdrstdio_setpos,           /* set offset in the stream */
     xdrstdio_inline,           /* prime stream for inline macros */
     xdrstdio_destroy,          /* destroy stream */
-#if (defined(KERNEL) && defined(AFS_SUN57_ENV))
+#if (defined(KERNEL) && defined(AFS_SUN5_ENV))
     NULL,
     xdrstdio_getint32,    /* deserialize an afs_int32 */
     xdrstdio_putint32,    /* serialize an afs_int32 */
index ebc2ab3..dd1b458 100644 (file)
@@ -164,16 +164,6 @@ struct ncp_sb_info {
 #ifdef AFS_SUN5_ENV /*XXXXX*/
 #include <sys/t_lock.h>
 struct vnode foo;
-#ifdef AFS_SUN54_ENV
-#else
-#ifdef AFS_SUN52_ENV
-typedef struct stat_mutex stat_mutex_t;
-#define        kmutex_t                stat_mutex_t
-#else
-typedef struct adaptive_mutex2 adaptive_mutex2_t;
-#define        kmutex_t        adaptive_mutex2_t
-#endif
-#endif
 #endif
 
 #ifdef AFS_SGI53_ENV
@@ -603,9 +593,6 @@ int Dgcpags = 0;
 #include <sys/elf.h>
 #include <libelf.h>
 #include <sys/elf_M32.h>
-#ifndef        AFS_SUN54_ENV
-typedef ulong_t k_fltset_t;    /* XXXXXXXXXXX */
-#endif /* !AFS_SUN54_ENV */
 #include <sys/proc.h>
 #include <sys/file.h>
 #define        _NLIST_H                /* XXXXXXXXXXXXX */
@@ -2214,11 +2201,11 @@ print_allocs(int pnt)
 int
 readmem(kmem, buf, vad, len)
      int kmem, len;
-#ifdef AFS_SUN57_ENV
+#ifdef AFS_SUN5_ENV
      uintptr_t vad;
 #else
      int vad;
-#endif         /** AFS_SUN57_ENV **/
+#endif         /** AFS_SUN5_ENV **/
      char *buf;
 {
     int newlen;
@@ -2509,13 +2496,6 @@ print_nfsclient(int kmem, struct nfsclientpag *ep,
 void
 pmutex(char *sp, kmutex_t *mp)
 {
-#ifdef AFS_SUN54_ENV
-
-#else
-    struct stat_mutex *smp = (struct stat_mutex *)mp;
-
-    printf("%s mutex: %x %x\n", sp, smp->m_stats_lock, smp->m_type);
-#endif
 }
 
 #endif
index 710ee1b..8483e64 100644 (file)
 /* The following define is in order to utilize one vfsck for SunOS 4.1 & 4.1.1; note
  * that the ic_flags and size.val[0] will be zero except for AFS inodes in 4.1.1...
  */
-#if    defined(AFS_SUN56_ENV)
 #define        VICEINODE       ((dp->di_vicemagic == VICEMAGIC)   \
                         && (dp->di_mode & IFMT) == IFREG)
 #define OLDVICEINODE    (!dp->di_ic.ic_uid && (dp->di_ic.ic_gid== 0xfffffffe))
 #else
-#define        VICEINODE       (((dp->di_ic.ic_gen == VICEMAGIC) || \
-                        (dp->di_ic.ic_flags || dp->di_ic.ic_size.val[0])) \
-                        && (dp->di_mode & IFMT) == IFREG)
-#endif /* AFS_SUN56_ENV */
-#else
 #define        VICEINODE       (IS_DVICEMAGIC(dp) && (dp->di_mode & IFMT) == IFREG)
 #endif
 #endif
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
 #define                OFF_T           offset_t
 #define                UOFF_T          u_offset_t
 #else
 #define                OFF_T           long
 #define                UOFF_T          long
-#endif /* AFS_SUN56_ENV */
+#endif /* AFS_SUN5_ENV */
 
 /*
  * buffer cache structure.
index 576695b..eb5bc23 100644 (file)
@@ -145,7 +145,7 @@ ckinode(dp, idesc)
            return (ret);
     }
     idesc->id_numfrags = sblock.fs_frag;
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
     /*
      * indir_data_blks determine the no. of data blocks
      * in the previous levels. ie., at level 3 it
@@ -212,7 +212,7 @@ iblock(idesc, ilevel, isize)
        return (SKIP);
     bp = getdatablk(idesc->id_blkno, sblock.fs_bsize);
     ilevel--;
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
     for (sizepb = 1, i = 0; i < ilevel; i++) {
        sizepb *= (u_offset_t) NINDIR(&sblock);
     }
@@ -270,7 +270,7 @@ iblock(idesc, ilevel, isize)
        if (*ap) {
            idesc->id_blkno = *ap;
            if (ilevel > 0) {
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
                n = iblock(idesc, ilevel, isize);
                /*
                 * each iteration decrease "remaining block
@@ -494,7 +494,7 @@ pinode(ino)
     printf("MODE=%o\n", dp->di_mode);
     if (preen)
        printf("%s: ", devname);
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
     printf("SIZE=%" AFS_INT64_FMT " ", dp->di_size);
 #else
     printf("SIZE=%ld ", dp->di_size);
index 3a175f5..3619b01 100644 (file)
@@ -149,7 +149,7 @@ pass1()
                continue;
            }
 #endif /* ACLS */
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
            if (dp->di_size < 0 || dp->di_size > (UOFF_T) UFS_MAXOFFSET_T) {
                if (debug)
                    printf("bad size %llu:", dp->di_size);
@@ -237,7 +237,7 @@ pass1()
 
            if (ndb < 0) {
                if (debug)
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
                    printf("bad size %" AFS_INT64_FMT " ndb %d:",
 #else
                    printf("bad size %d ndb %d:",
@@ -304,7 +304,7 @@ pass1()
                    zlnhead = zlnp;
                }
            }
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
            if (OLDVICEINODE) {
                if (yflag) {
                    if (!oldreported) {
index 472915a..2858c92 100644 (file)
@@ -375,11 +375,7 @@ pass2check(idesc)
                break;
            if ((dp = ginode(dirp->d_ino)) == NULL)
                break;
-#if    defined(AFS_SUN_ENV) && !defined(AFS_SUN56_ENV)
-           dp->di_gen = dp->di_ic.ic_flags = dp->di_ic.ic_size.val[0] = 0;
-#else
            CLEAR_DVICEMAGIC(dp);
-#endif
            inodirty();
            statemap[dirp->d_ino] = FSTATE;
            ret |= ALTERED;
index 0039074..020ece2 100644 (file)
@@ -473,7 +473,7 @@ setup(dev)
      * read in the summary info.
      */
     asked = 0;
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
     {
        caddr_t sip;
        sip = calloc(1, sblock.fs_cssize);
@@ -494,7 +494,7 @@ setup(dev)
            sip += size;
        }
     }
-#else /* AFS_SUN56_ENV */
+#else /* AFS_SUN5_ENV */
 #if     defined(AFS_HPUX110_ENV)
     size = fragroundup(&sblock, sblock.fs_cssize);
     sblock.fs_csp = (struct csum *)calloc(1, (unsigned)size);
@@ -533,7 +533,7 @@ setup(dev)
        }
     }
 #endif /* else AFS_HPUX110_ENV */
-#endif /* else AFS_SUN56_ENV */
+#endif /* else AFS_SUN5_ENV */
 
 #if    defined(AFS_SUN_ENV) && !defined(AFS_SUN3_ENV)
     /*
@@ -690,14 +690,14 @@ readsb(listerr)
     altsblock.fs_optim = sblock.fs_optim;
     altsblock.fs_rotdelay = sblock.fs_rotdelay;
     altsblock.fs_maxbpg = sblock.fs_maxbpg;
-#if    !defined(__alpha) && !defined(AFS_SUN56_ENV)
+#if    !defined(__alpha) && !defined(AFS_SUN5_ENV)
 #if !defined(AFS_HPUX110_ENV)
     /* HPUX110 will use UpdateAlternateSuper() below */
     memcpy((char *)altsblock.fs_csp, (char *)sblock.fs_csp,
           sizeof sblock.fs_csp);
 #endif /* ! AFS_HPUX110_ENV */
 #endif /* ! __alpha */
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
     memcpy((char *)altsblock.fs_u.fs_csp_pad, (char *)sblock.fs_u.fs_csp_pad,
           sizeof(sblock.fs_u.fs_csp_pad));
 #endif
index 353f532..242a375 100644 (file)
@@ -304,7 +304,7 @@ flush(fd, bp)
               fsbtodb(&sblock, sblock.fs_csaddr));
     }
 #else
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
     sip = (caddr_t) sblock.fs_u.fs_csp;
     for (i = 0, j = 0; i < sblock.fs_cssize; i += sblock.fs_bsize, j++) {
        size =
@@ -321,7 +321,7 @@ flush(fd, bp)
               sblock.fs_cssize - i <
               sblock.fs_bsize ? sblock.fs_cssize - i : sblock.fs_bsize);
     }
-#endif /* AFS_SUN56_ENV */
+#endif /* AFS_SUN5_ENV */
 #endif /* AFS_HPUX101_ENV */
 }
 
@@ -812,7 +812,7 @@ updateclean()
     unsigned int size;
     unsigned int bno;
     unsigned int fsclean;
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
     offset_t sblkoff;
 #endif
 
@@ -863,7 +863,7 @@ updateclean()
     /* read private copy of superblock, update clean flag, and write it */
     bno = sblk.b_bno;
     size = sblk.b_size;
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
     sblkoff = (OFF_T) (bno) << DEV_BSHIFT;
     if (llseek(fsreadfd, sblkoff, 0) == -1)
        return;
@@ -882,7 +882,7 @@ updateclean()
     fs_set_state(cleanbuf.b_un.b_fs, fs_get_state(&sblock));
 #endif
     cleanbuf.b_un.b_fs->fs_time = sblock.fs_time;
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
     if (llseek(fswritefd, sblkoff, 0) == -1)
        return;
 #else
@@ -925,7 +925,7 @@ printclean()
 }
 #endif
 
-#ifdef AFS_SUN52_ENV
+#ifdef AFS_SUN5_ENV
 char *
 hasvfsopt(vfs, opt)
      struct vfstab *vfs;
index 87ed2f3..ee05a7d 100644 (file)
@@ -1121,7 +1121,7 @@ ListViceInodes(char *devname, char *mountedOn, FD_t inodeFile,
                osi_Panic("Tru64 needs AFS_3DISPARES\n");
 #endif
 #endif
-#if    defined(AFS_SUN56_ENV)
+#if    defined(AFS_SUN5_ENV)
                /* if this is a pre-sol2.6 unconverted inode, bail out */
                {
                    afs_uint32 p1, p2, p3, p4;