1 // Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/
3 // SPDX-License-Identifier: BSD-2-Clause
10 #include "stat_impl.h"
12 int fstat(int fildes
, struct stat
*buf
) {
13 __wasi_filestat_t internal_stat
;
14 __wasi_errno_t error
= __wasi_fd_filestat_get(fildes
, &internal_stat
);
19 to_public_stat(&internal_stat
, buf
);