patch-1.3.3 linux/fs/readdir.c
Next file: linux/include/linux/kd.h
Previous file: linux/fs/binfmt_elf.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Sun Jun 18 17:05:52 1995
- Orig file:
v1.3.2/linux/fs/readdir.c
- Orig date:
Thu Jun 8 17:27:33 1995
diff -u --recursive --new-file v1.3.2/linux/fs/readdir.c linux/fs/readdir.c
@@ -45,11 +45,11 @@
return -EINVAL;
buf->count++;
dirent = buf->dirent;
- put_fs_long(ino, &dirent->d_ino);
- put_fs_long(offset, &dirent->d_offset);
- put_fs_word(namlen, &dirent->d_namlen);
+ put_user(ino, &dirent->d_ino);
+ put_user(offset, &dirent->d_offset);
+ put_user(namlen, &dirent->d_namlen);
memcpy_tofs(dirent->d_name, name, namlen);
- put_fs_byte(0, dirent->d_name + namlen);
+ put_user(0, dirent->d_name + namlen);
return 0;
}
@@ -106,10 +106,10 @@
put_user(offset, &dirent->d_off);
dirent = buf->current;
buf->previous = dirent;
- put_fs_long(ino, &dirent->d_ino);
- put_fs_word(reclen, &dirent->d_reclen);
+ put_user(ino, &dirent->d_ino);
+ put_user(reclen, &dirent->d_reclen);
memcpy_tofs(dirent->d_name, name, namlen);
- put_fs_byte(0, dirent->d_name + namlen);
+ put_user(0, dirent->d_name + namlen);
((char *) dirent) += reclen;
buf->current = dirent;
buf->count -= reclen;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this