mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Kernel: Implement fchdir syscall
The fchdir() function is equivalent to chdir() except that the directory that is to be the new current working directory is specified by a file descriptor.
This commit is contained in:
parent
26e81ad574
commit
7d85fc00e4
Notes:
sideshowbarker
2024-07-19 12:08:12 +09:00
Author: https://github.com/mauri870
Commit: 7d85fc00e4
Pull-request: https://github.com/SerenityOS/serenity/pull/550
Reviewed-by: https://github.com/awesomekling
6 changed files with 24 additions and 0 deletions
|
@ -136,6 +136,8 @@ static u32 handle(RegisterDump& regs, u32 function, u32 arg1, u32 arg2, u32 arg3
|
|||
break;
|
||||
case Syscall::SC_chdir:
|
||||
return current->process().sys$chdir((const char*)arg1);
|
||||
case Syscall::SC_fchdir:
|
||||
return current->process().sys$fchdir((int)arg1);
|
||||
case Syscall::SC_uname:
|
||||
return current->process().sys$uname((utsname*)arg1);
|
||||
case Syscall::SC_set_mmap_name:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue