mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +00:00
Kernel: Add realpath syscall
This commit is contained in:
parent
8f50d75184
commit
18fbe4ac83
Notes:
sideshowbarker
2024-07-19 12:32:12 +09:00
Author: https://github.com/rok-povsic
Commit: 18fbe4ac83
Pull-request: https://github.com/SerenityOS/serenity/pull/473
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
4 changed files with 34 additions and 0 deletions
|
@ -311,6 +311,8 @@ static u32 handle(RegisterDump& regs, u32 function, u32 arg1, u32 arg2, u32 arg3
|
|||
return current->process().sys$mprotect((void*)arg1, (size_t)arg2, (int)arg3);
|
||||
case Syscall::SC_get_process_name:
|
||||
return current->process().sys$get_process_name((char*)arg1, (int)arg2);
|
||||
case Syscall::SC_realpath:
|
||||
return current->process().sys$realpath((const char*)arg1, (char*)arg2, (size_t)arg3);
|
||||
default:
|
||||
kprintf("<%u> int0x82: Unknown function %u requested {%x, %x, %x}\n", current->process().pid(), function, arg1, arg2, arg3);
|
||||
return -ENOSYS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue