mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
Kernel+LibC+LibCore: Implement mkdirat(2)
This commit is contained in:
parent
6445a706cf
commit
eb5389e933
5 changed files with 12 additions and 5 deletions
|
@ -857,7 +857,7 @@ ErrorOr<void> mkdir(StringView path, mode_t mode)
|
|||
if (path.is_null())
|
||||
return Error::from_errno(EFAULT);
|
||||
#ifdef AK_OS_SERENITY
|
||||
int rc = syscall(SC_mkdir, path.characters_without_null_termination(), path.length(), mode);
|
||||
int rc = syscall(SC_mkdir, AT_FDCWD, path.characters_without_null_termination(), path.length(), mode);
|
||||
HANDLE_SYSCALL_RETURN_VALUE("mkdir", rc, {});
|
||||
#else
|
||||
DeprecatedString path_string = path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue