interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

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
..
.crumb2376
README1092
pthread.h1405
stdio.h1405
stdlib.h1005
string.h1193
time.h1075

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.