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/bridge/shlib/imp.tsv # 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 / bridge / shlib / imp.tsv` 37 lines ยท 1341 bytes Raw Blame History 1 # SPDX-License-Identifier: Apache-2.0 2 # bridge/shlib/imp.tsv: the gate's import library: imports from libomshdep.so.1 (dep.tsv, found beside it 3 # through $ORIGIN) and the C library, three states, and a lock taken with pthread_mutex_trylock, so a lock left 4 # held makes the next call answer its TRAP value instead of waiting. 5 soname libomshimp.so.1 6 needed libomshdep.so.1 7 needed libc.so.6 8 runpath $ORIGIN 9 state ImpS 64 10 state ImpT 4096 11 state ImpL 64 12 lock ImpL pthread_mutex_trylock pthread_mutex_unlock 13 import omega_dep_sub s1 s0 14 import omega_dep_rd s0+8 15 export omega_imp_live 999 frame 16 export omega_imp_count 999 frame ImpS 17 export omega_imp_trap 999 frame 18 export omega_imp_dirty 999 frame 19 export omega_imp_swap 999 frame 20 export omega_imp_off 999 frame ImpT 21 export omega_imp_strlen 999 frame ImpT 22 export omega_imp_frame 999 frame 23 # live: a = 10: c..f 12..15, twice 10 and 11 = 20 and 22, b 11: 12+13+14+15+20+22+11 = 107 24 call omega_imp_live 107 10 25 call omega_imp_count 1 26 call omega_imp_count 2 27 # a trap (division by 0) answers 999 and releases the lock: the next call runs 28 call omega_imp_trap 999 1 0 29 call omega_imp_count 3 30 call omega_imp_trap 3 9 3 31 call omega_imp_dirty 6 32 # swap: dep's sub gets (b, a): 5 - 3 33 call omega_imp_swap 2 3 5 34 call omega_imp_off 77 77 35 call omega_imp_strlen 300 300 36 call omega_imp_frame 55 1 55 37 call omega_imp_count 4