@ai-ecoverse/wasix-sysroot 2025.9.30-28 → 2025.9.30-29

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,26 @@ 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-29 `poll` and `ppoll` take a `pollfd` that asks for neither
45
+ reading nor writing (`events` 0, as OpenSSH's client loop passes for idle
46
+ channels, or only bits WASI can't poll): the entry is skipped, and its
47
+ `revents` stays 0 unless the descriptor is bad, which gives `POLLNVAL` at
48
+ once. Up to -28 the whole call failed with ENOSYS. Such an entry gets no
49
+ `POLLHUP`/`POLLERR` (WASI polls only for reading and writing); `POLLPRI` is
50
+ `POLLIN` in these headers. A call with only such entries waits out its
51
+ timeout, or until a signal handler runs. `epoll_ctl` maps Linux's
52
+ `EPOLL_CTL_ADD`/`MOD`/`DEL` (1/3/2, what `<sys/epoll.h>` defines) to WASIX's
53
+ 0/1/2 and fails with -1 and `errno`; up to -28 it passed the Linux number on
54
+ (an ADD arrived as a WASIX MOD, a MOD as an invalid op) and returned the
55
+ errno as its value, so every error looked like success (homescoop#443).
56
+ `epoll_wait` gives back the whole 64-bit `data` (up to -28 any value whose
57
+ low 32 bits are 0 came back as the fd) and as many events as `maxevents`
58
+ asks for (it was capped at 64), `epoll_create1` honours `EPOLL_CLOEXEC`, and
59
+ `epoll_pwait` installs its signal mask for the wait. WASIX epoll needs
60
+ slicc-kernel ≥ 1.95.0; older kernels answer ENOSYS. On slicc-kernel 1.95.x
61
+ `EPOLL_CTL_MOD` of an fd that isn't registered adds it instead of failing
62
+ with ENOENT: the kernel still takes -28's numbering (slicc-kernel#684).
63
+
44
64
  Since 2025.9.30-28 signal masks work. `sigprocmask` and `pthread_sigmask`
45
65
  hand the thread's mask to slicc-kernel (`slicc.sigmask_set`), which holds a
46
66
  blocked signal as pending and delivers it when it is unblocked, before the
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/wasix-sysroot",
3
- "version": "2025.9.30-28",
4
- "description": "WASIX sysroots: st_uid/st_gid, chown and access() through slicc-kernel file owners (getuid()/getgid() on older kernels), file modes via slicc_fs, F_SETFD CLOEXEC fix, select exceptfds, physical chdir, POSIX TZ, socketpair flags, sigaction_set, alarm/setitimer/getitimer, EINTR sleeps, raise/pthread_kill, process credentials from slicc-kernel (no fixed uid 1000), per-fd termios/winsize from slicc-kernel (Linux and WASIX ioctl numbers), fork in the PIC variants, wasip1, clang24 exnref",
3
+ "version": "2025.9.30-29",
4
+ "description": "WASIX sysroots: st_uid/st_gid, chown and access() through slicc-kernel file owners (getuid()/getgid() on older kernels), file modes via slicc_fs, F_SETFD CLOEXEC fix, select exceptfds, physical chdir, POSIX TZ, socketpair flags, sigaction_set, alarm/setitimer/getitimer, EINTR sleeps, raise/pthread_kill, process credentials from slicc-kernel (no fixed uid 1000), per-fd termios/winsize from slicc-kernel (Linux and WASIX ioctl numbers), fork in the PIC variants, signal masks, poll/ppoll with events 0, epoll_ctl with Linux op numbers, wasip1, clang24 exnref",
5
5
  "license": "Apache-2.0 WITH LLVM-exception",
6
6
  "repository": {
7
7
  "type": "git",
Binary file
Binary file
Binary file
Binary file