]>
git.proxmox.com Git - wasi-libc.git/blob - libc-bottom-half/cloudlibc/src/common/errno.h
1 // Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/
3 // SPDX-License-Identifier: BSD-2-Clause
10 // WASI syscalls should just return ENOTDIR if that's what the problem is.
11 static inline __wasi_errno_t
errno_fixup_directory(__wasi_fd_t fd
,
12 __wasi_errno_t error
) {
16 // WASI syscalls should just return ENOTSOCK if that's what the problem is.
17 static inline __wasi_errno_t
errno_fixup_socket(__wasi_fd_t fd
,
18 __wasi_errno_t error
) {