Implement syscall for file removal w/ S.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user