Update thread and syscall to use local fd counter instead global one, preventing overflow

This commit is contained in:
sBubshait
2024-11-15 15:48:56 +00:00
parent 7daf4fb079
commit 6b1dbdd34f
4 changed files with 8 additions and 6 deletions

View File

@@ -4,8 +4,6 @@
#include <hash.h>
#include "threads/synch.h"
#define MIN_USER_FD 2
typedef int pid_t;
struct lock filesys_lock;