patch-2.4.0-test6 linux/fs/open.c
Next file: linux/fs/partitions/acorn.c
Previous file: linux/fs/nls/Makefile
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Mon Aug 7 22:36:39 2000
- Orig file:
v2.4.0-test5/linux/fs/open.c
- Orig date:
Mon Jul 10 16:47:26 2000
diff -u --recursive --new-file v2.4.0-test5/linux/fs/open.c linux/fs/open.c
@@ -804,11 +804,10 @@
* or not in the open-files bitmap. dup2 uses this to retain the fd
* without races.
*/
-int do_close(unsigned int fd, int release)
+int do_close(struct files_struct *files, unsigned int fd, int release)
{
int error;
struct file * filp;
- struct files_struct * files = current->files;
error = -EBADF;
write_lock(&files->file_lock);
@@ -829,7 +828,7 @@
asmlinkage long sys_close(unsigned int fd)
{
- return do_close(fd, 1);
+ return do_close(current->files, fd, 1);
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)