diff options
Diffstat (limited to 'lib/libstand/ufs.c')
-rw-r--r-- | lib/libstand/ufs.c | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/lib/libstand/ufs.c b/lib/libstand/ufs.c index 35af957..099db22 100644 --- a/lib/libstand/ufs.c +++ b/lib/libstand/ufs.c @@ -137,8 +137,8 @@ read_inode(inumber, f) ino_t inumber; struct open_file *f; { - register struct file *fp = (struct file *)f->f_fsdata; - register struct fs *fs = fp->f_fs; + struct file *fp = (struct file *)f->f_fsdata; + struct fs *fs = fp->f_fs; char *buf; size_t rsize; int rc; @@ -162,7 +162,7 @@ read_inode(inumber, f) } { - register struct dinode *dp; + struct dinode *dp; dp = (struct dinode *)buf; fp->f_di = dp[ino_to_fsbo(fs, inumber)]; @@ -172,7 +172,7 @@ read_inode(inumber, f) * Clear out the old buffers */ { - register int level; + int level; for (level = 0; level < NIADDR; level++) fp->f_blkno[level] = -1; @@ -193,8 +193,8 @@ block_map(f, file_block, disk_block_p) daddr_t file_block; daddr_t *disk_block_p; /* out */ { - register struct file *fp = (struct file *)f->f_fsdata; - register struct fs *fs = fp->f_fs; + struct file *fp = (struct file *)f->f_fsdata; + struct fs *fs = fp->f_fs; int level; int idx; daddr_t ind_block_num; @@ -298,10 +298,10 @@ buf_write_file(f, buf_p, size_p) char *buf_p; size_t *size_p; /* out */ { - register struct file *fp = (struct file *)f->f_fsdata; - register struct fs *fs = fp->f_fs; + struct file *fp = (struct file *)f->f_fsdata; + struct fs *fs = fp->f_fs; long off; - register daddr_t file_block; + daddr_t file_block; daddr_t disk_block; size_t block_size; int rc; @@ -375,10 +375,10 @@ buf_read_file(f, buf_p, size_p) char **buf_p; /* out */ size_t *size_p; /* out */ { - register struct file *fp = (struct file *)f->f_fsdata; - register struct fs *fs = fp->f_fs; + struct file *fp = (struct file *)f->f_fsdata; + struct fs *fs = fp->f_fs; long off; - register daddr_t file_block; + daddr_t file_block; daddr_t disk_block; size_t block_size; int rc; @@ -437,8 +437,8 @@ search_directory(name, f, inumber_p) struct open_file *f; ino_t *inumber_p; /* out */ { - register struct file *fp = (struct file *)f->f_fsdata; - register struct direct *dp; + struct file *fp = (struct file *)f->f_fsdata; + struct direct *dp; struct direct *edp; char *buf; size_t buf_size; @@ -486,8 +486,8 @@ ufs_open(upath, f) const char *upath; struct open_file *f; { - register char *cp, *ncp; - register int c; + char *cp, *ncp; + int c; ino_t inumber, parent_inumber; struct file *fp; struct fs *fs; @@ -525,8 +525,8 @@ ufs_open(upath, f) * Calculate indirect block levels. */ { - register int mult; - register int level; + int mult; + int level; mult = 1; for (level = 0; level < NIADDR; level++) { @@ -566,7 +566,7 @@ ufs_open(upath, f) * Get next component of path name. */ { - register int len = 0; + int len = 0; ncp = cp; while ((c = *cp) != '\0' && c != '/') { @@ -622,7 +622,7 @@ ufs_open(upath, f) */ size_t buf_size; daddr_t disk_block; - register struct fs *fs = fp->f_fs; + struct fs *fs = fp->f_fs; if (!buf) buf = malloc(fs->fs_bsize); @@ -677,7 +677,7 @@ static int ufs_close(f) struct open_file *f; { - register struct file *fp = (struct file *)f->f_fsdata; + struct file *fp = (struct file *)f->f_fsdata; int level; f->f_fsdata = (void *)0; @@ -706,12 +706,12 @@ ufs_read(f, start, size, resid) size_t size; size_t *resid; /* out */ { - register struct file *fp = (struct file *)f->f_fsdata; - register size_t csize; + struct file *fp = (struct file *)f->f_fsdata; + size_t csize; char *buf; size_t buf_size; int rc = 0; - register char *addr = start; + char *addr = start; while (size != 0) { if (fp->f_seekp >= fp->f_di.di_size) @@ -748,10 +748,10 @@ ufs_write(f, start, size, resid) size_t size; size_t *resid; /* out */ { - register struct file *fp = (struct file *)f->f_fsdata; + struct file *fp = (struct file *)f->f_fsdata; size_t csize; int rc = 0; - register char *addr = start; + char *addr = start; csize = size; while ((size != 0) && (csize != 0)) { @@ -779,7 +779,7 @@ ufs_seek(f, offset, where) off_t offset; int where; { - register struct file *fp = (struct file *)f->f_fsdata; + struct file *fp = (struct file *)f->f_fsdata; switch (where) { case SEEK_SET: @@ -802,7 +802,7 @@ ufs_stat(f, sb) struct open_file *f; struct stat *sb; { - register struct file *fp = (struct file *)f->f_fsdata; + struct file *fp = (struct file *)f->f_fsdata; /* only important stuff */ sb->st_mode = fp->f_di.di_mode; |