blob: d8647936e3fe24d1d15aa69271938dcee4a9faf6 (
plain)
1
2
3
4
5
6
7
8
9
|
struct file {
enum { FD_CLOSED, FD_NONE, FD_PIPE, FD_INODE } type;
int ref; // reference count
char readable;
char writable;
struct pipe *pipe;
struct uinode *ip;
uint off;
};
|