From 6c0df53eacd6fa9b03ea3f6cfbae1bf69bf3f474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 15 Feb 2021 16:00:40 +0100 Subject: use struct **file instead of struct *fd Storing the null pointer to mark active == false accomplishes the same thing with less storage. --- src/threads/thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/threads/thread.h') 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. */ -- cgit v1.2.1