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 / tests / stat_short.om

9 lines · 233 bytes Raw Blame History
1note stat with a 64-byte output must trap 3 before the kernel writes the 128-byte structure.
2text p "short.tmp"
3fn main to int
4fd = int fopen p 0 len p 577 420
5z = fclose fd
6buf = new uchar 64 0
7r = stat p 0 len p buf 0 64
8ret 0
9end