Portability Primitives
This is the portability layer where all primitives needed from the OS are defined.
prim.h: API definitionprim.c: Selects one ofunix/prim.c,wasi/prim.c, orwindows/prim.cdepending on the host platform.
Note: still work in progress, there may still be places in the sources that still depend on OS ifdef's.