@ai-ecoverse/wasix-sysroot 2025.9.30-28 → 2025.9.30-30
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 +41 -0
- package/package.json +2 -2
- package/sysroot/include/__header_fcntl.h +6 -0
- package/sysroot/include/unistd.h +0 -4
- package/sysroot/lib/wasm32-wasip1/crt1-command.o +0 -0
- package/sysroot/lib/wasm32-wasip1/crt1-reactor.o +0 -0
- package/sysroot/lib/wasm32-wasip1/crt1.o +0 -0
- package/sysroot/lib/wasm32-wasip1/libc.a +0 -0
- package/sysroot-eh/include/__header_fcntl.h +6 -0
- package/sysroot-eh/include/unistd.h +0 -4
- package/sysroot-eh/lib/wasm32-wasip1/crt1-command.o +0 -0
- package/sysroot-eh/lib/wasm32-wasip1/crt1-reactor.o +0 -0
- package/sysroot-eh/lib/wasm32-wasip1/crt1.o +0 -0
- package/sysroot-eh/lib/wasm32-wasip1/libc.a +0 -0
- package/sysroot-ehpic/include/__header_fcntl.h +6 -0
- package/sysroot-ehpic/include/unistd.h +0 -4
- package/sysroot-ehpic/lib/wasm32-wasip1/crt1-command.o +0 -0
- package/sysroot-ehpic/lib/wasm32-wasip1/crt1-reactor.o +0 -0
- package/sysroot-ehpic/lib/wasm32-wasip1/crt1.o +0 -0
- package/sysroot-ehpic/lib/wasm32-wasip1/libc.a +0 -0
- package/sysroot-exnref-eh/include/__header_fcntl.h +6 -0
- package/sysroot-exnref-eh/include/unistd.h +0 -4
- package/sysroot-exnref-eh/lib/wasm32-wasip1/crt1-command.o +0 -0
- package/sysroot-exnref-eh/lib/wasm32-wasip1/crt1-reactor.o +0 -0
- package/sysroot-exnref-eh/lib/wasm32-wasip1/crt1.o +0 -0
- package/sysroot-exnref-eh/lib/wasm32-wasip1/libc.a +0 -0
- package/sysroot-exnref-ehpic/include/__header_fcntl.h +6 -0
- package/sysroot-exnref-ehpic/include/unistd.h +0 -4
- package/sysroot-exnref-ehpic/lib/wasm32-wasip1/crt1-command.o +0 -0
- package/sysroot-exnref-ehpic/lib/wasm32-wasip1/crt1-reactor.o +0 -0
- package/sysroot-exnref-ehpic/lib/wasm32-wasip1/crt1.o +0 -0
- package/sysroot-exnref-ehpic/lib/wasm32-wasip1/libc.a +0 -0
package/README.md
CHANGED
|
@@ -41,6 +41,47 @@ 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-30 named semaphores work between processes. `sem_open`,
|
|
45
|
+
`sem_close`, `sem_unlink`, `sem_wait`, `sem_trywait`, `sem_timedwait`,
|
|
46
|
+
`sem_post` and `sem_getvalue` on a named semaphore go to slicc-kernel
|
|
47
|
+
(`slicc.sem_*`, slicc-kernel ≥ 1.99.0). The kernel keeps the semaphore, a
|
|
48
|
+
forked child inherits its handles, an exec'd program opens it again by name,
|
|
49
|
+
and a second `sem_open` of the same name in a process returns the same
|
|
50
|
+
`sem_t *`. Unnamed semaphores (`sem_init`) are unchanged and work only
|
|
51
|
+
between threads. On an older kernel `sem_open` falls back to musl's
|
|
52
|
+
`/dev/shm` file, which fails there with ENOENT, as up to -29. Memory isn't
|
|
53
|
+
shared between processes, so `MAP_SHARED` mappings and `shm_open` can't
|
|
54
|
+
replace a semaphore.
|
|
55
|
+
|
|
56
|
+
Also since 2025.9.30-30, POSIX record locks: `<fcntl.h>` defines `F_GETLK`,
|
|
57
|
+
`F_SETLK`, `F_SETLKW` and `F_RDLCK`/`F_WRLCK`/`F_UNLCK`, `lockf` is in
|
|
58
|
+
libc, and `fcntl` hands the three lock commands to slicc-kernel
|
|
59
|
+
(`slicc.fcntl_lock`, slicc-kernel#722), which keeps them per process, as
|
|
60
|
+
Linux does: not inherited by `fork`, kept across `exec`, dropped when any
|
|
61
|
+
descriptor of the file closes. On a kernel without the import every lock is
|
|
62
|
+
granted locally and `F_GETLK` reports `F_UNLCK`, as programs' own stubs did.
|
|
63
|
+
Up to -29 WASIX defined none of these. `flock` is not in libc yet.
|
|
64
|
+
|
|
65
|
+
Since 2025.9.30-29 `poll` and `ppoll` take a `pollfd` that asks for neither
|
|
66
|
+
reading nor writing (`events` 0, as OpenSSH's client loop passes for idle
|
|
67
|
+
channels, or only bits WASI can't poll): the entry is skipped, and its
|
|
68
|
+
`revents` stays 0 unless the descriptor is bad, which gives `POLLNVAL` at
|
|
69
|
+
once. Up to -28 the whole call failed with ENOSYS. Such an entry gets no
|
|
70
|
+
`POLLHUP`/`POLLERR` (WASI polls only for reading and writing); `POLLPRI` is
|
|
71
|
+
`POLLIN` in these headers. A call with only such entries waits out its
|
|
72
|
+
timeout, or until a signal handler runs. `epoll_ctl` maps Linux's
|
|
73
|
+
`EPOLL_CTL_ADD`/`MOD`/`DEL` (1/3/2, what `<sys/epoll.h>` defines) to WASIX's
|
|
74
|
+
0/1/2 and fails with -1 and `errno`; up to -28 it passed the Linux number on
|
|
75
|
+
(an ADD arrived as a WASIX MOD, a MOD as an invalid op) and returned the
|
|
76
|
+
errno as its value, so every error looked like success (homescoop#443).
|
|
77
|
+
`epoll_wait` gives back the whole 64-bit `data` (up to -28 any value whose
|
|
78
|
+
low 32 bits are 0 came back as the fd) and as many events as `maxevents`
|
|
79
|
+
asks for (it was capped at 64), `epoll_create1` honours `EPOLL_CLOEXEC`, and
|
|
80
|
+
`epoll_pwait` installs its signal mask for the wait. WASIX epoll needs
|
|
81
|
+
slicc-kernel ≥ 1.95.0; older kernels answer ENOSYS. On slicc-kernel 1.95.x
|
|
82
|
+
`EPOLL_CTL_MOD` of an fd that isn't registered adds it instead of failing
|
|
83
|
+
with ENOENT: the kernel still takes -28's numbering (slicc-kernel#684).
|
|
84
|
+
|
|
44
85
|
Since 2025.9.30-28 signal masks work. `sigprocmask` and `pthread_sigmask`
|
|
45
86
|
hand the thread's mask to slicc-kernel (`slicc.sigmask_set`), which holds a
|
|
46
87
|
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-
|
|
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-30",
|
|
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, named semaphores through slicc-kernel, wasip1, clang24 exnref",
|
|
5
5
|
"license": "Apache-2.0 WITH LLVM-exception",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
package/sysroot/include/unistd.h
CHANGED
|
@@ -195,9 +195,7 @@ size_t confstr(int, char *, size_t);
|
|
|
195
195
|
#define F_TEST 3
|
|
196
196
|
int setreuid(uid_t, uid_t); /* homescoop wasix-sysroot -20 */
|
|
197
197
|
int setregid(gid_t, gid_t);
|
|
198
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
|
|
199
198
|
int lockf(int, int, off_t);
|
|
200
|
-
#endif
|
|
201
199
|
long gethostid(void);
|
|
202
200
|
#ifdef __wasilibc_unmodified_upstream /* WASI has no nice or sync */
|
|
203
201
|
int nice(int);
|
|
@@ -292,9 +290,7 @@ pid_t gettid(void);
|
|
|
292
290
|
#define truncate64 truncate
|
|
293
291
|
#endif
|
|
294
292
|
#define ftruncate64 ftruncate
|
|
295
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
|
|
296
293
|
#define lockf64 lockf
|
|
297
|
-
#endif
|
|
298
294
|
#define off64_t off_t
|
|
299
295
|
#endif
|
|
300
296
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -195,9 +195,7 @@ size_t confstr(int, char *, size_t);
|
|
|
195
195
|
#define F_TEST 3
|
|
196
196
|
int setreuid(uid_t, uid_t); /* homescoop wasix-sysroot -20 */
|
|
197
197
|
int setregid(gid_t, gid_t);
|
|
198
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
|
|
199
198
|
int lockf(int, int, off_t);
|
|
200
|
-
#endif
|
|
201
199
|
long gethostid(void);
|
|
202
200
|
#ifdef __wasilibc_unmodified_upstream /* WASI has no nice or sync */
|
|
203
201
|
int nice(int);
|
|
@@ -292,9 +290,7 @@ pid_t gettid(void);
|
|
|
292
290
|
#define truncate64 truncate
|
|
293
291
|
#endif
|
|
294
292
|
#define ftruncate64 ftruncate
|
|
295
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
|
|
296
293
|
#define lockf64 lockf
|
|
297
|
-
#endif
|
|
298
294
|
#define off64_t off_t
|
|
299
295
|
#endif
|
|
300
296
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -195,9 +195,7 @@ size_t confstr(int, char *, size_t);
|
|
|
195
195
|
#define F_TEST 3
|
|
196
196
|
int setreuid(uid_t, uid_t); /* homescoop wasix-sysroot -20 */
|
|
197
197
|
int setregid(gid_t, gid_t);
|
|
198
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
|
|
199
198
|
int lockf(int, int, off_t);
|
|
200
|
-
#endif
|
|
201
199
|
long gethostid(void);
|
|
202
200
|
#ifdef __wasilibc_unmodified_upstream /* WASI has no nice or sync */
|
|
203
201
|
int nice(int);
|
|
@@ -292,9 +290,7 @@ pid_t gettid(void);
|
|
|
292
290
|
#define truncate64 truncate
|
|
293
291
|
#endif
|
|
294
292
|
#define ftruncate64 ftruncate
|
|
295
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
|
|
296
293
|
#define lockf64 lockf
|
|
297
|
-
#endif
|
|
298
294
|
#define off64_t off_t
|
|
299
295
|
#endif
|
|
300
296
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -195,9 +195,7 @@ size_t confstr(int, char *, size_t);
|
|
|
195
195
|
#define F_TEST 3
|
|
196
196
|
int setreuid(uid_t, uid_t); /* homescoop wasix-sysroot -20 */
|
|
197
197
|
int setregid(gid_t, gid_t);
|
|
198
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
|
|
199
198
|
int lockf(int, int, off_t);
|
|
200
|
-
#endif
|
|
201
199
|
long gethostid(void);
|
|
202
200
|
#ifdef __wasilibc_unmodified_upstream /* WASI has no nice or sync */
|
|
203
201
|
int nice(int);
|
|
@@ -292,9 +290,7 @@ pid_t gettid(void);
|
|
|
292
290
|
#define truncate64 truncate
|
|
293
291
|
#endif
|
|
294
292
|
#define ftruncate64 ftruncate
|
|
295
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
|
|
296
293
|
#define lockf64 lockf
|
|
297
|
-
#endif
|
|
298
294
|
#define off64_t off_t
|
|
299
295
|
#endif
|
|
300
296
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -195,9 +195,7 @@ size_t confstr(int, char *, size_t);
|
|
|
195
195
|
#define F_TEST 3
|
|
196
196
|
int setreuid(uid_t, uid_t); /* homescoop wasix-sysroot -20 */
|
|
197
197
|
int setregid(gid_t, gid_t);
|
|
198
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
|
|
199
198
|
int lockf(int, int, off_t);
|
|
200
|
-
#endif
|
|
201
199
|
long gethostid(void);
|
|
202
200
|
#ifdef __wasilibc_unmodified_upstream /* WASI has no nice or sync */
|
|
203
201
|
int nice(int);
|
|
@@ -292,9 +290,7 @@ pid_t gettid(void);
|
|
|
292
290
|
#define truncate64 truncate
|
|
293
291
|
#endif
|
|
294
292
|
#define ftruncate64 ftruncate
|
|
295
|
-
#ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
|
|
296
293
|
#define lockf64 lockf
|
|
297
|
-
#endif
|
|
298
294
|
#define off64_t off_t
|
|
299
295
|
#endif
|
|
300
296
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|