@ai-ecoverse/slicc-kernel 1.135.4 → 1.135.6

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/dist/node.js CHANGED
@@ -7486,7 +7486,7 @@ function satisfies(version, range2) {
7486
7486
  }
7487
7487
 
7488
7488
  // src/version.ts
7489
- var KERNEL_VERSION = true ? "1.135.4" : "0.0.0-dev";
7489
+ var KERNEL_VERSION = true ? "1.135.6" : "0.0.0-dev";
7490
7490
  var OS_RELEASE = "6.0.0-slicc";
7491
7491
  function procVersion() {
7492
7492
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -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.135.4" : "0.0.0-dev";
2786
+ KERNEL_VERSION = true ? "1.135.6" : "0.0.0-dev";
2787
2787
  OS_RELEASE = "6.0.0-slicc";
2788
2788
  }
2789
2789
  });
@@ -10533,6 +10533,9 @@ var init_wasi_host = __esm({
10533
10533
  else if (!o.bare) this.fds.setup(o.cwd, o.inherited ?? [], o.preopenRoot === true);
10534
10534
  this.listening = o.shared ? [] : this.fds.sockets();
10535
10535
  }
10536
+ fromCwd(raw) {
10537
+ return this.fds.cwd() === void 0 ? this.fds.resolve(3, `${this.cwd}/${raw}`) : this.fds.resolve(3, raw);
10538
+ }
10536
10539
  get cwd() {
10537
10540
  return this.fds.cwd() ?? this.startCwd;
10538
10541
  }
@@ -10545,7 +10548,7 @@ var init_wasi_host = __esm({
10545
10548
  const raw = mem.string(p, l);
10546
10549
  if (raw === "") throw new WasiError("ENOENT");
10547
10550
  if (raw.startsWith("/")) return fds.resolve(3, raw);
10548
- return dirfd === AT_FDCWD2 ? fds.resolve(3, `${this.cwd}/${raw}`) : fds.resolve(dirfd, raw);
10551
+ return dirfd === AT_FDCWD2 ? this.fromCwd(raw) : fds.resolve(dirfd, raw);
10549
10552
  };
10550
10553
  return (...args) => {
10551
10554
  const [srcDirfd, sp, sl, dstDirfd, dp, dl, mode, flags] = args;
@@ -10705,7 +10708,7 @@ var init_wasi_host = __esm({
10705
10708
  if (!mkfifo) return E.NOSYS;
10706
10709
  const raw = mem.string(p, l);
10707
10710
  if (raw === "") throw new WasiError("ENOENT");
10708
- const path = dirfd === AT_FDCWD2 && !raw.startsWith("/") ? fds.resolve(3, `${this.cwd}/${raw}`) : at(dirfd, p, l);
10711
+ const path = dirfd === AT_FDCWD2 && !raw.startsWith("/") ? this.fromCwd(raw) : at(dirfd, p, l);
10709
10712
  const umask = this.umasks.get();
10710
10713
  const want = mode & 4095 & ~umask;
10711
10714
  mkfifo.call(this.o.fs, path, want);