ModulesΒ§
- binary_
package π - exec π
StructsΒ§
- BinFactory
- Binary
Package - Binary
Package Command - Binary
Package Mount - A WebAssembly package that has been loaded into memory.
- Binary
Package Mounts - Malformed
Shebang π - A file that starts with
#!is a script and nothing else: Linux commits to the script handler on those two bytes and never falls back to another format. A line this runtime cannot use is therefore ENOEXEC, not something to hand to the Wasm compiler. - Shebang
EnumsΒ§
ConstantsΒ§
- MAX_
SHEBANG_ πDEPTH - Executables a single spawn may walk through: five nested scripts and the
thing the last one names. Linux runs a chain of five and answers
ELOOPat six, whatever the last one names. - MAX_
SHEBANG_ πLINE - Linux reads the shebang out of a buffer of
BINPRM_BUF_SIZEbytes and refuses to exec an interpreter path that the buffer truncated.
FunctionsΒ§
- commit_
script_ πargs - Applies the argv a shebang rewrote, once the executable it named has been found. Nothing before this point may disturb the callerβs argv.
- executable_
search_ πpath - import_
package_ mounts - load_
executable_ πfrom_ buffer - load_
executable_ πfrom_ filesystem - load_
executable_ πfrom_ wasi_ fs - package_
command_ by_ name - parse_
shebang π - run_
exec - script_
command π - spawn_
exec - spawn_
exec_ module - spawn_
exec_ wasm - spawn_
load_ module