Documentation
¶
Overview ¶
Package syscalls maps system-call numbers to names per OS/architecture. The built-in tables are embedded text files named "<os>-<arch>" (e.g. linux-amd64, darwin-arm64), one "<number> <name>" per line. A user can supply additional or replacement tables in the same format from a directory (LoadOverrideDir), which take precedence — so an incomplete built-in table can always be extended without rebuilding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Key ¶
Key returns the "<os>-<arch>" table key for a container format and architecture. Mach-O ⇒ darwin, PE ⇒ windows, everything else ⇒ linux (the dominant ELF OS).
func LoadOverrideDir ¶
LoadOverrideDir loads every "<os>-<arch>" table file in dir as a user override (replacing/extending the built-ins). Returns the number of tables loaded.