emscripten-core / emscripten-core/emscripten

Nodefs errno values don't match emscripten errno values on Windows

Open
#8,882 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

e.g. on our current Windows bot, in `test_unistd_access`, `test_unistd_misc`, and `test_unistd_unlink`, access to the "nonexistent" file returns `ENOENT` which is 2 on posix and 4058 on Windows. NODEFS seems to pass the underlying errno value through from Node, which presumably passes it through from the platform.

I assume this is a real problem since we use posix errno values in emscripten. Has this ever worked, or did it used to work in a different way?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.