patch-2.3.99-pre6 linux/include/linux/file.h
Next file: linux/include/linux/fs.h
Previous file: linux/include/linux/dcache.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Mon Apr 24 16:10:27 2000
- Orig file:
v2.3.99-pre5/linux/include/linux/file.h
- Orig date:
Mon Jul 26 22:41:09 1999
diff -u --recursive --new-file v2.3.99-pre5/linux/include/linux/file.h linux/include/linux/file.h
@@ -33,12 +33,12 @@
return file;
}
-extern inline struct file * frip(unsigned int fd)
+extern inline struct file * frip(struct files_struct *files, unsigned int fd)
{
struct file * file = NULL;
- if (fd < current->files->max_fds)
- file = xchg(¤t->files->fd[fd], NULL);
+ if (fd < files->max_fds)
+ file = xchg(&files->fd[fd], NULL);
return file;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)