a41c5cb0b7
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.