From 78177f7ab2ad24f867dc7d9f52ddd583971e9c8f Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 17 Dec 2024 12:58:28 -0800 Subject: [PATCH] WasmFS: Enable wasm64.test_unistd_access under wasmfs (#23203) Fix the signatures of several native wasmfs exports. These are only needed/relevant under wasm64. --- test/test_core.py | 2 +- tools/emscripten.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_core.py b/test/test_core.py index a60f946740009..87d04cfdc1615 100644 --- a/test/test_core.py +++ b/test/test_core.py @@ -5882,7 +5882,7 @@ def test_sigaction_default(self, signal, exit_code, assert_identical): ) @crossplatform - @also_with_nodefs_both + @with_all_fs def test_unistd_access(self): nodefs = '-DNODEFS' in self.emcc_args or '-DNODERAWFS' in self.emcc_args if self.get_setting('WASMFS'): diff --git a/tools/emscripten.py b/tools/emscripten.py index c60a3ee71c975..250432f5462f7 100644 --- a/tools/emscripten.py +++ b/tools/emscripten.py @@ -1066,6 +1066,9 @@ def create_pointer_conversion_wrappers(metadata): '__cxa_get_exception_ptr': 'pp', '_wasmfs_write_file': '_ppp', '_wasmfs_mknod': '_p__', + '_wasmfs_symlink': '_pp', + '_wasmfs_chmod': '_p_', + '_wasmfs_lchmod': '_p_', '_wasmfs_get_cwd': 'p_', '_wasmfs_identify': '_p', '_wasmfs_read_file': 'pp',