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/omc/sites/found-s-assign-1.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 / omc / sites / found-s-assign-1.om` 33 lines ยท 629 bytes Raw Blame History 1 note sites: found by a one-token change of a tracked program; reaches the omc error site in s-assign (code 7) 2 note chown: fchownat to the current uid (gid unchanged); st_uid low byte at 24, missing path errno. 3 text p "own.tmp" 4 text miss "no.such.file" 5 fn main to int 6 fd = int fopen p 0 len p 578 420 7 if lt fd 0 8 ret 1 9 end 10 r f32 fclose fd 11 u = getuid 12 r = chown p 0 len p int u int -1 13 if ne r 0 14 ret 2 15 end 16 st = new uchar 128 0 17 r = stat p 0 len p st 0 128 18 if ne r 0 19 ret 3 20 end 21 if ne int get st 24 int and u long 255 22 ret 4 23 end 24 r = chown miss 0 len miss int u int -1 25 if ge r 0 26 ret 5 27 end 28 r = unlink p 0 len p 29 if ne r 0 30 ret 6 31 end 32 ret 0 33 end