Rev 6934 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6934 | Rev 7143 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | * Wrapper functions for accessing the file_struct fd array. |
2 | * Wrapper functions for accessing the file_struct fd array. |
3 | */ |
3 | */ |
4 | 4 | ||
5 | #ifndef __LINUX_FILE_H |
5 | #ifndef __LINUX_FILE_H |
6 | #define __LINUX_FILE_H |
6 | #define __LINUX_FILE_H |
7 | 7 | ||
8 | #include |
8 | #include |
9 | #include |
9 | #include |
10 | #include |
10 | #include |
11 | 11 | ||
12 | struct file; |
12 | struct file; |
13 | 13 | ||
14 | extern void fput(struct file *); |
14 | extern void fput(struct file *); |
- | 15 | ||
- | 16 | struct file_operations; |
|
- | 17 | struct vfsmount; |
|
- | 18 | struct dentry; |
|
- | 19 | struct path; |
|
15 | struct fd { |
20 | struct fd { |
16 | struct file *file; |
21 | struct file *file; |
17 | unsigned int flags; |
22 | unsigned int flags; |
18 | }; |
23 | }; |
19 | #define FDPUT_FPUT 1 |
24 | #define FDPUT_FPUT 1 |
20 | #define FDPUT_POS_UNLOCK 2 |
25 | #define FDPUT_POS_UNLOCK 2 |
21 | extern struct file *fget(unsigned int fd); |
26 | extern struct file *fget(unsigned int fd); |
22 | #endif /* __LINUX_FILE_H */ |
27 | #endif /* __LINUX_FILE_H */ |