@ai-ecoverse/wasix-sysroot 2025.9.30-29 → 2025.9.30-31
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-31:
|
|
45
|
+
|
|
46
|
+
- **AF_UNIX addresses.** `getsockname`, `getpeername`, `accept`, `recvfrom`
|
|
47
|
+
and `recvmsg` return the socket's `sockaddr_un`: `AF_UNIX` and the path,
|
|
48
|
+
length `offsetof(sun_path) + strlen + 1`, or an unnamed address of
|
|
49
|
+
`sizeof(sa_family_t)`. Up to -30 the family came back 0 and the path empty.
|
|
50
|
+
`bind`, `connect`, `sendto` and `sendmsg` take `sizeof(struct sockaddr_un)`
|
|
51
|
+
as the length, as most C programs pass it. Up to -30 that failed with
|
|
52
|
+
-1 and errno -1 ("Success"); a bad address now gives EINVAL or
|
|
53
|
+
EAFNOSUPPORT.
|
|
54
|
+
- **Hangup on events-0 pollfds.** A `poll`/`ppoll` entry with no read/write
|
|
55
|
+
interest is watched for hangup. A pipe or socket whose peer closed gives
|
|
56
|
+
`POLLHUP`, and the write end of a pipe whose reader is gone gives `POLLERR`,
|
|
57
|
+
as on Linux. Up to -30 such an entry never reported anything.
|
|
58
|
+
- **More named semaphores.** The libc no longer limits a process to 256 named
|
|
59
|
+
semaphores. slicc-kernel's own limit goes up with slicc-kernel#770.
|
|
60
|
+
- **Known limit:** `epoll_pwait`'s mask swap isn't atomic yet. The kernel's
|
|
61
|
+
masked epoll wait comes with slicc-kernel#771, and until then the libc swaps
|
|
62
|
+
the mask around the wait.
|
|
63
|
+
|
|
64
|
+
Since 2025.9.30-30 named semaphores work between processes. `sem_open`,
|
|
65
|
+
`sem_close`, `sem_unlink`, `sem_wait`, `sem_trywait`, `sem_timedwait`,
|
|
66
|
+
`sem_post` and `sem_getvalue` on a named semaphore go to slicc-kernel
|
|
67
|
+
(`slicc.sem_*`, slicc-kernel ≥ 1.99.0). The kernel keeps the semaphore, a
|
|
68
|
+
forked child inherits its handles, an exec'd program opens it again by name,
|
|
69
|
+
and a second `sem_open` of the same name in a process returns the same
|
|
70
|
+
`sem_t *`. Unnamed semaphores (`sem_init`) are unchanged and work only
|
|
71
|
+
between threads. On an older kernel `sem_open` falls back to musl's
|
|
72
|
+
`/dev/shm` file, which fails there with ENOENT, as up to -29. Memory isn't
|
|
73
|
+
shared between processes, so `MAP_SHARED` mappings and `shm_open` can't
|
|
74
|
+
replace a semaphore.
|
|
75
|
+
|
|
76
|
+
Also since 2025.9.30-30, POSIX record locks: `<fcntl.h>` defines `F_GETLK`,
|
|
77
|
+
`F_SETLK`, `F_SETLKW` and `F_RDLCK`/`F_WRLCK`/`F_UNLCK`, `lockf` is in
|
|
78
|
+
libc, and `fcntl` hands the three lock commands to slicc-kernel
|
|
79
|
+
(`slicc.fcntl_lock`, slicc-kernel#722), which keeps them per process, as
|
|
80
|
+
Linux does: not inherited by `fork`, kept across `exec`, dropped when any
|
|
81
|
+
descriptor of the file closes. On a kernel without the import every lock is
|
|
82
|
+
granted locally and `F_GETLK` reports `F_UNLCK`, as programs' own stubs did.
|
|
83
|
+
Up to -29 WASIX defined none of these. `flock` is not in libc yet.
|
|
84
|
+
|
|
44
85
|
Since 2025.9.30-29 `poll` and `ppoll` take a `pollfd` that asks for neither
|
|
45
86
|
reading nor writing (`events` 0, as OpenSSH's client loop passes for idle
|
|
46
87
|
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-
|
|
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-31",
|
|
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
|