MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / wasmfs_create_directory

Function wasmfs_create_directory

system/lib/wasmfs/syscalls.cpp:660–664  ·  view source on GitHub ↗

This function is exposed to users and allows users to specify a particular backend that a directory should be created within.

Source from the content-addressed store, hash-verified

658// This function is exposed to users and allows users to specify a particular
659// backend that a directory should be created within.
660int wasmfs_create_directory(char* path, mode_t mode, backend_t backend) {
661 static_assert(std::is_same_v<decltype(doMkdir(0, 0, 0)), int>,
662 "unexpected conversion from result of doMkdir to int");
663 return doMkdir(path::parseParent(path), mode, backend);
664}
665
666// TODO: Test this.
667int __syscall_mkdirat(int dirfd, const char* path, mode_t mode) {

Callers 7

testFunction · 0.85
wasmfs_before_preloadFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
test_directory_absFunction · 0.85
_wasmfs_mountFunction · 0.85

Calls 2

doMkdirFunction · 0.85
parseParentFunction · 0.85

Tested by 2

testFunction · 0.68
test_directory_absFunction · 0.68