@ai-ecoverse/slicc-kernel 1.97.2 → 1.98.1
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 +22 -14
- package/dist/kernel-worker.js.map +3 -3
- package/dist/node-process-worker.js +27 -2
- package/dist/node-process-worker.js.map +3 -3
- package/dist/node.js +22 -14
- package/dist/node.js.map +3 -3
- package/dist/process-worker.js +40 -15
- package/dist/process-worker.js.map +4 -4
- package/package.json +2 -2
|
@@ -4529,7 +4529,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
4529
4529
|
var init_version = __esm({
|
|
4530
4530
|
"src/version.ts"() {
|
|
4531
4531
|
"use strict";
|
|
4532
|
-
KERNEL_VERSION = true ? "1.
|
|
4532
|
+
KERNEL_VERSION = true ? "1.98.1" : "0.0.0-dev";
|
|
4533
4533
|
OS_RELEASE = "6.0.0-slicc";
|
|
4534
4534
|
}
|
|
4535
4535
|
});
|
|
@@ -8333,6 +8333,26 @@ function kernelLink(imports, fs, memory, glue) {
|
|
|
8333
8333
|
true
|
|
8334
8334
|
);
|
|
8335
8335
|
}
|
|
8336
|
+
function kernelUname(imports, hostname, memory, glue) {
|
|
8337
|
+
const fields = ["Linux", hostname, OS_RELEASE, "#1 SMP PREEMPT_DYNAMIC", "wasm32", "(none)"];
|
|
8338
|
+
const encoded = fields.map((f) => new TextEncoder().encode(f).subarray(0, UTS_FIELD - 1));
|
|
8339
|
+
wrapImport(
|
|
8340
|
+
imports,
|
|
8341
|
+
"uname",
|
|
8342
|
+
glue,
|
|
8343
|
+
(own) => (buf) => {
|
|
8344
|
+
const heap = memory();
|
|
8345
|
+
if (!buf || !heap) return own(buf);
|
|
8346
|
+
const bytes = new Uint8Array(heap.buffer, buf, UTS_FIELD * fields.length);
|
|
8347
|
+
bytes.fill(0);
|
|
8348
|
+
encoded.forEach((field2, i) => {
|
|
8349
|
+
bytes.set(field2, i * UTS_FIELD);
|
|
8350
|
+
});
|
|
8351
|
+
return 0;
|
|
8352
|
+
},
|
|
8353
|
+
true
|
|
8354
|
+
);
|
|
8355
|
+
}
|
|
8336
8356
|
function kernelChdir(Fs) {
|
|
8337
8357
|
const { chdir, lookupPath, ErrnoError } = Fs;
|
|
8338
8358
|
if (!chdir || !lookupPath || !ErrnoError) return;
|
|
@@ -8360,13 +8380,14 @@ function linuxDevices(Fs) {
|
|
|
8360
8380
|
}
|
|
8361
8381
|
}
|
|
8362
8382
|
}
|
|
8363
|
-
var O_CLOEXEC, FD_CLOEXEC, F_DUPFD, F_GETFD, F_SETFD, F_GETFL, F_DUPFD_CLOEXEC, tracked, IMPORT_NAMES, EBADF, AT_SYMLINK_NOFOLLOW2, EMSCRIPTEN_EPERM, O_PATH2, LITERALS, UTIME_NOW, UTIME_OMIT, PROT_WRITE, MAP_PRIVATE, MAP_TYPE, O_WRONLY5, MAP_ALIGN, DIR_MODE, LINK_MODE, CHAR_DEVICE, O_ACCMODE3, O_CREAT, field, pinnedRoot, rootKind, NAME, AT_FDCWD, AT_EACCESS2, W_ACCESS, X_ACCESS, AT_SYMLINK_FOLLOW, DEVICE_MODES;
|
|
8383
|
+
var O_CLOEXEC, FD_CLOEXEC, F_DUPFD, F_GETFD, F_SETFD, F_GETFL, F_DUPFD_CLOEXEC, tracked, IMPORT_NAMES, EBADF, AT_SYMLINK_NOFOLLOW2, EMSCRIPTEN_EPERM, O_PATH2, LITERALS, UTIME_NOW, UTIME_OMIT, PROT_WRITE, MAP_PRIVATE, MAP_TYPE, O_WRONLY5, MAP_ALIGN, DIR_MODE, LINK_MODE, CHAR_DEVICE, O_ACCMODE3, O_CREAT, field, pinnedRoot, rootKind, NAME, AT_FDCWD, AT_EACCESS2, W_ACCESS, X_ACCESS, AT_SYMLINK_FOLLOW, UTS_FIELD, DEVICE_MODES;
|
|
8364
8384
|
var init_process_fds = __esm({
|
|
8365
8385
|
"src/process/process-fds.ts"() {
|
|
8366
8386
|
"use strict";
|
|
8367
8387
|
init_dev_removal();
|
|
8368
8388
|
init_loopback_names();
|
|
8369
8389
|
init_live_vfs_fs();
|
|
8390
|
+
init_version();
|
|
8370
8391
|
init_process_locks();
|
|
8371
8392
|
init_process_pty();
|
|
8372
8393
|
init_wasi_errno();
|
|
@@ -8398,6 +8419,7 @@ var init_process_fds = __esm({
|
|
|
8398
8419
|
umask: "__syscall_umask",
|
|
8399
8420
|
faccessat: "__syscall_faccessat",
|
|
8400
8421
|
linkat: "__syscall_linkat",
|
|
8422
|
+
uname: "__syscall_uname",
|
|
8401
8423
|
utimensat: "__syscall_utimensat",
|
|
8402
8424
|
getppid: "slicc_getppid_js",
|
|
8403
8425
|
resizeHeap: "emscripten_resize_heap",
|
|
@@ -8425,6 +8447,7 @@ var init_process_fds = __esm({
|
|
|
8425
8447
|
W_ACCESS = 2;
|
|
8426
8448
|
X_ACCESS = 1;
|
|
8427
8449
|
AT_SYMLINK_FOLLOW = 1024;
|
|
8450
|
+
UTS_FIELD = 65;
|
|
8428
8451
|
DEVICE_MODES = [
|
|
8429
8452
|
["/", 493],
|
|
8430
8453
|
["/dev", 493],
|
|
@@ -12462,6 +12485,7 @@ function kernelWrappers(imports, module, deps) {
|
|
|
12462
12485
|
noFollowUtimes(imports, fsOf, kernelGlue?.utimensat ?? utimensatOf(module), memory);
|
|
12463
12486
|
kernelAccess(imports, fsOf, memory, kernelGlue);
|
|
12464
12487
|
kernelLink(imports, fsOf, memory, kernelGlue);
|
|
12488
|
+
kernelUname(imports, hostnameOf(init.env), memory, kernelGlue);
|
|
12465
12489
|
const glue = ownValue(module, "sliccFdImports");
|
|
12466
12490
|
syncFsync(imports, fsOf, glue);
|
|
12467
12491
|
positionalIo(imports, { glue, fs: fsOf, sys, memory });
|
|
@@ -12780,6 +12804,7 @@ var init_process_runtime = __esm({
|
|
|
12780
12804
|
" umask: typeof ___syscall_umask === 'function' ? ___syscall_umask : undefined,",
|
|
12781
12805
|
" faccessat: typeof ___syscall_faccessat === 'function' ? ___syscall_faccessat : undefined,",
|
|
12782
12806
|
" linkat: typeof ___syscall_linkat === 'function' ? ___syscall_linkat : undefined,",
|
|
12807
|
+
" uname: typeof ___syscall_uname === 'function' ? ___syscall_uname : undefined,",
|
|
12783
12808
|
" utimensat: typeof ___syscall_utimensat === 'function' ? ___syscall_utimensat : undefined,",
|
|
12784
12809
|
" getppid: typeof _slicc_getppid_js === 'function' ? _slicc_getppid_js : undefined,",
|
|
12785
12810
|
" resizeHeap: typeof _emscripten_resize_heap === 'function' ? _emscripten_resize_heap : undefined,",
|