Implement syscall for file removal w/ S.

This commit is contained in:
EDiasAlberto
2024-11-08 14:35:23 +00:00
parent a8676f2e09
commit dca9d8f5a3

View File

@@ -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