@ai-ecoverse/slicc-kernel 1.78.1 → 1.79.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.
@@ -4186,6 +4186,7 @@ function pidStatus(info) {
4186
4186
  "TracerPid: 0",
4187
4187
  `Uid: ${ids(c.ruid, c.euid, c.suid)}`,
4188
4188
  `Gid: ${ids(c.rgid, c.egid, c.sgid)}`,
4189
+ ...info.tag !== void 0 ? [tagLine(info.tag)] : [],
4189
4190
  "FDSize: 64",
4190
4191
  `VmSize: ${Math.ceil(info.memory / KIB)} kB`,
4191
4192
  `VmRSS: ${Math.ceil(info.memory / KIB)} kB`,
@@ -4448,7 +4449,7 @@ function useProcfs(Fs, sys, pid, memory = memorySource()) {
4448
4449
  readdir: (node) => pidNames(selfReaddir ? selfReaddir(node) : [".", ".."])
4449
4450
  };
4450
4451
  }
4451
- var HZ, DIR_MODE2, FILE_MODE, LINK_MODE2, ENOENT, EINVAL, UID, KIB, FALLBACK_MEMORY, PID_FILES, SYSTEM_FILES, sigMask, STATES;
4452
+ var HZ, DIR_MODE2, FILE_MODE, LINK_MODE2, ENOENT, EINVAL, UID, KIB, FALLBACK_MEMORY, PID_FILES, SYSTEM_FILES, sigMask, STATES, tagLine;
4452
4453
  var init_procfs = __esm({
4453
4454
  "src/process/procfs.ts"() {
4454
4455
  "use strict";
@@ -4467,6 +4468,7 @@ var init_procfs = __esm({
4467
4468
  SYSTEM_FILES = ["loadavg", "meminfo", "stat", "uptime"];
4468
4469
  sigMask = (mask = 0) => (mask >>> 1).toString(16).padStart(16, "0");
4469
4470
  STATES = { S: "S (sleeping)", T: "T (stopped)", Z: "Z (zombie)" };
4471
+ tagLine = (tag) => `Tag: ${tag.replaceAll("\n", "\\n").replaceAll(" ", "\\t").replaceAll("\r", "\\r")}`;
4470
4472
  }
4471
4473
  });
4472
4474