Implement the exec system call through process_execute, w/ E
This commit is contained in:
@@ -116,10 +116,15 @@ syscall_exit (int status)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static pid_t
|
static pid_t
|
||||||
syscall_exec (const char *cmd_line UNUSED)
|
syscall_exec (const char *cmd_line)
|
||||||
{
|
{
|
||||||
//TODO
|
validate_user_pointer (cmd_line, 1);
|
||||||
return 0;
|
|
||||||
|
lock_acquire (&filesys_lock);
|
||||||
|
pid_t pid = process_execute(cmd_line);
|
||||||
|
lock_release (&filesys_lock);
|
||||||
|
|
||||||
|
return pid;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
Reference in New Issue
Block a user