Path: blob/main/system/lib/wasmfs/wasmfs_internal.h
6174 views
// Copyright 2021 The Emscripten Authors. All rights reserved.1// Emscripten is available under two separate licenses, the MIT license and the2// University of Illinois/NCSA Open Source License. Both these licenses can be3// found in the LICENSE file.45#ifdef __cplusplus6extern "C" {7#endif89// These helper functions are defined in library_wasmfs.js.1011int _wasmfs_get_num_preloaded_files();12int _wasmfs_get_num_preloaded_dirs();13int _wasmfs_get_preloaded_file_mode(int index);14void _wasmfs_get_preloaded_parent_path(int index, char* parentPath);15void _wasmfs_get_preloaded_path_name(int index, char* fileName);16void _wasmfs_get_preloaded_child_path(int index, char* childName);17size_t _wasmfs_get_preloaded_file_size(uint32_t index);18void _wasmfs_copy_preloaded_file_data(uint32_t index, uint8_t* data);1920// Returns the next character from stdin, or -1 on EOF.21int _wasmfs_stdin_get_char(void);2223#ifdef __cplusplus24}25#endif262728