diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-02-15 16:00:40 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-02-15 16:00:40 +0100 |
| commit | 6c0df53eacd6fa9b03ea3f6cfbae1bf69bf3f474 (patch) | |
| tree | 5b08aca0705d436e4ea0d2807d5dc86dbd845754 /src/filesys/filesys.h | |
| parent | d83fcc30717f4e687c78bbc7896244643a2e8e4d (diff) | |
| download | pintos-6c0df53eacd6fa9b03ea3f6cfbae1bf69bf3f474.tar.gz | |
use struct **file instead of struct *fdlab1
Storing the null pointer to mark active == false accomplishes the same
thing with less storage.
Diffstat (limited to 'src/filesys/filesys.h')
| -rw-r--r-- | src/filesys/filesys.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/filesys/filesys.h b/src/filesys/filesys.h index 2db5b60..caef83c 100644 --- a/src/filesys/filesys.h +++ b/src/filesys/filesys.h @@ -17,12 +17,4 @@ bool filesys_create (const char *name, off_t initial_size); struct file *filesys_open (const char *name); bool filesys_remove (const char *name); -#ifdef USERPROG -struct fd - { - bool active; - struct file *file; - }; -#endif /* ifdef USERPROG */ - #endif /* filesys/filesys.h */ |
