x-lang

← Index

x/platform/syscall

The platform layer: which OS and architecture this is, and the syscall numbers, stand-in calls, open flags and stat layout that follow from it.

syscall-id answers a number from this platform’s table: Darwin’s bare BSD numbers (libc OR-folds the 0x2000000 UNIX class), Linux x86-64’s, the Linux generic table on arm64, or the arm EABI table on 32-bit arm. syscall-door answers something to call, and is what reaches a call a table spells differently.

os-darwin?

os-linux?

arch-arm64?

arch-x86-64?

arch-arm?

file-modes

stat-layout

syscall-id

syscall-door

Resolve a system call by name to something that makes it on this platform.

Raises (unsupported-syscall . NAME) when this platform has neither the call nor a stand-in for it.

Parameters:

Returns: CALLABLE — A function of up to six arguments, answering what the syscall primitive answers