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
This commit is contained in:
parent
3dcf889c1b
commit
eaea18cb9c
25 changed files with 637 additions and 669 deletions
4
file.h
4
file.h
|
@ -1,9 +1,9 @@
|
|||
struct file {
|
||||
enum { FD_CLOSED, FD_NONE, FD_PIPE, FD_FILE } type;
|
||||
enum { FD_CLOSED, FD_NONE, FD_PIPE, FD_INODE } type;
|
||||
int ref; // reference count
|
||||
char readable;
|
||||
char writable;
|
||||
struct pipe *pipe;
|
||||
struct inode *ip;
|
||||
struct uinode *ip;
|
||||
uint off;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue