@ai-ecoverse/slicc-kernel 1.143.4 → 1.143.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/kernel-worker.js +1 -1
- package/dist/node-process-worker.js +8 -3
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +1 -1
- package/dist/process-worker.js +8 -3
- package/dist/process-worker.js.map +2 -2
- package/dist/types/process/wasi/wasi-host.d.ts +1 -0
- package/package.json +4 -4
package/dist/node.js
CHANGED
|
@@ -7982,7 +7982,7 @@ function satisfies(version, range2) {
|
|
|
7982
7982
|
}
|
|
7983
7983
|
|
|
7984
7984
|
// src/version.ts
|
|
7985
|
-
var KERNEL_VERSION = true ? "1.143.
|
|
7985
|
+
var KERNEL_VERSION = true ? "1.143.5" : "0.0.0-dev";
|
|
7986
7986
|
var OS_RELEASE = "6.0.0-slicc";
|
|
7987
7987
|
function procVersion() {
|
|
7988
7988
|
return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
|
package/dist/process-worker.js
CHANGED
|
@@ -2783,7 +2783,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
2783
2783
|
var init_version = __esm({
|
|
2784
2784
|
"src/version.ts"() {
|
|
2785
2785
|
"use strict";
|
|
2786
|
-
KERNEL_VERSION = true ? "1.143.
|
|
2786
|
+
KERNEL_VERSION = true ? "1.143.5" : "0.0.0-dev";
|
|
2787
2787
|
OS_RELEASE = "6.0.0-slicc";
|
|
2788
2788
|
}
|
|
2789
2789
|
});
|
|
@@ -10566,6 +10566,7 @@ var init_wasi_host = __esm({
|
|
|
10566
10566
|
startCwd;
|
|
10567
10567
|
interruptWakes = false;
|
|
10568
10568
|
strictEpoll = false;
|
|
10569
|
+
cwdFd = false;
|
|
10569
10570
|
entered = false;
|
|
10570
10571
|
enteredSignals = 0;
|
|
10571
10572
|
raisedOnEntry;
|
|
@@ -14164,7 +14165,7 @@ function posixSignal(sig) {
|
|
|
14164
14165
|
function nsToMs(ns) {
|
|
14165
14166
|
return Math.ceil(Number(ns) / 1e6);
|
|
14166
14167
|
}
|
|
14167
|
-
var FDFLAGSEXT_CLOEXEC, SPAWN_OP_SIZE, SPAWN_OPS, RIGHTS_FD_WRITE, ICANON, ECHO, FUTEX_SLICE_MS, EINTR_LIBC, STRICT_EPOLL_LIBC, MAIN_HANDLE, WasixHost;
|
|
14168
|
+
var FDFLAGSEXT_CLOEXEC, SPAWN_OP_SIZE, SPAWN_OPS, RIGHTS_FD_WRITE, ICANON, ECHO, FUTEX_SLICE_MS, EINTR_LIBC, STRICT_EPOLL_LIBC, CWD_FD_LIBC, MAIN_HANDLE, WasixHost;
|
|
14168
14169
|
var init_wasix_host = __esm({
|
|
14169
14170
|
"src/process/wasi/wasix-host.ts"() {
|
|
14170
14171
|
"use strict";
|
|
@@ -14189,6 +14190,7 @@ var init_wasix_host = __esm({
|
|
|
14189
14190
|
FUTEX_SLICE_MS = 50;
|
|
14190
14191
|
EINTR_LIBC = 22;
|
|
14191
14192
|
STRICT_EPOLL_LIBC = 29;
|
|
14193
|
+
CWD_FD_LIBC = 41;
|
|
14192
14194
|
MAIN_HANDLE = 2147483647;
|
|
14193
14195
|
WasixHost = class _WasixHost {
|
|
14194
14196
|
process;
|
|
@@ -14207,7 +14209,9 @@ var init_wasix_host = __esm({
|
|
|
14207
14209
|
driver,
|
|
14208
14210
|
() => (this.threads?.tid ?? MAIN_TID) !== MAIN_TID
|
|
14209
14211
|
);
|
|
14210
|
-
|
|
14212
|
+
const libc = module ? libcVersion(module) ?? 0 : void 0;
|
|
14213
|
+
if (libc !== void 0) host.strictEpoll = libc >= STRICT_EPOLL_LIBC;
|
|
14214
|
+
if (libc !== void 0) host.cwdFd = libc >= CWD_FD_LIBC;
|
|
14211
14215
|
if (module && !WebAssembly.Module.imports(module).some((i) => i.name === "fd_fdflags_set")) {
|
|
14212
14216
|
host.fds.implicitCloexec = true;
|
|
14213
14217
|
host.interruptWakes = (libcVersion(module) ?? 0) < EINTR_LIBC;
|
|
@@ -14347,6 +14351,7 @@ var init_wasix_host = __esm({
|
|
|
14347
14351
|
mem.view().setUint32(out, host.o.parent?.() ?? host.o.ppid ?? 1, true);
|
|
14348
14352
|
},
|
|
14349
14353
|
getcwd: (buf, lenPtr) => {
|
|
14354
|
+
if (host.cwdFd && host.fds.held && !host.fds.held.alive()) return E.NOENT;
|
|
14350
14355
|
const bytes = new TextEncoder().encode(host.cwd);
|
|
14351
14356
|
const max = mem.view().getUint32(lenPtr, true);
|
|
14352
14357
|
mem.view().setUint32(lenPtr, bytes.length, true);
|