l0_runtime.h
Source: compiler/shared/runtime/l0_runtime.h Language: C
L0 Runtime Library (K0 - Kernel Layer)
Header-only C99 runtime providing:
Memory allocation and deallocation
Whole-file I/O operations
Basic printing to stdout/stderr
Panic mechanism for defined runtime aborts
UB-free integer operations
String type and operations
Optional type support
Random number generation
Wall/monotonic time snapshots and local-time metadata
Support for L0 new and drop semantics
Environment variable access
Reading from stdin
Errno access
Design principles:
All UB and platform quirks are confined to this file
L0 programs use l0_int (int32_t); this layer handles size_t conversion
Portable C99 code, no compiler-specific extensions
Imports / Includes
stdio.hstdlib.hstdint.hstddef.hstring.hstdarg.herrno.htime.hsys/types.hsys/stat.hunistd.hsys/wait.hdea_rt.hdea_siphash.h
Symbols
Macro _RT_ASAN_POISON
1
_RT_ASAN_POISON
Macro _RT_ASAN_UNPOISON
1
_RT_ASAN_UNPOISON
Macro DEA_RUNTIME_FCLOSE
1
DEA_RUNTIME_FCLOSE
Macro DEA_RUNTIME_FILE_INFO_STAT
1
DEA_RUNTIME_FILE_INFO_STAT
Macro DEA_RUNTIME_REMOVE
1
DEA_RUNTIME_REMOVE