1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

Kernel+LibC+LibCore: Implement symlinkat(2)

Co-Authored-By: Daniel Bertalan <dani@danielbertalan.dev>
This commit is contained in:
sin-ack 2022-10-01 11:15:02 +00:00 committed by Andrew Kaster
parent 5c1d5ed51d
commit 9850a69cd1
5 changed files with 11 additions and 2 deletions

View file

@ -839,6 +839,7 @@ ErrorOr<void> symlink(StringView target, StringView link_path)
Syscall::SC_symlink_params params {
.target = { target.characters_without_null_termination(), target.length() },
.linkpath = { link_path.characters_without_null_termination(), link_path.length() },
.dirfd = AT_FDCWD,
};
int rc = syscall(SC_symlink, &params);
HANDLE_SYSCALL_RETURN_VALUE("symlink", rc, {});