]>
git.proxmox.com Git - wasi-libc.git/blob - libc-bottom-half/cloudlibc/src/libc/unistd/readlinkat.c
7a3bce27b7a38a58dbbac2af58c8f3dbd952e4fe
1 // Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/
3 // SPDX-License-Identifier: BSD-2-Clause
10 ssize_t
__wasilibc_nocwd_readlinkat(int fd
, const char *restrict path
, char *restrict buf
,
13 // TODO: Remove the cast on `buf` once the witx is updated with char8 support.
14 __wasi_errno_t error
= __wasi_path_readlink(fd
, path
,
15 (uint8_t*)buf
, bufsize
, &bufused
);