code wiki / (root) / _nx_xlate_probe.nx

_nx_xlate_probe.nx

buildroot/runtime/_nx_xlate_probe.nx

577 B11 linesdepth 0pulls 0 transitivereach 0 importersview sourcekind probetopic nx
docsdependenciesstructsconstsfunctions

about

Discriminator for the rv64->x86 syscall translation capability (debt 1785528831). __syscall(51,...) is rv64 CHROOT. If the toolchain carries the 51->161 row it emits x86 chroot(161): chroot(NULL) returns -EFAULT(14) or -EPERM(1). If the row is MISSING the number passes through verbatim as x86 51 = GETSOCKNAME, and getsockname(0,NULL,NULL) returns -ENOTSOCK(88) because fd 0 is not a socket. 88 is the untranslated signature.

dependencies 0 imports · 0 importers

imports: none

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

6func main() -> i64