int *perror;
{
struct inode *ip;
- register afs_int32 code;
+ afs_int32 code;
struct vnode *vp;
struct fs *fs;
struct inode *pip;
*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;
{
struct inode *pip, *ip;
extern struct osi_dev cacheDev;
- register int code = 0;
+ int code = 0;
*perror = 0;
{
int dummy, err = 0;
struct inode *ip, *newip;
- register int code;
+ int code;
dev_t newdev;
struct ufsvfs *ufsvfsp;
* 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;
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
(((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;
struct vnode *vp = NULL;
int dummy;
int fd;
- register int code;
+ int code;
dev_t newdev;
AFS_STATCNT(afs_syscall_iopen);
* 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;
* XXX We should set the fp to null since we don't need it in the icalls
*/
setf(fd, fp);
-#ifdef AFS_SUN57_64BIT_ENV
+
+ /* rvp->r_val{1,2} are really members into a union and are re-extracted
+ * later by solaris. If we're not 64-bit, they appear to just be the same
+ * 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_SUN5_64BIT_ENV) && !defined(AFSLITTLE_ENDIAN)
rvp->r_val2 = fd;
#else
rvp->r_val1 = fd;
{
int dummy;
struct inode *ip;
- register afs_int32 code;
+ afs_int32 code;
dev_t newdev;
if (!afs_osi_suser(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;