Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/tree/main/native/kernel/svc/compat # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / native / kernel / svc / compat` `f45d00a` chore(license): adopt Apache-2.0 across the tree (#448) aien-spark committed 2026-10-24 ``` .. .crumb 2376 README 1092 pthread.h 1405 stdio.h 1405 stdlib.h 1005 string.h 1193 time.h 1075 ``` README ``` Kernel-build-only stand-ins for the hosted headers that native/capability/aienos_capability.c, aienos_contain.c and native/argus/bridge/argus_aegis_bridge.c include (pthread.h, stdio.h, stdlib.h, time.h, string.h). They are put on the include path ONLY for the freestanding kernel build (first entry of STAGE_CFLAGS in stage.mk); host tests use the real libc and pthreads. Every name is redirected to a ck_compat_* function in ../ck_compat.c, built on ck.h services: malloc/calloc/free -> ck_alloc / ck_free clock_gettime -> ck_time_us fopen("/dev/urandom") + fread -> ck_entropy_fill (arch/rndr.c over core/entropy.c): the CPU RNDR instruction (FEAT_RNG checked, bounded retry, stuck test) or a refusal: fread returns 0 and the capability office token fails closed. There is no fallback source. pthread_mutex_* -> single-core flag; contention means a bug (re-entry) and panics instead of deadlocking. The native/* sources are compiled unmodified. ```