@ai-ecoverse/slicc-kernel 1.119.2 → 1.120.0

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.
@@ -2542,7 +2542,7 @@ var KERNEL_VERSION, OS_RELEASE;
2542
2542
  var init_version = __esm({
2543
2543
  "src/version.ts"() {
2544
2544
  "use strict";
2545
- KERNEL_VERSION = true ? "1.119.2" : "0.0.0-dev";
2545
+ KERNEL_VERSION = true ? "1.120.0" : "0.0.0-dev";
2546
2546
  OS_RELEASE = "6.0.0-slicc";
2547
2547
  }
2548
2548
  });
@@ -6521,6 +6521,9 @@ function cachingBridge(bridge, now = () => performance.now(), shared) {
6521
6521
  ...bridge.create ? {
6522
6522
  create: (p, mode, opening2) => mutating(() => bridge.create?.(p, mode, opening2), ...entry(p))
6523
6523
  } : {},
6524
+ ...bridge.mkfifo ? {
6525
+ mkfifo: (p, mode) => mutating(() => bridge.mkfifo?.(p, mode), ...entry(p))
6526
+ } : {},
6524
6527
  ...chown ? {
6525
6528
  chown: (p, ...rest2) => rewriting(p, () => chown.call(bridge, p, ...rest2))
6526
6529
  } : {},
@@ -8894,7 +8897,7 @@ function wrap(table) {
8894
8897
  }
8895
8898
  return out;
8896
8899
  }
8897
- var WasiExit, IDS, NS_PER_MS4, AT_SYMLINK_NOFOLLOW2, AT_EACCESS2, ROOT_IDS, GONE, S_IFIFO2, S_IFLNK2, DEFAULT_UMASK, MONOTONIC_BASE, MAX_READ, SIGINFO_BYTES, FD_ALIAS, STDIO_FDS, SIGPIPE_EXIT, SIG_IGN, SEALED_MODE, WasiHost;
8900
+ var WasiExit, IDS, NS_PER_MS4, AT_SYMLINK_NOFOLLOW2, AT_FDCWD2, AT_EACCESS2, ROOT_IDS, GONE, S_IFIFO2, S_IFLNK2, DEFAULT_UMASK, MONOTONIC_BASE, MAX_READ, SIGINFO_BYTES, FD_ALIAS, STDIO_FDS, SIGPIPE_EXIT, SIG_IGN, SEALED_MODE, WasiHost;
8898
8901
  var init_wasi_host = __esm({
8899
8902
  "src/process/wasi/wasi-host.ts"() {
8900
8903
  "use strict";
@@ -8925,6 +8928,7 @@ var init_wasi_host = __esm({
8925
8928
  IDS = ["ruid", "euid", "suid", "rgid", "egid", "sgid"];
8926
8929
  NS_PER_MS4 = 1000000n;
8927
8930
  AT_SYMLINK_NOFOLLOW2 = 1;
8931
+ AT_FDCWD2 = -2;
8928
8932
  AT_EACCESS2 = 2;
8929
8933
  ROOT_IDS = Object.freeze({ uid: 0, gid: 0 });
8930
8934
  GONE = /* @__PURE__ */ new Set(["ENOENT", "ENOTDIR"]);
@@ -9107,6 +9111,18 @@ var init_wasi_host = __esm({
9107
9111
  },
9108
9112
  fd_chmod: (fd, mode) => void this.o.fs.chmod(pathOf(fd), mode & 4095),
9109
9113
  path_chmod: (dirfd, p, l, mode, flags) => void this.o.fs.chmod(target(at(dirfd, p, l), flags), mode & 4095),
9114
+ path_mkfifo: (dirfd, p, l, mode) => {
9115
+ const { mkfifo } = this.o.fs;
9116
+ if (!mkfifo) return E.NOSYS;
9117
+ const raw = mem.string(p, l);
9118
+ const path = dirfd === AT_FDCWD2 && !raw.startsWith("/") ? fds.resolve(3, `${this.cwd}/${raw}`) : at(dirfd, p, l);
9119
+ const umask = this.o.kernel.call({ op: "proc-umask" });
9120
+ const want = mode & 4095 & ~umask;
9121
+ mkfifo.call(this.o.fs, path, want);
9122
+ const made = (this.o.fs.lstat(path).mode ?? 0) & 4095;
9123
+ if ((made & ~want) !== 0) this.o.fs.chmod(path, made & want);
9124
+ return E.SUCCESS;
9125
+ },
9110
9126
  umask: (mask, out) => {
9111
9127
  const old = this.o.kernel.call({ op: "proc-umask", mask });
9112
9128
  mem.view().setUint32(out, old, true);
@@ -10955,7 +10971,7 @@ var init_wasi_procfs = __esm({
10955
10971
  }
10956
10972
  };
10957
10973
  FOLLOWING = ["writeFile", "chmod", "utimes", "pwrite", "truncate"];
10958
- NOT_FOLLOWING = ["mkdir", "rm", "unlink", "rmdir", "lutimes", "create"];
10974
+ NOT_FOLLOWING = ["mkdir", "rm", "unlink", "rmdir", "lutimes", "create", "mkfifo"];
10959
10975
  MAX_HOPS2 = 40;
10960
10976
  }
10961
10977
  });