@ai-ecoverse/wasix-sysroot 2025.9.30-18 → 2025.9.30-20

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
@@ -32,5 +32,19 @@ Since 2025.9.30-18:
32
32
  - `sigaction` honours `SA_RESETHAND` and reports each disposition to the
33
33
  kernel through `slicc.sigaction_set`. Kernels without that import answer
34
34
  ENOSYS, which is ignored.
35
+ - Since 2025.9.30-19:
36
+ - `alarm` and `setitimer(ITIMER_REAL)` fire in every variant
37
+ (`proc_raise_interval2`), and `getitimer` reports the time left.
38
+ - `ITIMER_VIRTUAL`/`ITIMER_PROF` are EINVAL, since there are no CPU-time
39
+ clocks.
40
+ - A signal ends `nanosleep` early with EINTR and the time left, and ends
41
+ `sleep` early with the seconds left.
42
+ - `raise()` and `pthread_kill(pthread_self())` reach the handler.
43
+
44
+ Since 2025.9.30-20 user and group ids come from slicc-kernel's process
45
+ credentials (`slicc.cred_get`/`cred_set`/`groups_get`/`groups_set`; slicc-kernel
46
+ ≥ 1.44.0, which has users), and `getpw*`/`getgr*` read its `/etc/passwd` and `/etc/group`.
47
+ There is no fallback to uid 1000: on an older kernel `getuid()` returns -1,
48
+ the set\*id calls fail with ENOSYS, and user lookups find nothing.
35
49
 
36
50
  Data only — no commands. Set `WASIXCC_SYSROOT_PREFIX` to this package directory.
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/wasix-sysroot",
3
- "version": "2025.9.30-18",
4
- "description": "WASIX sysroots: st_uid/st_gid=1000 (slicc identity), file modes via slicc_fs, F_SETFD CLOEXEC fix, wasip1, clang24 exnref",
3
+ "version": "2025.9.30-19",
4
+ "description": "WASIX sysroots: st_uid/st_gid = getuid()/getgid(), 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), wasip1, clang24 exnref",
5
+ "version": "2025.9.30-20",
5
6
  "license": "Apache-2.0 WITH LLVM-exception",
6
7
  "repository": {
7
8
  "type": "git",
@@ -163,9 +163,7 @@ int isatty(int);
163
163
  pid_t tcgetpgrp(int);
164
164
  int tcsetpgrp(int, pid_t);
165
165
 
166
- #ifdef __wasilibc_unmodified_upstream /* WASI has no getuid etc. */
167
- int getgroups(int, gid_t []);
168
- #endif
166
+ int getgroups(int, gid_t []); /* homescoop wasix-sysroot -20 */
169
167
 
170
168
  uid_t getuid(void);
171
169
  uid_t geteuid(void);
@@ -195,10 +193,8 @@ size_t confstr(int, char *, size_t);
195
193
  #define F_LOCK 1
196
194
  #define F_TLOCK 2
197
195
  #define F_TEST 3
198
- #ifdef __wasilibc_unmodified_upstream /* WASI has no setreuid */
199
- int setreuid(uid_t, uid_t);
196
+ int setreuid(uid_t, uid_t); /* homescoop wasix-sysroot -20 */
200
197
  int setregid(gid_t, gid_t);
201
- #endif
202
198
  #ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
203
199
  int lockf(int, int, off_t);
204
200
  #endif
@@ -270,12 +266,10 @@ int getpagesize(void);
270
266
 
271
267
  #ifdef _GNU_SOURCE
272
268
  extern char **environ;
273
- #ifdef __wasilibc_unmodified_upstream /* WASI has no get/setresuid */
274
- int setresuid(uid_t, uid_t, uid_t);
269
+ int setresuid(uid_t, uid_t, uid_t); /* homescoop wasix-sysroot -20 */
275
270
  int setresgid(gid_t, gid_t, gid_t);
276
271
  int getresuid(uid_t *, uid_t *, uid_t *);
277
272
  int getresgid(gid_t *, gid_t *, gid_t *);
278
- #endif
279
273
  #ifdef __wasilibc_unmodified_upstream /* WASI has no cwd */
280
274
  char *get_current_dir_name(void);
281
275
  #endif
Binary file
@@ -163,9 +163,7 @@ int isatty(int);
163
163
  pid_t tcgetpgrp(int);
164
164
  int tcsetpgrp(int, pid_t);
165
165
 
166
- #ifdef __wasilibc_unmodified_upstream /* WASI has no getuid etc. */
167
- int getgroups(int, gid_t []);
168
- #endif
166
+ int getgroups(int, gid_t []); /* homescoop wasix-sysroot -20 */
169
167
 
170
168
  uid_t getuid(void);
171
169
  uid_t geteuid(void);
@@ -195,10 +193,8 @@ size_t confstr(int, char *, size_t);
195
193
  #define F_LOCK 1
196
194
  #define F_TLOCK 2
197
195
  #define F_TEST 3
198
- #ifdef __wasilibc_unmodified_upstream /* WASI has no setreuid */
199
- int setreuid(uid_t, uid_t);
196
+ int setreuid(uid_t, uid_t); /* homescoop wasix-sysroot -20 */
200
197
  int setregid(gid_t, gid_t);
201
- #endif
202
198
  #ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
203
199
  int lockf(int, int, off_t);
204
200
  #endif
@@ -270,12 +266,10 @@ int getpagesize(void);
270
266
 
271
267
  #ifdef _GNU_SOURCE
272
268
  extern char **environ;
273
- #ifdef __wasilibc_unmodified_upstream /* WASI has no get/setresuid */
274
- int setresuid(uid_t, uid_t, uid_t);
269
+ int setresuid(uid_t, uid_t, uid_t); /* homescoop wasix-sysroot -20 */
275
270
  int setresgid(gid_t, gid_t, gid_t);
276
271
  int getresuid(uid_t *, uid_t *, uid_t *);
277
272
  int getresgid(gid_t *, gid_t *, gid_t *);
278
- #endif
279
273
  #ifdef __wasilibc_unmodified_upstream /* WASI has no cwd */
280
274
  char *get_current_dir_name(void);
281
275
  #endif
Binary file
@@ -163,9 +163,7 @@ int isatty(int);
163
163
  pid_t tcgetpgrp(int);
164
164
  int tcsetpgrp(int, pid_t);
165
165
 
166
- #ifdef __wasilibc_unmodified_upstream /* WASI has no getuid etc. */
167
- int getgroups(int, gid_t []);
168
- #endif
166
+ int getgroups(int, gid_t []); /* homescoop wasix-sysroot -20 */
169
167
 
170
168
  uid_t getuid(void);
171
169
  uid_t geteuid(void);
@@ -195,10 +193,8 @@ size_t confstr(int, char *, size_t);
195
193
  #define F_LOCK 1
196
194
  #define F_TLOCK 2
197
195
  #define F_TEST 3
198
- #ifdef __wasilibc_unmodified_upstream /* WASI has no setreuid */
199
- int setreuid(uid_t, uid_t);
196
+ int setreuid(uid_t, uid_t); /* homescoop wasix-sysroot -20 */
200
197
  int setregid(gid_t, gid_t);
201
- #endif
202
198
  #ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
203
199
  int lockf(int, int, off_t);
204
200
  #endif
@@ -270,12 +266,10 @@ int getpagesize(void);
270
266
 
271
267
  #ifdef _GNU_SOURCE
272
268
  extern char **environ;
273
- #ifdef __wasilibc_unmodified_upstream /* WASI has no get/setresuid */
274
- int setresuid(uid_t, uid_t, uid_t);
269
+ int setresuid(uid_t, uid_t, uid_t); /* homescoop wasix-sysroot -20 */
275
270
  int setresgid(gid_t, gid_t, gid_t);
276
271
  int getresuid(uid_t *, uid_t *, uid_t *);
277
272
  int getresgid(gid_t *, gid_t *, gid_t *);
278
- #endif
279
273
  #ifdef __wasilibc_unmodified_upstream /* WASI has no cwd */
280
274
  char *get_current_dir_name(void);
281
275
  #endif
@@ -163,9 +163,7 @@ int isatty(int);
163
163
  pid_t tcgetpgrp(int);
164
164
  int tcsetpgrp(int, pid_t);
165
165
 
166
- #ifdef __wasilibc_unmodified_upstream /* WASI has no getuid etc. */
167
- int getgroups(int, gid_t []);
168
- #endif
166
+ int getgroups(int, gid_t []); /* homescoop wasix-sysroot -20 */
169
167
 
170
168
  uid_t getuid(void);
171
169
  uid_t geteuid(void);
@@ -195,10 +193,8 @@ size_t confstr(int, char *, size_t);
195
193
  #define F_LOCK 1
196
194
  #define F_TLOCK 2
197
195
  #define F_TEST 3
198
- #ifdef __wasilibc_unmodified_upstream /* WASI has no setreuid */
199
- int setreuid(uid_t, uid_t);
196
+ int setreuid(uid_t, uid_t); /* homescoop wasix-sysroot -20 */
200
197
  int setregid(gid_t, gid_t);
201
- #endif
202
198
  #ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
203
199
  int lockf(int, int, off_t);
204
200
  #endif
@@ -270,12 +266,10 @@ int getpagesize(void);
270
266
 
271
267
  #ifdef _GNU_SOURCE
272
268
  extern char **environ;
273
- #ifdef __wasilibc_unmodified_upstream /* WASI has no get/setresuid */
274
- int setresuid(uid_t, uid_t, uid_t);
269
+ int setresuid(uid_t, uid_t, uid_t); /* homescoop wasix-sysroot -20 */
275
270
  int setresgid(gid_t, gid_t, gid_t);
276
271
  int getresuid(uid_t *, uid_t *, uid_t *);
277
272
  int getresgid(gid_t *, gid_t *, gid_t *);
278
- #endif
279
273
  #ifdef __wasilibc_unmodified_upstream /* WASI has no cwd */
280
274
  char *get_current_dir_name(void);
281
275
  #endif
@@ -163,9 +163,7 @@ int isatty(int);
163
163
  pid_t tcgetpgrp(int);
164
164
  int tcsetpgrp(int, pid_t);
165
165
 
166
- #ifdef __wasilibc_unmodified_upstream /* WASI has no getuid etc. */
167
- int getgroups(int, gid_t []);
168
- #endif
166
+ int getgroups(int, gid_t []); /* homescoop wasix-sysroot -20 */
169
167
 
170
168
  uid_t getuid(void);
171
169
  uid_t geteuid(void);
@@ -195,10 +193,8 @@ size_t confstr(int, char *, size_t);
195
193
  #define F_LOCK 1
196
194
  #define F_TLOCK 2
197
195
  #define F_TEST 3
198
- #ifdef __wasilibc_unmodified_upstream /* WASI has no setreuid */
199
- int setreuid(uid_t, uid_t);
196
+ int setreuid(uid_t, uid_t); /* homescoop wasix-sysroot -20 */
200
197
  int setregid(gid_t, gid_t);
201
- #endif
202
198
  #ifdef __wasilibc_unmodified_upstream /* WASI has no POSIX file locking */
203
199
  int lockf(int, int, off_t);
204
200
  #endif
@@ -270,12 +266,10 @@ int getpagesize(void);
270
266
 
271
267
  #ifdef _GNU_SOURCE
272
268
  extern char **environ;
273
- #ifdef __wasilibc_unmodified_upstream /* WASI has no get/setresuid */
274
- int setresuid(uid_t, uid_t, uid_t);
269
+ int setresuid(uid_t, uid_t, uid_t); /* homescoop wasix-sysroot -20 */
275
270
  int setresgid(gid_t, gid_t, gid_t);
276
271
  int getresuid(uid_t *, uid_t *, uid_t *);
277
272
  int getresgid(gid_t *, gid_t *, gid_t *);
278
- #endif
279
273
  #ifdef __wasilibc_unmodified_upstream /* WASI has no cwd */
280
274
  char *get_current_dir_name(void);
281
275
  #endif