]>
git.proxmox.com Git - wasi-libc.git/blob - libc-bottom-half/cloudlibc/src/libc/unistd/fdatasync.c
1 // Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/
3 // SPDX-License-Identifier: BSD-2-Clause
9 int fdatasync(int fildes
) {
10 __wasi_errno_t error
= __wasi_fd_datasync(fildes
);
12 errno
= error
== ENOTCAPABLE
? EBADF
: error
;