]> git.proxmox.com Git - wasi-libc.git/blob - libc-bottom-half/cloudlibc/src/libc/unistd/symlinkat.c
Delete several blocks of unused code. (#294)
[wasi-libc.git] / libc-bottom-half / cloudlibc / src / libc / unistd / symlinkat.c
1 // Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/
2 //
3 // SPDX-License-Identifier: BSD-2-Clause
4
5 #include <wasi/api.h>
6 #include <errno.h>
7 #include <string.h>
8 #include <unistd.h>
9
10 int __wasilibc_nocwd_symlinkat(const char *path1, int fd, const char *path2) {
11 __wasi_errno_t error = __wasi_path_symlink(path1, fd, path2);
12 if (error != 0) {
13 return -1;
14 }
15 return 0;
16 }