@ai-ecoverse/wasix-sysroot 2025.9.30-29 → 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.
Files changed (32) hide show
  1. package/README.md +21 -0
  2. package/package.json +2 -2
  3. package/sysroot/include/__header_fcntl.h +6 -0
  4. package/sysroot/include/unistd.h +0 -4
  5. package/sysroot/lib/wasm32-wasip1/crt1-command.o +0 -0
  6. package/sysroot/lib/wasm32-wasip1/crt1-reactor.o +0 -0
  7. package/sysroot/lib/wasm32-wasip1/crt1.o +0 -0
  8. package/sysroot/lib/wasm32-wasip1/libc.a +0 -0
  9. package/sysroot-eh/include/__header_fcntl.h +6 -0
  10. package/sysroot-eh/include/unistd.h +0 -4
  11. package/sysroot-eh/lib/wasm32-wasip1/crt1-command.o +0 -0
  12. package/sysroot-eh/lib/wasm32-wasip1/crt1-reactor.o +0 -0
  13. package/sysroot-eh/lib/wasm32-wasip1/crt1.o +0 -0
  14. package/sysroot-eh/lib/wasm32-wasip1/libc.a +0 -0
  15. package/sysroot-ehpic/include/__header_fcntl.h +6 -0
  16. package/sysroot-ehpic/include/unistd.h +0 -4
  17. package/sysroot-ehpic/lib/wasm32-wasip1/crt1-command.o +0 -0
  18. package/sysroot-ehpic/lib/wasm32-wasip1/crt1-reactor.o +0 -0
  19. package/sysroot-ehpic/lib/wasm32-wasip1/crt1.o +0 -0
  20. package/sysroot-ehpic/lib/wasm32-wasip1/libc.a +0 -0
  21. package/sysroot-exnref-eh/include/__header_fcntl.h +6 -0
  22. package/sysroot-exnref-eh/include/unistd.h +0 -4
  23. package/sysroot-exnref-eh/lib/wasm32-wasip1/crt1-command.o +0 -0
  24. package/sysroot-exnref-eh/lib/wasm32-wasip1/crt1-reactor.o +0 -0
  25. package/sysroot-exnref-eh/lib/wasm32-wasip1/crt1.o +0 -0
  26. package/sysroot-exnref-eh/lib/wasm32-wasip1/libc.a +0 -0
  27. package/sysroot-exnref-ehpic/include/__header_fcntl.h +6 -0
  28. package/sysroot-exnref-ehpic/include/unistd.h +0 -4
  29. package/sysroot-exnref-ehpic/lib/wasm32-wasip1/crt1-command.o +0 -0
  30. package/sysroot-exnref-ehpic/lib/wasm32-wasip1/crt1-reactor.o +0 -0
  31. package/sysroot-exnref-ehpic/lib/wasm32-wasip1/crt1.o +0 -0
  32. package/sysroot-exnref-ehpic/lib/wasm32-wasip1/libc.a +0 -0
package/README.md CHANGED
@@ -41,6 +41,27 @@ 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
+
44
65
  Since 2025.9.30-29 `poll` and `ppoll` take a `pollfd` that asks for neither
45
66
  reading nor writing (`events` 0, as OpenSSH's client loop passes for idle
46
67
  channels, or only bits WASI can't poll): the entry is skipped, and its
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/wasix-sysroot",
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",
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",
@@ -47,6 +47,12 @@
47
47
  #define F_SETFL (4)
48
48
  #define F_DUPFD (5)
49
49
  #define F_DUPFD_CLOEXEC (6)
50
+ #define F_GETLK (12)
51
+ #define F_SETLK (13)
52
+ #define F_SETLKW (14)
53
+ #define F_RDLCK (0)
54
+ #define F_WRLCK (1)
55
+ #define F_UNLCK (2)
50
56
 
51
57
  #define FD_CLOEXEC (1)
52
58
 
@@ -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
@@ -47,6 +47,12 @@
47
47
  #define F_SETFL (4)
48
48
  #define F_DUPFD (5)
49
49
  #define F_DUPFD_CLOEXEC (6)
50
+ #define F_GETLK (12)
51
+ #define F_SETLK (13)
52
+ #define F_SETLKW (14)
53
+ #define F_RDLCK (0)
54
+ #define F_WRLCK (1)
55
+ #define F_UNLCK (2)
50
56
 
51
57
  #define FD_CLOEXEC (1)
52
58
 
@@ -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
@@ -47,6 +47,12 @@
47
47
  #define F_SETFL (4)
48
48
  #define F_DUPFD (5)
49
49
  #define F_DUPFD_CLOEXEC (6)
50
+ #define F_GETLK (12)
51
+ #define F_SETLK (13)
52
+ #define F_SETLKW (14)
53
+ #define F_RDLCK (0)
54
+ #define F_WRLCK (1)
55
+ #define F_UNLCK (2)
50
56
 
51
57
  #define FD_CLOEXEC (1)
52
58
 
@@ -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
 
@@ -47,6 +47,12 @@
47
47
  #define F_SETFL (4)
48
48
  #define F_DUPFD (5)
49
49
  #define F_DUPFD_CLOEXEC (6)
50
+ #define F_GETLK (12)
51
+ #define F_SETLK (13)
52
+ #define F_SETLKW (14)
53
+ #define F_RDLCK (0)
54
+ #define F_WRLCK (1)
55
+ #define F_UNLCK (2)
50
56
 
51
57
  #define FD_CLOEXEC (1)
52
58
 
@@ -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
 
@@ -47,6 +47,12 @@
47
47
  #define F_SETFL (4)
48
48
  #define F_DUPFD (5)
49
49
  #define F_DUPFD_CLOEXEC (6)
50
+ #define F_GETLK (12)
51
+ #define F_SETLK (13)
52
+ #define F_SETLKW (14)
53
+ #define F_RDLCK (0)
54
+ #define F_WRLCK (1)
55
+ #define F_UNLCK (2)
50
56
 
51
57
  #define FD_CLOEXEC (1)
52
58
 
@@ -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