patch-1.3.26 linux/fs/readdir.c
Next file: linux/include/asm-alpha/ptrace.h
Previous file: linux/fs/proc/array.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Mon Sep 11 20:15:45 1995
- Orig file:
v1.3.25/linux/fs/readdir.c
- Orig date:
Tue Jun 27 14:11:44 1995
diff -u --recursive --new-file v1.3.25/linux/fs/readdir.c linux/fs/readdir.c
@@ -86,7 +86,7 @@
};
struct getdents_callback {
- struct linux_dirent * current;
+ struct linux_dirent * current_dir;
struct linux_dirent * previous;
int count;
int error;
@@ -104,14 +104,14 @@
dirent = buf->previous;
if (dirent)
put_user(offset, &dirent->d_off);
- dirent = buf->current;
+ dirent = buf->current_dir;
buf->previous = dirent;
put_user(ino, &dirent->d_ino);
put_user(reclen, &dirent->d_reclen);
memcpy_tofs(dirent->d_name, name, namlen);
put_user(0, dirent->d_name + namlen);
((char *) dirent) += reclen;
- buf->current = dirent;
+ buf->current_dir = dirent;
buf->count -= reclen;
return 0;
}
@@ -130,7 +130,7 @@
error = verify_area(VERIFY_WRITE, dirent, count);
if (error)
return error;
- buf.current = (struct linux_dirent *) dirent;
+ buf.current_dir = (struct linux_dirent *) dirent;
buf.previous = NULL;
buf.count = count;
buf.error = 0;
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