blob: 442ee343d83bf45db12b34b3639f870a10c12781 (
plain)
1
2
3
4
5
6
7
8
9
10
|
struct fd {
enum { FD_CLOSED, FD_NONE, FD_PIPE, FD_FILE } type;
int ref; // reference count
char readable;
char writeable;
struct pipe *pipe;
struct inode *ip;
};
extern struct fd fds[NFD];
|