mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
Kernel+LibC+LibCore: Implement mknodat(2)
This commit is contained in:
parent
05cf1327ed
commit
4574a8c334
Notes:
sideshowbarker
2024-07-17 00:25:35 +09:00
Author: https://github.com/implicitfield
Commit: 4574a8c334
Pull-request: https://github.com/SerenityOS/serenity/pull/23099
Reviewed-by: https://github.com/timschumi ✅
5 changed files with 11 additions and 3 deletions
|
@ -1622,7 +1622,7 @@ ErrorOr<void> mknod(StringView pathname, mode_t mode, dev_t dev)
|
|||
return Error::from_syscall("mknod"sv, -EFAULT);
|
||||
|
||||
#ifdef AK_OS_SERENITY
|
||||
Syscall::SC_mknod_params params { { pathname.characters_without_null_termination(), pathname.length() }, mode, dev };
|
||||
Syscall::SC_mknod_params params { { pathname.characters_without_null_termination(), pathname.length() }, mode, dev, AT_FDCWD };
|
||||
int rc = syscall(SC_mknod, ¶ms);
|
||||
HANDLE_SYSCALL_RETURN_VALUE("mknod", rc, {});
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue