Subversion Repositories Kolibri OS

Rev

Rev 6934 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Wrapper functions for accessing the file_struct fd array.
  3.  */
  4.  
  5. #ifndef __LINUX_FILE_H
  6. #define __LINUX_FILE_H
  7.  
  8. #include <linux/compiler.h>
  9. #include <linux/types.h>
  10. #include <linux/posix_types.h>
  11.  
  12. struct file;
  13.  
  14. extern void fput(struct file *);
  15.  
  16. struct file_operations;
  17. struct vfsmount;
  18. struct dentry;
  19. struct path;
  20. struct fd {
  21.         struct file *file;
  22.         unsigned int flags;
  23. };
  24. #define FDPUT_FPUT       1
  25. #define FDPUT_POS_UNLOCK 2
  26. extern struct file *fget(unsigned int fd);
  27. #endif /* __LINUX_FILE_H */
  28.