From 1bf4e6694adcb9e0e3ad6c950b61761fa05aac7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 5 Feb 2021 16:12:40 +0100 Subject: move struct fd to filesys.h --- src/filesys/filesys.h | 6 ++++++ src/threads/thread.h | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/filesys/filesys.h b/src/filesys/filesys.h index caef83c..77d99b7 100644 --- a/src/filesys/filesys.h +++ b/src/filesys/filesys.h @@ -17,4 +17,10 @@ bool filesys_create (const char *name, off_t initial_size); struct file *filesys_open (const char *name); bool filesys_remove (const char *name); +struct fd + { + bool active; + struct file *file; + }; + #endif /* filesys/filesys.h */ diff --git a/src/threads/thread.h b/src/threads/thread.h index b209036..f0fea1f 100644 --- a/src/threads/thread.h +++ b/src/threads/thread.h @@ -80,11 +80,6 @@ typedef int tid_t; only because they are mutually exclusive: only a thread in the ready state is on the run queue, whereas only a thread in the blocked state is on a semaphore wait list. */ -struct fd - { - bool active; - struct file *file; - }; struct thread { -- cgit v1.2.1