diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-02-05 16:12:40 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-02-05 16:12:40 +0100 |
| commit | 1bf4e6694adcb9e0e3ad6c950b61761fa05aac7f (patch) | |
| tree | 785cb0693aa7665a618be49a7dbdd33310728242 /src | |
| parent | a6dc721820c728f9ac633e91bef8566f155629e4 (diff) | |
| download | pintos-1bf4e6694adcb9e0e3ad6c950b61761fa05aac7f.tar.gz | |
move struct fd to filesys.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/filesys/filesys.h | 6 | ||||
| -rw-r--r-- | src/threads/thread.h | 5 |
2 files changed, 6 insertions, 5 deletions
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 { |
