ilusm.dev

sysc

raw OS syscall surface. Host: __sys_syscall(nr, args) → {ret: num, errno: num} (errno 0 = success).

Load with: use sysc

Quick example

use sysc

result = sysci(10, "value")
prn(result)

Functions

Functions

sysci(nr, args)

Performs the operation. Takes nr, args.

syscn(re)

Performs the operation. Takes re.

syscr(re)

Creates a new instance. Takes re.

syscq(re)

Performs the operation. Takes re.

syscw(re, ctx)

Performs the operation. Takes re, ctx.

sysc0(nr)

Performs the operation. Takes nr.

sysc1(nr, a0)

Performs the operation. Takes nr, a0.

sysc2(nr, a0, a1)

Performs the operation. Takes nr, a0, a1.

sysc3(nr, a0, a1, a2)

Performs the operation. Takes nr, a0, a1, a2.

sysc4(nr, a0, a1, a2, a3)

Performs the operation. Takes nr, a0, a1, a2, a3.

sysc5(nr, a0, a1, a2, a3, a4)

Performs the operation. Takes nr, a0, a1, a2, a3, a4.

sysc6(nr, a0, a1, a2, a3, a4, a5)

Performs the operation. Takes nr, a0, a1, a2, a3, a4, a5.

syscv(re)

Performs the operation. Takes re.

syscx(re, ctx)

Performs the operation. Takes re, ctx.

sycma()

Performs the operation.

sycin()

Initialises.

syscg(re)

Performs the operation. Takes re.

Legacy long names (audit / older call sites)

syscallinvoke(nr, args)

Performs the operation. Takes nr, args.

syscallerrno(re)

Performs the operation. Takes re.

syscallret(re)

Performs the operation. Takes re.

syscallok(re)

Performs the operation. Takes re.

syscallerrnoeagain()

Initialises.

Notes

  • Syscall wrappers - direct OS calls.