#ifndef USERPROG_SYSCALL_H #define USERPROG_SYSCALL_H #include #include "threads/synch.h" typedef int pid_t; struct lock filesys_lock; void syscall_init (void); unsigned fd_hash (const struct hash_elem *element, void *aux); bool fd_less (const struct hash_elem *a, const struct hash_elem *b, void *aux); void fd_cleanup (struct hash_elem *e, void *aux); #endif /* userprog/syscall.h */