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
omega-mv / seed / host / tests / stat_short.om
| 1 | note stat with a 64-byte output must trap 3 before the kernel writes the 128-byte structure. |
| 2 | text p "short.tmp" |
| 3 | fn main to int |
| 4 | fd = int fopen p 0 len p 577 420 |
| 5 | z = fclose fd |
| 6 | buf = new uchar 64 0 |
| 7 | r = stat p 0 len p buf 0 64 |
| 8 | ret 0 |
| 9 | end |