Subject: /usr/src/sys/arch/i386/boot/sys.c patch [did not compile any more]
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Christos Zoulas <christos@deshaw.com>
List: current-users
Date: 12/17/1993 21:48:34
due to <sys/dir.h> changes?

christos

*** sys.c.orig	Sun Nov  7 04:04:14 1993
--- sys.c	Fri Dec 17 20:46:13 1993
***************
*** 90,97 ****
       char *path;
  {
  	char *rest, ch;
! 	int block, off, loc, ino = ROOTINO;
! 	struct direct *dp;
  loop:	iodest = iobuf;
  	cnt = fs->fs_bsize;
  	bnum = fsbtodb(fs,itod(fs,ino)) + boff;
--- 90,98 ----
       char *path;
  {
  	char *rest, ch;
! 	int block, off, loc;
! 	unsigned long ino = ROOTINO;
! 	struct dirent *dp;
  loop:	iodest = iobuf;
  	cnt = fs->fs_bsize;
  	bnum = fsbtodb(fs,itod(fs,ino)) + boff;
***************
*** 118,127 ****
  			iodest = iobuf;
  			devread();
  		}
! 		dp = (struct direct *)(iodest + off);
  		loc += dp->d_reclen;
! 	} while (!dp->d_ino || strcmp(path, dp->d_name));
! 	ino = dp->d_ino;
  	*(path = rest) = ch;
  	goto loop;
  }
--- 119,128 ----
  			iodest = iobuf;
  			devread();
  		}
! 		dp = (struct dirent *)(iodest + off);
  		loc += dp->d_reclen;
! 	} while (!dp->d_fileno || strcmp(path, dp->d_name));
! 	ino = dp->d_fileno;
  	*(path = rest) = ch;
  	goto loop;
  }

------------------------------------------------------------------------------