diff --git a/src/userprog/syscall.c b/src/userprog/syscall.c index 04d763f..cf353cc 100644 --- a/src/userprog/syscall.c +++ b/src/userprog/syscall.c @@ -141,10 +141,15 @@ syscall_create (const char *file UNUSED, unsigned initial_size UNUSED) } static bool -syscall_remove (const char *file UNUSED) +syscall_remove (const char *file) { - //TODO - return 0; + validate_user_pointer (file, 1); + + lock_acquire (&filesys_lock); + bool status = filesys_remove (file); + lock_release (&filesys_lock); + + return status; } static int