diff options
Diffstat (limited to 'src/threads')
| -rw-r--r-- | src/threads/thread.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/threads/thread.h b/src/threads/thread.h index f0fea1f..fc2029b 100644 --- a/src/threads/thread.h +++ b/src/threads/thread.h @@ -5,6 +5,8 @@ #include <list.h> #include <stdint.h> +#define MAX_FDS 128 /* Max number of file descriptors per thread */ + /* States in a thread's life cycle. */ enum thread_status { @@ -96,10 +98,7 @@ struct thread #ifdef USERPROG /* Owned by userprog/process.c. */ uint32_t *pagedir; /* Page directory. */ - - int num_files; - int max_files; - struct fd *files; /* Pointer to array of file descriptors. */ + struct fd *fds; /* Pointer to array of file descriptors. */ #endif /* Owned by thread.c. */ |
