mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
Kernel+LibC: Implement readlinkat(2)
Co-Authored-By: Daniel Bertalan <dani@danielbertalan.dev>
This commit is contained in:
parent
9850a69cd1
commit
6445a706cf
6 changed files with 16 additions and 6 deletions
|
@ -105,7 +105,8 @@ int serenity_readlink(char const* path, size_t path_length, char* buffer, size_t
|
|||
{
|
||||
Syscall::SC_readlink_params small_params {
|
||||
{ path, path_length },
|
||||
{ buffer, buffer_size }
|
||||
{ buffer, buffer_size },
|
||||
AT_FDCWD
|
||||
};
|
||||
int rc = syscall(SC_readlink, &small_params);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue