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/qualification/security673/renames-corpus.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 / qualification / security673 / renames-corpus.om` 96 lines ยท 1355 bytes Raw Blame History 1 note Synthetic issue671 renames packet corpus. Reads one mode byte and writes one packed list. 2 note Mode0 is accepted; modes1..6 must trap before any kernel rename. 3 global pkt uchar 4096 4 global n ulong 1 5 global name uchar 64 6 global namelen ulong 1 7 text old "build/security673-native/ren-src" 8 text dst "build/security673-native/ren-dst" 9 fn put16 v ulong to void 10 put pkt get n 0 uchar and v 255 11 put pkt add get n 0 1 uchar shr v 8 12 put n 0 add get n 0 2 13 end 14 fn recname to void 15 put16 get namelen 0 16 for i ulong get namelen 0 17 put pkt add get n 0 i get name i 18 end 19 put n 0 add get n 0 get namelen 0 20 end 21 fn setold to void 22 put namelen 0 len old 23 for i ulong len old 24 put name i get old i 25 end 26 end 27 fn setnew to void 28 put namelen 0 len dst 29 for i ulong len dst 30 put name i get dst i 31 end 32 end 33 fn main to int 34 if ne read 0 pkt 0 1 1 35 ret 90 36 end 37 m = ulong get pkt 0 38 put n 0 0 39 if eq m 0 40 put16 2 41 setold 42 recname 43 setnew 44 recname 45 end 46 if eq m 1 47 put16 1 48 setold 49 recname 50 end 51 if eq m 2 52 put16 3 53 setold 54 recname 55 setnew 56 recname 57 setnew 58 recname 59 end 60 if eq m 3 61 put16 2 62 put namelen 0 0 63 recname 64 setnew 65 recname 66 end 67 if eq m 4 68 put16 2 69 setold 70 recname 71 put namelen 0 0 72 recname 73 end 74 if eq m 5 75 put16 2 76 setold 77 recname 78 setnew 79 recname 80 put pkt get n 0 0 81 put n 0 add get n 0 1 82 end 83 if eq m 6 84 setold 85 put name 5 0 86 put16 2 87 recname 88 setnew 89 recname 90 end 91 r = write 1 pkt 0 get n 0 92 if ne r long get n 0 93 ret 91 94 end 95 ret 0 96 end