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

Function __syscall_fchdir

system/lib/wasmfs/syscalls.cpp:739–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737}
738
739int __syscall_fchdir(int fd) {
740 auto openFile = wasmFS.getFileTable().locked().getEntry(fd);
741 if (!openFile) {
742 return -EBADF;
743 }
744 return doChdir(openFile->locked().getFile());
745}
746
747int __syscall_getcwd(char* buf, size_t size) {
748 // Check if buf points to a bad address.

Callers

nothing calls this directly

Calls 4

doChdirFunction · 0.85
getEntryMethod · 0.80
lockedMethod · 0.45
getFileMethod · 0.45

Tested by

no test coverage detected