interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / host / prlimit / README.md

53 lines · 2493 bytes Raw Blame History Source

prlimit (keyword 235)

prlimit pid res A off n returns long: 0 or a negative errno from Linux prlimit64 (AArch64 syscall 261, x86-64 syscall 302).

operandtypemeaning
pidinttarget process; 0 is the caller
resintRLIMIT_* number (7 NOFILE, 9 AS, ...)
Awritable byte arraylimit buffer; a text is error 20
off, nulongslice A[off..off+n), checked first (trap 3)

Program mode only: function mode is error 9, a contract clause error 30, target x86efi error 25. Limits are inherited by fork and kept across execprog.

Gate

prlimit.cases, run by the OM-2 conductor from seed/host/check.sh: OM2GATE PASS cases=15.

mutantchangefixture exit
a64-sysnohsys 261 to 163 (getrlimit)1
a64-swapn 32 passes new = A+16, old = A3
a64-nguardthe n == 32 test always taken7
x86-sysnoxhcall 302 to 97 (getrlimit)1
x86-swapn 32 passes rdx = A+163
x86-nguardthe n == 32 test always taken7
a64-nooffoff not added to the base (kernel gets &A[0])16