@ai-ecoverse/wasix-sysroot 2025.9.30-42 → 2025.9.30-43

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 CHANGED
@@ -41,6 +41,10 @@ Since 2025.9.30-18:
41
41
  `sleep` early with the seconds left.
42
42
  - `raise()` and `pthread_kill(pthread_self())` reach the handler.
43
43
 
44
+ Since 2025.9.30-43:
45
+ - **Relative paths keep working after a program renumbers or closes fd 3** (homescoop#1571). The `.` preopen at fd 3 is the cwd only while `fd_prestat_get(3)` still reports it. After `dup2(file, 3)`, `close(3)` or a new file landing on fd 3, relative paths are joined to the cwd string libc keeps (every `chdir` updates it), as before -41, and `getcwd()` returns that string. slicc-kernel's own `getcwd` no longer follows the cwd once fd 3 is gone. A failed `chdir` leaves the cwd as it was. `getcwd()` always NUL-terminates: `getcwd(NULL, 0)` allocates the right size, and a buffer with no room for the NUL is ERANGE.
46
+ - **`/etc/hostname` comments** (homescoop#1587): `gethostname()` and `uname().nodename` skip blank lines and lines whose first non-blank character is `#`, and take the first line that's left, as hostname(5) says. Up to 1024 bytes are read. A file with only comments falls back to `HOSTNAME`, and so does one whose first real line isn't a valid name.
47
+
44
48
  Since 2025.9.30-42: **`gethostname()` and `uname().nodename` read `/etc/hostname`** (homescoop#1462). They take its first line, trimmed of spaces, tabs and CR. If the file is missing, or that line is empty, 65 characters or longer, or contains a `/`, a space or a control character, they use `HOSTNAME`, and then `slicc`. A read error (EAGAIN from a FIFO, EIO) skips the file too. slicc-kernel ≥ 1.140.0 serves `/etc/hostname` with its node name (slicc-kernel#1297), and a root-written file wins over it. On older kernels the `HOSTNAME` the kernel sets is used, as since -36. errno is left as it was.
45
49
 
46
50
  Since 2025.9.30-41: **relative paths go through the cwd descriptor** (homescoop#1305, slicc-kernel#1164). A relative path, and every `*at(AT_FDCWD, …)` call, is resolved by the host against fd 3 (the `.` preopen, which slicc-kernel keeps as the process's cwd), not joined to a cached cwd string and sent to the `/` preopen. In a cwd that was removed and replaced by a directory of the same name, relative lookups (`.` included) are ENOENT, as on Linux, instead of opening the replacement; `chdir(".")` is ENOENT and leaves the cwd where it is, and `chdir("..")` or `chdir("./..")` still works there, since a relative `chdir` that `realpath` can't resolve goes to the host's `chdir` as is. `getcwd` always asks the host; slicc-kernel answers ENOENT in a removed cwd for programs whose `slicc.libc` marker is `wasix-sysroot 2025.9.30-41` or later (slicc-kernel#1227). The removed-cwd behaviour needs slicc-kernel ≥ 1.135.6; on older kernels relative lookups there still reach the replacement. A host without a `.` preopen at fd 3 gets the old string join.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/wasix-sysroot",
3
- "version": "2025.9.30-42",
3
+ "version": "2025.9.30-43",
4
4
  "description": "C and C++ system libraries for building WASIX programs that run on slicc.",
5
5
  "license": "Apache-2.0 WITH LLVM-exception",
6
6
  "repository": {
Binary file
Binary file
Binary file
Binary file