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/threads | |
| 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/threads')
| -rw-r--r-- | src/threads/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/threads/thread.h b/src/threads/thread.h index fc2029b..e3c426d 100644 --- a/src/threads/thread.h +++ b/src/threads/thread.h @@ -98,7 +98,7 @@ struct thread #ifdef USERPROG /* Owned by userprog/process.c. */ uint32_t *pagedir; /* Page directory. */ - struct fd *fds; /* Pointer to array of file descriptors. */ + struct file **fds; /* Pointer to array of file descriptors. */ #endif /* Owned by thread.c. */ |
