diff options
| author | kx <kx@radix-linux.su> | 2026-10-09 18:00:15 +0300 |
|---|---|---|
| committer | kx <kx@radix-linux.su> | 2026-10-09 18:00:15 +0300 |
| commit | 065da3509019b15dd0e678072e6be629e5330bef (patch) | |
| tree | 69c934c9e786ac048b4fbe8f4c4c5571661521f4 /cpu/sysdeps/README | |
| parent | d130fe27fa753be02ed76fd9b277aa3c3d928eb9 (diff) | |
| download | libmcpu-0.4.0.tar.xz | |
Version 0.4.00.4.0
Diffstat (limited to 'cpu/sysdeps/README')
| -rw-r--r-- | cpu/sysdeps/README | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cpu/sysdeps/README b/cpu/sysdeps/README new file mode 100644 index 0000000..461226e --- /dev/null +++ b/cpu/sysdeps/README @@ -0,0 +1,19 @@ +LibMCPU HOST sysdeps +==================== + +This tree is the HOST-dependent adaptation layer for MCPU system-call wrappers. +configure builds the ordered `sysnames` search list from the canonical HOST, +architecture preconfigure fragments, the ABI/data model and Implies inheritance. +cpu/Makefile.am uses that ordered list as the GNU make `vpath %.c` search path, +so the first matching basename is the selected source. + +The search order is intentionally from the most specific implementation to the +most generic implementation. `cpu/sysdeps/generic` is always last. A generic +directory does not by itself make an otherwise unknown HOST supported. + +Starting with LibMCPU 0.3.25 raw HOST errno values must not escape this layer. +The inherited `sys-errno.c` implementation provides `__cpu_errno_from_host()`; +HOST syscall wrappers translate a real HOST failure into the stable MCPU errno +namespace before returning to common CPU code. Errors created by the MCPU ABI +itself use `__MCPU_E*` constants directly and are not sent through the HOST +translator. |
