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
|
static bool
|
||||||
syscall_remove (const char *file UNUSED)
|
syscall_remove (const char *file)
|
||||||
{
|
{
|
||||||
//TODO
|
validate_user_pointer (file, 1);
|
||||||
return 0;
|
|
||||||
|
lock_acquire (&filesys_lock);
|
||||||
|
bool status = filesys_remove (file);
|
||||||
|
lock_release (&filesys_lock);
|
||||||
|
|
||||||
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
Reference in New Issue
Block a user