arudradey's picture
download
raw
866 Bytes
/*
* Copyright 2019 The Emscripten Authors. All rights reserved.
* Emscripten is available under two separate licenses, the MIT license and the
* University of Illinois/NCSA Open Source License. Both these licenses can be
* found in the LICENSE file.
*/
#ifndef __wasi_emscripten_helpers_h
#define __wasi_emscripten_helpers_h
#include <wasi/api.h>
#ifdef __cplusplus
extern "C" {
#endif
// Converts a wasi return code to a musl syscall return code (-1 if
// error, 0 otherwise), and sets errno accordingly.
int __wasi_syscall_ret(__wasi_errno_t code);
// Check if a wasi file descriptor is valid, returning 1 if valid and 0 if
// not. If not, also sets errno to EBADF.
int __wasi_fd_is_valid(__wasi_fd_t fd);
struct timespec __wasi_timestamp_to_timespec(__wasi_timestamp_t timestamp);
#ifdef __cplusplus
}
#endif
#endif // __wasi_emscripten_helpers_h

Xet Storage Details

Size:
866 Bytes
·
Xet hash:
9856cdc93b56c6a0290cbe93149344c7fc474cf093d2cb3f00804f4d2f475c10

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.