syscall: use wasi-libc tables for wasm/js target

Instead of using fake tables for errno and others, use the ones that
correspond to wasi-libc.
This commit is contained in:
Ayke van Laethem
2024-11-18 11:49:30 +01:00
committed by Ayke
parent 289fceb3ea
commit 0087d4c6bf
6 changed files with 8 additions and 6 deletions
+8
View File
@@ -0,0 +1,8 @@
//go:build wasip1 || js
package syscall
// Use a go:extern definition to access the errno from wasi-libc
//
//go:extern errno
var libcErrno Errno