]>
git.proxmox.com Git - wasi-libc.git/blob - libc-bottom-half/cloudlibc/src/libc/stdio/renameat.c
1 // Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/
3 // SPDX-License-Identifier: BSD-2-Clause
5 #include <common/errno.h>
12 int __wasilibc_nocwd_renameat(int oldfd
, const char *old
, int newfd
, const char *new) {
13 __wasi_errno_t error
= __wasi_path_rename(oldfd
, old
, newfd
, new);
15 errno
= errno_fixup_directory(oldfd
, errno_fixup_directory(newfd
, error
));