Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/seed/host/tests/psync.om # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / seed / host / tests / psync.om` 28 lines ยท 280 bytes Raw Blame History 1 text p "hs.tmp" 2 fn main to int 3 s = getsid 0 4 if le s long 0 5 ret 1 6 end 7 fd = int fopen p 0 len p 578 420 8 if lt fd 0 9 ret 2 10 end 11 r = syncfs fd 12 if ne r 0 13 ret 3 14 end 15 r = shutdown fd 2 16 if ge r 0 17 ret 4 18 end 19 r = fclose fd 20 if ne r 0 21 ret 5 22 end 23 r = unlink p 0 len p 24 if ne r 0 25 ret 6 26 end 27 ret 0 28 end