Files
RedBear-OS/src/platform
vasilito a41c5cb0b7 relibc: replace 5 round-9 stubs with real implementations
1. getrusage (platform/redox/mod.rs): Was returning all-zero rusage.
   Now reads /scheme/proc/<pid>/stat from the kernel proc scheme and
   fills ru_utime/ru_stime/ru_maxrss from real CPU time and RSS data.
   RUSAGE_CHILDREN returns zeros (kernel doesn't track children's
   resource usage yet — documented). Invalid who returns EINVAL.

2. pthread_key_create (pthread/tls.rs): Had a TODO for PTHREAD_KEYS_MAX
   enforcement. Now checks keys.len() >= PTHREAD_KEYS_MAX (128) and
   returns EAGAIN when the limit is reached. pthread_key_delete
   automatically frees the slot.

3. pthread_condattr_setclock (pthread/cond.rs): Had a TODO for clock_id
   validation. Now validates clock_id against CLOCK_REALTIME |
   CLOCK_MONOTONIC (matching glibc behavior) and returns EINVAL for
   any other clock. Removed the false 'Always successful' doc.

4. TCSETS/TCSETSW/TCSETSF (sys_ioctl/redox/mod.rs): Were all identical
   (single combined match arm). Now three distinct branches: TCSETS
   sets immediately; TCSETSW flushes output (TCOFLUSH) then sets;
   TCSETSF flushes both queues (TCIOFLUSH) then sets. Flush is
   best-effort via scheme 'flush' dup name (forward-compatible with
   ptyd adding flush support).

5. dlfcn/mod.rs: Removed FIXME refactor comment in dlsym. All three
   functions (dlopen/dlsym/dlclose) are real implementations using
   the linker — the FIXME was only a refactor suggestion.
2026-07-27 10:07:44 +09:00
..
2026-07-15 18:26:27 +10:00
2026-06-20 12:31:32 +07:00
2026-07-16 08:59:10 +01:00
2026-02-08 21:45:15 +00:00
2026-05-20 18:51:53 +07:00