eaea18cb9c
Various changes made while offline. + bwrite sector argument is redundant; use b->sector. + reformatting of files for nicer PDF page breaks + distinguish between locked, unlocked inodes in type signatures + change FD_FILE to FD_INODE + move userinit (nee proc0init) to proc.c + move ROOTDEV to param.h + always parenthesize sizeof argument
10 lines
190 B
C
10 lines
190 B
C
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;
|
|
};
|