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/blob/main/native/kernel/svc/compat/README # 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 / README` 17 lines ยท 1092 bytes Raw Blame History 1 Kernel-build-only stand-ins for the hosted headers that 2 native/capability/aienos_capability.c, aienos_contain.c and 3 native/argus/bridge/argus_aegis_bridge.c include (pthread.h, stdio.h, 4 stdlib.h, time.h, string.h). They are put on the include path ONLY for the 5 freestanding kernel build (first entry of STAGE_CFLAGS in stage.mk); host tests use the real 6 libc and pthreads. Every name is redirected to a ck_compat_* function in 7 ../ck_compat.c, built on ck.h services: 8 malloc/calloc/free -> ck_alloc / ck_free 9 clock_gettime -> ck_time_us 10 fopen("/dev/urandom") + fread -> ck_entropy_fill (arch/rndr.c over 11 core/entropy.c): the CPU RNDR instruction (FEAT_RNG 12 checked, bounded retry, stuck test) or a refusal: 13 fread returns 0 and the capability office token 14 fails closed. There is no fallback source. 15 pthread_mutex_* -> single-core flag; contention means a bug (re-entry) 16 and panics instead of deadlocking. 17 The native/* sources are compiled unmodified.