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-harness/blob/main/data/reference.tsv # omega-harness Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-harness / data / reference.tsv` 4217 lines ยท 220048 bytes Raw Blame History 1 /pin/omega_mv `6c562dd1f7ab01fd9a2638e74a7330ec4c941ad8` 2 /pin/omc_sha256 `34d611ca0415eab1728d3234911d90e74af17ba9ab0c581d559f48274d7ca6d3` 3 /tools/0/name compile 4 /tools/0/title Compile Omega source 5 /tools/0/description Compile Omega (.om) source with the pinned seeded compiler omc (omega-mv@`6c562dd1`). Returns ok, the binary's size and sha256, or the compile error {line, code, meaning, fix}. 6 /tools/0/inputSchema/type object 7 /tools/0/inputSchema/properties/source/type string 8 /tools/0/inputSchema/properties/source/description Omega (.om) source text of one unit 9 /tools/0/inputSchema/required/0 source 10 /tools/0/inputSchema/additionalProperties false 11 /tools/1/name run 12 /tools/1/title Compile and run Omega source 13 /tools/1/description Compile Omega source and run the program in an isolated sandbox (no network, no host filesystem, empty environment, CPU/memory/file/process limits). Returns the compile result, capped stdout/stderr and the interpreted exit status (normal, trap N with its meaning, or the limit that stopped it). 14 /tools/1/inputSchema/type object 15 /tools/1/inputSchema/properties/source/type string 16 /tools/1/inputSchema/properties/source/description Omega (.om) source text of one unit 17 /tools/1/inputSchema/properties/stdin/type string 18 /tools/1/inputSchema/properties/stdin/description bytes given to the program on stdin (default empty) 19 /tools/1/inputSchema/properties/timeout_ms/type integer 20 /tools/1/inputSchema/properties/timeout_ms/minimum 1 21 /tools/1/inputSchema/properties/timeout_ms/maximum 30000 22 /tools/1/inputSchema/properties/timeout_ms/description wall-clock limit in milliseconds (default 5000) 23 /tools/1/inputSchema/required/0 source 24 /tools/1/inputSchema/additionalProperties false 25 /tools/2/name explain_error 26 /tools/2/title Explain an Omega error or trap 27 /tools/2/description Explain a compile error code 1..30, an `omc: line N: error K` line, `trap T`, or a program exit status 101..114 (trap). Returns meaning, cause, fix, a minimal example and source citations. 28 /tools/2/inputSchema/type object 29 /tools/2/inputSchema/properties/query/type/0 string 30 /tools/2/inputSchema/properties/query/type/1 integer 31 /tools/2/inputSchema/properties/query/description an error code 1..30, an `omc: line N: error K` line, `trap T` (1..14) or an exit status 101..114; a string of 1..200 bytes or a nonnegative integer 32 /tools/2/inputSchema/required/0 query 33 /tools/2/inputSchema/additionalProperties false 34 /tools/3/name lookup 35 /tools/3/title Look up an Omega word or topic 36 /tools/3/description Look up any Omega keyword (all 201 entries of the compiler's keyword table) or a topic (requires, ensures, invariant, result, om2, exit_status, packed_list, paths, host_words, compile_errors, traps, loops, contracts): form, arity, types, result, example and citations. A query that is not an exact keyword or topic searches names and summaries (at most 20 results). 37 /tools/3/inputSchema/type object 38 /tools/3/inputSchema/properties/query/type string 39 /tools/3/inputSchema/properties/query/minLength 1 40 /tools/3/inputSchema/properties/query/maxLength 64 41 /tools/3/inputSchema/properties/query/description exact keyword or topic, or a case-insensitive substring to search for 42 /tools/3/inputSchema/required/0 query 43 /tools/3/inputSchema/additionalProperties false 44 /errors/1/meaning stdin read failed 45 /errors/1/cause The compiler could not read its input (stdin is not readable, e.g. a directory). 46 /errors/1/fix Give omc a readable source file on stdin. 47 /errors/1/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:1409 48 /errors/1/citations/0/quote fail 1 49 /errors/1/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 50 /errors/1/citations/1/quote fn fail code ulong to void 51 /errors/1/citations/2/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 52 /errors/1/citations/2/quote refusal cases (codes 1..30; 24 with its accept side) 53 /errors/1/example null 54 /errors/1/reproduce omc < / (stdin is a directory: the read fails, exit 1, stderr 'omc: line 1: error 1') 55 /errors/2/meaning stdout write failed 56 /errors/2/cause The compiler could not write the binary (stdout is full or closed). 57 /errors/2/fix Write omc's stdout to a regular file with space. 58 /errors/2/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:1909 59 /errors/2/citations/0/quote fail 2 60 /errors/2/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 61 /errors/2/citations/1/quote fn fail code ulong to void 62 /errors/2/citations/2/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 63 /errors/2/citations/2/quote refusal cases (codes 1..30; 24 with its accept side) 64 /errors/2/example null 65 /errors/2/reproduce omc < ok.om > /dev/full (the write fails with ENOSPC, exit 2) 66 /errors/3/meaning unknown name or field 67 /errors/3/cause A word is used as a name but nothing of that name is in scope (or a struct has no such field). 68 /errors/3/fix Declare the name first, or fix its spelling. 69 /errors/3/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:4138 70 /errors/3/citations/0/quote fail 3 71 /errors/3/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 72 /errors/3/citations/1/quote fn fail code ulong to void 73 /errors/3/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:678 74 /errors/3/citations/2/quote An unknown field is error 3. 75 /errors/3/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 76 /errors/3/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 77 /errors/3/example e03 78 /errors/4/meaning line ends early 79 /errors/4/cause The line stops before a required operand or word. 80 /errors/4/fix Supply the missing operand (see the word's form). 81 /errors/4/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:5553 82 /errors/4/citations/0/quote fail 4 83 /errors/4/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 84 /errors/4/citations/1/quote fn fail code ulong to void 85 /errors/4/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:667 86 /errors/4/citations/2/quote error 4 if the line ends before `end` 87 /errors/4/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 88 /errors/4/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 89 /errors/4/example e04 90 /errors/5/meaning extra words 91 /errors/5/cause Words remain on the line after a complete statement. 92 /errors/5/fix Remove the extra words or split the line. 93 /errors/5/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:5612 94 /errors/5/citations/0/quote fail 5 95 /errors/5/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 96 /errors/5/citations/1/quote fn fail code ulong to void 97 /errors/5/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1511 98 /errors/5/citations/2/quote trailing words (error 5) 99 /errors/5/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 100 /errors/5/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 101 /errors/5/example e05 102 /errors/6/meaning malformed number 103 /errors/6/cause A number has a non-digit character, more than 20 digits or a bad hex form. 104 /errors/6/fix Write a plain decimal (or OM-2 lowercase 0x hex) number. 105 /errors/6/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3430 106 /errors/6/citations/0/quote fail 6 107 /errors/6/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 108 /errors/6/citations/1/quote fn fail code ulong to void 109 /errors/6/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:517 110 /errors/6/citations/2/quote more than 20 digits, or a character that is not a digit, is error 6 111 /errors/6/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 112 /errors/6/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 113 /errors/6/example e06 114 /errors/7/meaning type mismatch 115 /errors/7/cause Two values of an operation, an assignment or a call argument have different types; there are no implicit conversions. 116 /errors/7/fix Convert explicitly with a type word, e.g. `add int a int b`. 117 /errors/7/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:4099 118 /errors/7/citations/0/quote fail 7 119 /errors/7/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 120 /errors/7/citations/1/quote fn fail code ulong to void 121 /errors/7/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:513 122 /errors/7/citations/2/quote or the line is refused (error 7). 123 /errors/7/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 124 /errors/7/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 125 /errors/7/example e07 126 /errors/8/meaning out of range 127 /errors/8/cause A literal is outside its type, or a count/bound/trap code is out of its range. 128 /errors/8/fix Use a value inside the type's range or a wider type. 129 /errors/8/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3767 130 /errors/8/citations/0/quote fail 8 131 /errors/8/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 132 /errors/8/citations/1/quote fn fail code ulong to void 133 /errors/8/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:515 134 /errors/8/citations/2/quote it must be a 135 /errors/8/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 136 /errors/8/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 137 /errors/8/example e08 138 /errors/9/meaning word not allowed here 139 /errors/9/cause The word is not permitted in this position: break/continue outside a loop, new outside the outermost block, free/own/global/text as a statement, a seventh parameter slot, recursion in function mode. 140 /errors/9/fix Move the statement to a valid position or use the documented alternative. 141 /errors/9/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:5480 142 /errors/9/citations/0/quote fail 9 143 /errors/9/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 144 /errors/9/citations/1/quote fn fail code ulong to void 145 /errors/9/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:70 146 /errors/9/citations/2/quote outside a loop: error 9. 147 /errors/9/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 148 /errors/9/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 149 /errors/9/example e09 150 /errors/10/meaning duplicate name 151 /errors/10/cause A name already in scope, a function or a struct is declared again. 152 /errors/10/fix Choose a new name. 153 /errors/10/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:4987 154 /errors/10/citations/0/quote fail 10 155 /errors/10/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 156 /errors/10/citations/1/quote fn fail code ulong to void 157 /errors/10/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:492 158 /errors/10/citations/2/quote A new name 159 /errors/10/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 160 /errors/10/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 161 /errors/10/example e10 162 /errors/11/meaning ambiguous bare number 163 /errors/11/cause A number appears where no context gives it a type. 164 /errors/11/fix Prefix it with a type word, e.g. `x = int 5`. 165 /errors/11/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:5336 166 /errors/11/citations/0/quote fail 11 167 /errors/11/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 168 /errors/11/citations/1/quote fn fail code ulong to void 169 /errors/11/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:514 170 /errors/11/citations/2/quote A bare number takes the type the place needs. 171 /errors/11/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 172 /errors/11/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 173 /errors/11/example e11 174 /errors/12/meaning register pool exhausted 175 /errors/12/cause More than 16 values are live at once in a function. 176 /errors/12/fix Split the function or reuse names so fewer values are live. 177 /errors/12/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:5053 178 /errors/12/citations/0/quote fail 12 179 /errors/12/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 180 /errors/12/citations/1/quote fn fail code ulong to void 181 /errors/12/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:632 182 /errors/12/citations/2/quote A function that needs more than the 16 registers it hands out is error 12 (no spilling). 183 /errors/12/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 184 /errors/12/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 185 /errors/12/example e12 186 /errors/13/meaning name too long 187 /errors/13/cause A name has more than 63 characters, or an abstract, layout or layout-field name (or any name in IR mode) has more than 8. 188 /errors/13/fix Shorten the name: at most 63 characters, 8 for abstract, layout and layout-field names and in IR mode. 189 /errors/13/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:4115 190 /errors/13/citations/0/quote fail 13 191 /errors/13/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 192 /errors/13/citations/1/quote fn fail code ulong to void 193 /errors/13/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:485-486 194 /errors/13/citations/2/quote A name may have up to 63 characters (error 13 beyond): functions, locals, parameters, `for` counters, globals, texts, constants, structs and struct fields. 195 /errors/13/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 196 /errors/13/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 197 /errors/13/example e13 198 /errors/14/meaning capacity exceeded 199 /errors/14/cause The unit needs more than a capacity omc still has. Every table that grows with the unit (input, output, names, functions, calls, trap sites, blocks, breaks) lives in one arena that has no size of its own: it grows while the host gives it memory, and the unit is refused only when the host refuses that growth (for example under an address-space limit) or the caller's memory ceiling OMC_MEMORY_MAX is reached; stderr then carries an `omc-use` record with full=1 after the error line. The other bounds are values nested deeper than 32768 levels, AArch64 output past 128 MiB, and the fixed tables OMEGESE 9.6 lists (for example 16 fields a struct, as in the example, 32 `export fn`, 64 unrolled copies and 4 inline levels). 200 /errors/14/fix Bring the construct under the bound OMEGESE 9.6 names, split the unit, or give the compiler more memory. A unit whose first line is `usage` compiles as usual and prints its `omc-use` record (what each arena group holds) instead of the binary. 201 /errors/14/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:1248 202 /errors/14/citations/0/quote fail 14 203 /errors/14/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 204 /errors/14/citations/1/quote fn fail code ulong to void 205 /errors/14/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:567 206 /errors/14/citations/2/quote input past a real capacity is refused with error 14, never overrun 207 /errors/14/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:596 208 /errors/14/citations/3/quote It grows while the host gives it memory; the host's refusal is error 14 209 /errors/14/citations/4/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:635-636 210 /errors/14/citations/4/quote 16 structs, 16 fields and 64 cells a struct 211 /errors/14/citations/5/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 212 /errors/14/citations/5/quote refusal cases (codes 1..30; 24 with its accept side) 213 /errors/14/example e14 214 /errors/15/meaning missing end 215 /errors/15/cause The input ends inside an open block. 216 /errors/15/fix Add the missing `end`. 217 /errors/15/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:12802 218 /errors/15/citations/0/quote fail 15 219 /errors/15/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 220 /errors/15/citations/1/quote fn fail code ulong to void 221 /errors/15/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1517 222 /errors/15/citations/2/quote Missing function `end` is error 15. 223 /errors/15/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 224 /errors/15/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 225 /errors/15/example e15 226 /errors/16/meaning syntax error or unknown word 227 /errors/16/cause A line does not start with a known statement form, or a type/length position holds something else. 228 /errors/16/fix Check the word's spelling and form with lookup. 229 /errors/16/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2498 230 /errors/16/citations/0/quote fail 16 231 /errors/16/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 232 /errors/16/citations/1/quote fn fail code ulong to void 233 /errors/16/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:525 234 /errors/16/citations/2/quote a pool written without its length is refused (error 16) 235 /errors/16/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 236 /errors/16/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 237 /errors/16/example e16 238 /errors/17/meaning line after a path end 239 /errors/17/cause A line follows ret, break, continue, trap or exit in the same block and can never run. 240 /errors/17/fix Delete the unreachable line or move it before the path end. 241 /errors/17/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:15238 242 /errors/17/citations/0/quote fail 17 243 /errors/17/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 244 /errors/17/citations/1/quote fn fail code ulong to void 245 /errors/17/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:70-71 246 /errors/17/citations/2/quote (a later line in the same block is error 17) 247 /errors/17/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 248 /errors/17/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 249 /errors/17/example e17 250 /errors/18/meaning missing ret 251 /errors/18/cause A function with a result type can reach its end without a ret. 252 /errors/18/fix Add a ret on every path (or make the function void). 253 /errors/18/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:14093 254 /errors/18/citations/0/quote fail 18 255 /errors/18/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 256 /errors/18/citations/1/quote fn fail code ulong to void 257 /errors/18/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:483 258 /errors/18/citations/2/quote A function with a return type whose `end` can be reached is error 18. 259 /errors/18/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 260 /errors/18/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 261 /errors/18/example e18 262 /errors/19/meaning global passed or same array twice 263 /errors/19/cause A global is passed as an argument, or one array is passed twice in a call. 264 /errors/19/fix Copy the global into a local array (new) or pass distinct arrays. 265 /errors/19/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:7541 266 /errors/19/citations/0/quote fail 19 267 /errors/19/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 268 /errors/19/citations/1/quote fn fail code ulong to void 269 /errors/19/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:542 270 /errors/19/citations/2/quote A global is 271 /errors/19/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 272 /errors/19/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 273 /errors/19/example e19 274 /errors/20/meaning write to a read-only array 275 /errors/20/cause put, read or an edit argument targets a view or a text. 276 /errors/20/fix Write into a local, global or edit array instead. 277 /errors/20/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:7558 278 /errors/20/citations/0/quote fail 20 279 /errors/20/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 280 /errors/20/citations/1/quote fn fail code ulong to void 281 /errors/20/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:540 282 /errors/20/citations/2/quote A view is read-only; `put`, `read` into it, or passing it as edit is error 20. 283 /errors/20/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 284 /errors/20/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 285 /errors/20/example e20 286 /errors/21/meaning constant index out of range 287 /errors/21/cause A literal index is outside the array or field. 288 /errors/21/fix Use an index below the length. 289 /errors/21/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:7418 290 /errors/21/citations/0/quote fail 21 291 /errors/21/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 292 /errors/21/citations/1/quote fn fail code ulong to void 293 /errors/21/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:547 294 /errors/21/citations/2/quote A number index must be inside A when om4 reads it (error 21) 295 /errors/21/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 296 /errors/21/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 297 /errors/21/example e21 298 /errors/22/meaning bad text literal 299 /errors/22/cause A text literal has an unknown escape or no closing quote. 300 /errors/22/fix Use only \\n \\t \\\\ \\" escapes and close the quote. 301 /errors/22/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2360 302 /errors/22/citations/0/quote fail 22 303 /errors/22/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 304 /errors/22/citations/1/quote fn fail code ulong to void 305 /errors/22/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:531 306 /errors/22/citations/2/quote any other escape, or a quote missing its end, 307 /errors/22/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 308 /errors/22/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 309 /errors/22/example e22 310 /errors/23/meaning size capacity 311 /errors/23/cause An array is over `16777216` elements, globals over 1 GiB or local arrays over 4 MiB. 312 /errors/23/fix Use a smaller array. 313 /errors/23/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:5494 314 /errors/23/citations/0/quote fail 23 315 /errors/23/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 316 /errors/23/citations/1/quote fn fail code ulong to void 317 /errors/23/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:536 318 /errors/23/citations/2/quote at most 4 MiB of local arrays (error 23) 319 /errors/23/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 320 /errors/23/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 321 /errors/23/example e23 322 /errors/24/meaning branch displacement out of range 323 /errors/24/cause A branch target is misaligned or out of reach: B.cond, CBZ and CBNZ reach 2^18 words, B and BL 2^25. 324 /errors/24/fix Split very large functions or programs; this is reached only by programs with about 1 MiB of code between a conditional branch and its target. 325 /errors/24/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:5122 326 /errors/24/citations/0/quote fail 24 327 /errors/24/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 328 /errors/24/citations/1/quote fn fail code ulong to void 329 /errors/24/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:435 330 /errors/24/citations/2/quote refused with error 24 before any output is accepted 331 /errors/24/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 332 /errors/24/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 333 /errors/24/example null 334 /errors/24/example_note No minimal example: it needs about 1 MiB of machine code between a branch and its target. 335 /errors/25/meaning not available on this target 336 /errors/25/cause Under `target x86linux` or `target x86efi` a construct that target cannot emit: raw AArch64 `emit`, an AArch64-only word (dit, scrub, execpure), a bare unit or a Linux host word under x86efi, or an efi OP outside 0..14. 337 /errors/25/fix Use the default AArch64 target for that construct, or write it with words the target supports. 338 /errors/25/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2212 339 /errors/25/citations/0/quote fail 25 340 /errors/25/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 341 /errors/25/citations/1/quote fn fail code ulong to void 342 /errors/25/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:454-455 343 /errors/25/citations/2/quote a bare unit is refused at line 1 with error 25 344 /errors/25/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 345 /errors/25/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 346 /errors/25/example e25 347 /errors/26/meaning bad memory ceiling 348 /errors/26/cause The compiler's environment entry OMC_MEMORY_MAX is not empty, 0, or 1 to 19 decimal digits below 2^63, or an environment entry is too long to read whole. It is refused before any input is read, so the line is 0. 349 /errors/26/fix Unset OMC_MEMORY_MAX, or set it to the ceiling in decimal bytes (0 or empty: none). 350 /errors/26/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:977 351 /errors/26/citations/0/quote fail 26 352 /errors/26/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 353 /errors/26/citations/1/quote fn fail code ulong to void 354 /errors/26/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1100 355 /errors/26/citations/2/quote | omc 26 | the compiler's environment entry OMC_MEMORY_MAX is not empty 356 /errors/26/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 357 /errors/26/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 358 /errors/26/example null 359 /errors/26/reproduce OMC_MEMORY_MAX=12x omc < ok.om (refused before the input is read, exit 26, stderr 'omc: line 0: error 26') 360 /errors/27/meaning fresh element read before write (OM-2 init) 361 /errors/27/cause A fresh parameter element is read before it is definitely written, or the array is passed on. 362 /errors/27/fix Write every element before reading it (put with a number index). 363 /errors/27/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:16617 364 /errors/27/citations/0/quote fail 27 365 /errors/27/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 366 /errors/27/citations/1/quote fn fail code ulong to void 367 /errors/27/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:905 368 /errors/27/citations/2/quote else error 27, `obligation=init`, on the get line 369 /errors/27/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 370 /errors/27/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 371 /errors/27/example e27 372 /errors/28/meaning abstract constructor violation (OM-2 ctor) 373 /errors/28/cause seal outside the NAMEmk constructor, or a bad holds predicate. 374 /errors/28/fix Seal only inside the function named NAME followed by mk. 375 /errors/28/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:16240 376 /errors/28/citations/0/quote fail 28 377 /errors/28/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 378 /errors/28/citations/1/quote fn fail code ulong to void 379 /errors/28/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:914 380 /errors/28/citations/2/quote a `seal` anywhere else is 381 /errors/28/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 382 /errors/28/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 383 /errors/28/example e28 384 /errors/29/meaning layout violation (OM-2 layout) 385 /errors/29/cause A `layout` line after the first `fn`; SIZE outside 1..4096; a field COUNT outside 1..4096 (a written 0 included); a field that starts or ends past SIZE; or two fields sharing a byte. A SIZE, COUNT or OFF written as 2^64 or more is error 8 instead. 386 /errors/29/fix Put every layout above the first fn, keep SIZE and COUNT in 1..4096 (leave COUNT out for one element), and keep every field inside SIZE and apart from the others. 387 /errors/29/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:16815 388 /errors/29/citations/0/quote fail 29 389 /errors/29/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 390 /errors/29/citations/1/quote fn fail code ulong to void 391 /errors/29/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:891 392 /errors/29/citations/2/quote SIZE outside 1..4096 or a `layout` after the first `fn` is error 29 393 /errors/29/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 394 /errors/29/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 395 /errors/29/example e29 396 /errors/30/meaning contract syntax (OM-2) 397 /errors/30/cause Misplaced requires/ensures/invariant, result outside a value postcondition, or a forbidden predicate operation. 398 /errors/30/fix Put contracts first in the function or loop body and use only pure integer/bool operations. 399 /errors/30/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:7730 400 /errors/30/citations/0/quote fail 30 401 /errors/30/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 402 /errors/30/citations/1/quote fn fail code ulong to void 403 /errors/30/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1834 404 /errors/30/citations/2/quote Compiler error **30** means misplaced 405 /errors/30/citations/3/ref omega-mv@`6c562dd1` seed/omc/gate15.sh:160 406 /errors/30/citations/3/quote refusal cases (codes 1..30; 24 with its accept side) 407 /errors/30/example e30 408 /traps/1/name OVERFLOW 409 /traps/1/meaning checked signed arithmetic out of range 410 /traps/1/cause Signed add/sub/mul/neg/div/shl produced a value outside the type. 411 /traps/1/fix Use a wider type, check the range first, or use an unsigned type if wrapping is intended. 412 /traps/1/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:505 413 /traps/1/citations/0/quote Signed add, sub, mul, neg, div and shl trap 1 414 /traps/1/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 415 /traps/1/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 416 /traps/1/example t01 417 /traps/2/name DIV0 418 /traps/2/meaning division by zero 419 /traps/2/cause div or rem with a divisor of 0. 420 /traps/2/fix Check the divisor before dividing. 421 /traps/2/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:507 422 /traps/2/citations/0/quote div and rem trap 2 when the divisor is 0. 423 /traps/2/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 424 /traps/2/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 425 /traps/2/example t02 426 /traps/3/name BOUNDS 427 /traps/3/meaning index or slice out of bounds 428 /traps/3/cause A run-time index is not below the length, or a host/read/write slice is outside its array. 429 /traps/3/fix Check the index against len A, or fix off/n. 430 /traps/3/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:548 431 /traps/3/citations/0/quote traps 3 when it is not below the length 432 /traps/3/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 433 /traps/3/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 434 /traps/3/example t03 435 /traps/4/name LOOP_BOUND 436 /traps/4/meaning loop exceeded its bound 437 /traps/4/cause A while or for ran past its bound N; with no bound a while, and a for whose count is not a number, stop at `1000000` passes. 438 /traps/4/fix Fix the loop condition or give the loop a larger `bound N` (up to `9223372036854775807`). 439 /traps/4/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:64 440 /traps/4/citations/0/quote past N iterations: trap 4 441 /traps/4/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:66-68 442 /traps/4/citations/1/quote With no bound a number count is not guarded and any other count traps 4 after `1000000` passes 443 /traps/4/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 444 /traps/4/citations/2/quote A trap in program mode ends the program with exit status 100 + the trap code 445 /traps/4/example t04 446 /traps/5/name CAST 447 /traps/5/meaning checked conversion out of range 448 /traps/5/cause A conversion `T v` got a value outside T. 449 /traps/5/fix Check the range before converting, or convert to a wider type. 450 /traps/5/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 451 /traps/5/citations/0/quote A conversion ` v` traps 5 when the value is outside the new type. 452 /traps/5/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 453 /traps/5/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 454 /traps/5/example t05 455 /traps/6/name OOM 456 /traps/6/meaning stack pool exhausted 457 /traps/6/cause A call or local array would go below the fixed 8 MiB stack (deep recursion). 458 /traps/6/fix Bound the recursion or use a loop / smaller local arrays. 459 /traps/6/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:494 460 /traps/6/citations/0/quote a call or a local array that would go below it traps 461 /traps/6/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 462 /traps/6/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 463 /traps/6/example t06 464 /traps/7/name SHIFT 465 /traps/7/meaning shift or rotate amount out of range 466 /traps/7/cause A shift or rotate amount is outside 0..width-1. 467 /traps/7/fix Check the amount against the width. 468 /traps/7/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:509 469 /traps/7/citations/0/quote A shift amount outside 0 .. width - 1 traps 7 470 /traps/7/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 471 /traps/7/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 472 /traps/7/example t07 473 /traps/8/name RUNTIME 474 /traps/8/meaning runtime invariant broken 475 /traps/8/cause A runtime invariant (double release, bad handle) failed; checked native code raises it only through `trap 8`. 476 /traps/8/fix Find the explicit trap 8 in the program. 477 /traps/8/citations/0/ref omega-mv@`6c562dd1` src/compiler/osc_ir.h:176 478 /traps/8/citations/0/quote OSC_TRAP_RUNTIME = 8 479 /traps/8/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 480 /traps/8/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 481 /traps/8/example t08 482 /traps/9/name REQUIRES 483 /traps/9/meaning precondition failed 484 /traps/9/cause A requires clause was false on entry. 485 /traps/9/fix Call the function only with arguments that satisfy its requires clauses. 486 /traps/9/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1830 487 /traps/9/citations/0/quote False `requires` uses existing trap **9** (program exit **109**) 488 /traps/9/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 489 /traps/9/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 490 /traps/9/example contract_fail 491 /traps/10/name ENSURES 492 /traps/10/meaning postcondition or invariant failed 493 /traps/10/cause An ensures, invariant or holds check was false. 494 /traps/10/fix Fix the function body or loop so the stated property holds. 495 /traps/10/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1831 496 /traps/10/citations/0/quote `ensures` or `invariant` uses existing trap **10** (exit **110**). 497 /traps/10/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 498 /traps/10/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 499 /traps/10/example t10 500 /traps/11/name ARENA_FULL 501 /traps/11/meaning arena allocation over capacity 502 /traps/11/cause An OSC arena allocation exceeded the arena's capacity; native program mode raises it only through `trap 11`. 503 /traps/11/fix Find the explicit trap 11 in the program. 504 /traps/11/citations/0/ref omega-mv@`6c562dd1` src/compiler/osc_ir.h:183 505 /traps/11/citations/0/quote OSC_TRAP_ARENA_FULL = 11 506 /traps/11/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 507 /traps/11/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 508 /traps/11/example t11 509 /traps/12/name STALE 510 /traps/12/meaning stale versioned handle 511 /traps/12/cause A handle whose generation no longer matches its slot; native program mode raises it only through `trap 12`. 512 /traps/12/fix Find the explicit trap 12 in the program. 513 /traps/12/citations/0/ref omega-mv@`6c562dd1` src/compiler/osc_ir.h:185 514 /traps/12/citations/0/quote OSC_TRAP_STALE = 12 515 /traps/12/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 516 /traps/12/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 517 /traps/12/example t12 518 /traps/13/name POOL_FULL 519 /traps/13/meaning pool allocation with every slot live 520 /traps/13/cause An OSC pool allocation found no free slot; native program mode raises it only through `trap 13`. 521 /traps/13/fix Find the explicit trap 13 in the program. 522 /traps/13/citations/0/ref omega-mv@`6c562dd1` src/compiler/osc_ir.h:186 523 /traps/13/citations/0/quote OSC_TRAP_POOL_FULL = 13 524 /traps/13/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 525 /traps/13/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 526 /traps/13/example t13 527 /traps/14/name RETIRED 528 /traps/14/meaning pool slot retired at the maximum generation 529 /traps/14/cause An OSC pool allocation found only retired slots; native program mode raises it only through `trap 14`. 530 /traps/14/fix Find the explicit trap 14 in the program. 531 /traps/14/citations/0/ref omega-mv@`6c562dd1` src/compiler/osc_ir.h:187 532 /traps/14/citations/0/quote OSC_TRAP_RETIRED = 14 533 /traps/14/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 534 /traps/14/citations/1/quote A trap in program mode ends the program with exit status 100 + the trap code 535 /traps/14/example t14 536 /words/fopen/table kw 537 /words/fopen/id 110 538 /words/fopen/category host-file 539 /words/fopen/profile OM-1 540 /words/fopen/form fopen A off n flags mode 541 /words/fopen/arity 5 542 /words/fopen/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 543 /words/fopen/types/1 off: ulong 544 /words/fopen/types/2 n: ulong 545 /words/fopen/types/3 flags: int 546 /words/fopen/types/4 mode: int 547 /words/fopen/result long 548 /words/fopen/summary Open a length-delimited path relative to the current directory; return the descriptor. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 549 /words/fopen/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3041-3042 550 /words/fopen/citations/0/quote ret 110 551 /words/fopen/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1148 552 /words/fopen/citations/1/quote `fopen A off n flags mode` 553 /words/fopen/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 554 /words/fopen/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 555 /words/fopen/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 556 /words/fopen/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 557 /words/fopen/example files 558 /words/fclose/table kw 559 /words/fclose/id 100 560 /words/fclose/category host-file 561 /words/fclose/profile OM-1 562 /words/fclose/form fclose fd 563 /words/fclose/arity 1 564 /words/fclose/types/0 fd: int 565 /words/fclose/result long 566 /words/fclose/summary Close a descriptor. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 567 /words/fclose/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3011-3012 568 /words/fclose/citations/0/quote ret 100 569 /words/fclose/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1149 570 /words/fclose/citations/1/quote `fclose fd` 571 /words/fclose/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 572 /words/fclose/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 573 /words/fclose/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 574 /words/fclose/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 575 /words/fclose/example files 576 /words/fsync/table kw 577 /words/fsync/id 101 578 /words/fsync/category host-file 579 /words/fsync/profile OM-1 580 /words/fsync/form fsync fd 581 /words/fsync/arity 1 582 /words/fsync/types/0 fd: int 583 /words/fsync/result long 584 /words/fsync/summary Sync file data and metadata. Program mode only; failure is minus the Linux errno. 585 /words/fsync/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3014-3015 586 /words/fsync/citations/0/quote ret 101 587 /words/fsync/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1150 588 /words/fsync/citations/1/quote `fsync fd` 589 /words/fsync/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 590 /words/fsync/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 591 /words/fsync/example files 592 /words/fdsync/table kw 593 /words/fdsync/id 156 594 /words/fdsync/category host-file 595 /words/fdsync/profile OM-1 596 /words/fdsync/form fdsync fd 597 /words/fdsync/arity 1 598 /words/fdsync/types/0 fd: int 599 /words/fdsync/result long 600 /words/fdsync/summary Sync file data only (fdatasync). Program mode only; failure is minus the Linux errno. 601 /words/fdsync/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2645-2646 602 /words/fdsync/citations/0/quote ret 156 603 /words/fdsync/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1151 604 /words/fdsync/citations/1/quote `fdsync fd` 605 /words/fdsync/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 606 /words/fdsync/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 607 /words/fdsync/example files 608 /words/memfd/table kw 609 /words/memfd/id 157 610 /words/memfd/category host-file 611 /words/memfd/profile OM-1 612 /words/memfd/form memfd A off n flags 613 /words/memfd/arity 4 614 /words/memfd/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 615 /words/memfd/types/1 off: ulong 616 /words/memfd/types/2 n: ulong 617 /words/memfd/types/3 flags: int 618 /words/memfd/result long 619 /words/memfd/summary Create an anonymous in-memory file (memfd_create); return its descriptor. Program mode only; failure is minus the Linux errno. 620 /words/memfd/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2648-2649 621 /words/memfd/citations/0/quote ret 157 622 /words/memfd/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1152 623 /words/memfd/citations/1/quote `memfd A off n flags` 624 /words/memfd/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 625 /words/memfd/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 626 /words/memfd/example files 627 /words/fchmod/table kw 628 /words/fchmod/id 102 629 /words/fchmod/category host-file 630 /words/fchmod/profile OM-1 631 /words/fchmod/form fchmod fd mode 632 /words/fchmod/arity 2 633 /words/fchmod/types/0 fd: int 634 /words/fchmod/types/1 mode: int 635 /words/fchmod/result long 636 /words/fchmod/summary Set permissions on an open descriptor. Program mode only; failure is minus the Linux errno. 637 /words/fchmod/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3017-3018 638 /words/fchmod/citations/0/quote ret 102 639 /words/fchmod/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1153 640 /words/fchmod/citations/1/quote `fchmod fd mode` 641 /words/fchmod/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 642 /words/fchmod/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 643 /words/fchmod/example files 644 /words/chmod/table kw 645 /words/chmod/id 143 646 /words/chmod/category host-file 647 /words/chmod/profile OM-1 648 /words/chmod/form chmod A off n mode 649 /words/chmod/arity 4 650 /words/chmod/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 651 /words/chmod/types/1 off: ulong 652 /words/chmod/types/2 n: ulong 653 /words/chmod/types/3 mode: int 654 /words/chmod/result long 655 /words/chmod/summary Set permissions on a checked path (fchmodat, flags 0). Program mode only; failure is minus the Linux errno. 656 /words/chmod/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2606-2607 657 /words/chmod/citations/0/quote ret 143 658 /words/chmod/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1154 659 /words/chmod/citations/1/quote `chmod A off n mode` 660 /words/chmod/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 661 /words/chmod/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 662 /words/chmod/example files 663 /words/chown/table kw 664 /words/chown/id 151 665 /words/chown/category host-dir 666 /words/chown/profile OM-1 667 /words/chown/form chown A off n uid gid 668 /words/chown/arity 5 669 /words/chown/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 670 /words/chown/types/1 off: ulong 671 /words/chown/types/2 n: ulong 672 /words/chown/types/3 uid: int 673 /words/chown/types/4 gid: int 674 /words/chown/result long 675 /words/chown/summary Set ownership on a checked path (fchownat, flags 0). Program mode only; failure is minus the Linux errno. 676 /words/chown/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2630-2631 677 /words/chown/citations/0/quote ret 151 678 /words/chown/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1155 679 /words/chown/citations/1/quote `chown A off n uid gid` 680 /words/chown/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 681 /words/chown/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 682 /words/chown/example dirs 683 /words/faccess/table kw 684 /words/faccess/id 144 685 /words/faccess/category host-file 686 /words/faccess/profile OM-1 687 /words/faccess/form faccess A off n mode 688 /words/faccess/arity 4 689 /words/faccess/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 690 /words/faccess/types/1 off: ulong 691 /words/faccess/types/2 n: ulong 692 /words/faccess/types/3 mode: int 693 /words/faccess/result long 694 /words/faccess/summary Check access to a checked path (faccessat): mode 0/1/2/4. Program mode only; failure is minus the Linux errno. 695 /words/faccess/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2609-2610 696 /words/faccess/citations/0/quote ret 144 697 /words/faccess/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1156 698 /words/faccess/citations/1/quote `faccess A off n mode` 699 /words/faccess/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 700 /words/faccess/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 701 /words/faccess/example files 702 /words/getuid/table kw 703 /words/getuid/id 145 704 /words/getuid/category host-process 705 /words/getuid/profile OM-1 706 /words/getuid/form getuid 707 /words/getuid/arity 0 708 /words/getuid/types [] 709 /words/getuid/result long 710 /words/getuid/summary Real user id of the process. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 711 /words/getuid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2612-2613 712 /words/getuid/citations/0/quote ret 145 713 /words/getuid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1157 714 /words/getuid/citations/1/quote `getuid` 715 /words/getuid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 716 /words/getuid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 717 /words/getuid/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 718 /words/getuid/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 719 /words/getuid/example dirs 720 /words/geteuid/table kw 721 /words/geteuid/id 146 722 /words/geteuid/category host-process 723 /words/geteuid/profile OM-1 724 /words/geteuid/form geteuid 725 /words/geteuid/arity 0 726 /words/geteuid/types [] 727 /words/geteuid/result long 728 /words/geteuid/summary Effective user id of the process. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 729 /words/geteuid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2615-2616 730 /words/geteuid/citations/0/quote ret 146 731 /words/geteuid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1157 732 /words/geteuid/citations/1/quote `geteuid` 733 /words/geteuid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 734 /words/geteuid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 735 /words/geteuid/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 736 /words/geteuid/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 737 /words/geteuid/example dirs 738 /words/getgid/table kw 739 /words/getgid/id 147 740 /words/getgid/category host-process 741 /words/getgid/profile OM-1 742 /words/getgid/form getgid 743 /words/getgid/arity 0 744 /words/getgid/types [] 745 /words/getgid/result long 746 /words/getgid/summary Real group id of the process. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 747 /words/getgid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2618-2619 748 /words/getgid/citations/0/quote ret 147 749 /words/getgid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1157 750 /words/getgid/citations/1/quote `getgid` 751 /words/getgid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 752 /words/getgid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 753 /words/getgid/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 754 /words/getgid/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 755 /words/getgid/example dirs 756 /words/getegid/table kw 757 /words/getegid/id 148 758 /words/getegid/category host-process 759 /words/getegid/profile OM-1 760 /words/getegid/form getegid 761 /words/getegid/arity 0 762 /words/getegid/types [] 763 /words/getegid/result long 764 /words/getegid/summary Effective group id of the process. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 765 /words/getegid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2621-2622 766 /words/getegid/citations/0/quote ret 148 767 /words/getegid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1157 768 /words/getegid/citations/1/quote `getegid` 769 /words/getegid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 770 /words/getegid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 771 /words/getegid/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 772 /words/getegid/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 773 /words/getegid/example dirs 774 /words/fchdir/table kw 775 /words/fchdir/id 153 776 /words/fchdir/category host-dir 777 /words/fchdir/profile OM-1 778 /words/fchdir/form fchdir fd 779 /words/fchdir/arity 1 780 /words/fchdir/types/0 fd: int 781 /words/fchdir/result long 782 /words/fchdir/summary Change the working directory to an open directory descriptor. Program mode only; failure is minus the Linux errno. 783 /words/fchdir/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2636-2637 784 /words/fchdir/citations/0/quote ret 153 785 /words/fchdir/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1158 786 /words/fchdir/citations/1/quote `fchdir fd` 787 /words/fchdir/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 788 /words/fchdir/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 789 /words/fchdir/example dirs 790 /words/getppid/table kw 791 /words/getppid/id 154 792 /words/getppid/category host-process 793 /words/getppid/profile OM-1 794 /words/getppid/form getppid 795 /words/getppid/arity 0 796 /words/getppid/types [] 797 /words/getppid/result long 798 /words/getppid/summary Parent process id. Program mode only; failure is minus the Linux errno. 799 /words/getppid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2639-2640 800 /words/getppid/citations/0/quote ret 154 801 /words/getppid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1159 802 /words/getppid/citations/1/quote `getppid` 803 /words/getppid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 804 /words/getppid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 805 /words/getppid/example procs 806 /words/setsid/table kw 807 /words/setsid/id 158 808 /words/setsid/category host-process 809 /words/setsid/profile OM-1 810 /words/setsid/form setsid 811 /words/setsid/arity 0 812 /words/setsid/types [] 813 /words/setsid/result long 814 /words/setsid/summary Create a session and become its leader. Program mode only; failure is minus the Linux errno. 815 /words/setsid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2651-2652 816 /words/setsid/citations/0/quote ret 158 817 /words/setsid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1160 818 /words/setsid/citations/1/quote `setsid` 819 /words/setsid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 820 /words/setsid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 821 /words/setsid/example procs 822 /words/getpgid/table kw 823 /words/getpgid/id 159 824 /words/getpgid/category host-process 825 /words/getpgid/profile OM-1 826 /words/getpgid/form getpgid pid 827 /words/getpgid/arity 1 828 /words/getpgid/types/0 pid: int 829 /words/getpgid/result long 830 /words/getpgid/summary Process group id of pid (0 = self). Program mode only; failure is minus the Linux errno. 831 /words/getpgid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2654-2655 832 /words/getpgid/citations/0/quote ret 159 833 /words/getpgid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1161 834 /words/getpgid/citations/1/quote `getpgid pid` 835 /words/getpgid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 836 /words/getpgid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 837 /words/getpgid/example procs 838 /words/getsid/table kw 839 /words/getsid/id 163 840 /words/getsid/category host-process 841 /words/getsid/profile OM-1 842 /words/getsid/form getsid pid 843 /words/getsid/arity 1 844 /words/getsid/types/0 pid: int 845 /words/getsid/result long 846 /words/getsid/summary Session id of pid (0 = self). Program mode only; failure is minus the Linux errno. 847 /words/getsid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2666-2667 848 /words/getsid/citations/0/quote ret 163 849 /words/getsid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1162 850 /words/getsid/citations/1/quote `getsid pid` 851 /words/getsid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 852 /words/getsid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 853 /words/getsid/example procs 854 /words/syncfs/table kw 855 /words/syncfs/id 164 856 /words/syncfs/category host-file 857 /words/syncfs/profile OM-1 858 /words/syncfs/form syncfs fd 859 /words/syncfs/arity 1 860 /words/syncfs/types/0 fd: int 861 /words/syncfs/result long 862 /words/syncfs/summary Sync the filesystem containing an open descriptor. Program mode only; failure is minus the Linux errno. 863 /words/syncfs/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2669-2670 864 /words/syncfs/citations/0/quote ret 164 865 /words/syncfs/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1163 866 /words/syncfs/citations/1/quote `syncfs fd` 867 /words/syncfs/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 868 /words/syncfs/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 869 /words/syncfs/example files 870 /words/shutdown/table kw 871 /words/shutdown/id 165 872 /words/shutdown/category host-net 873 /words/shutdown/profile OM-1 874 /words/shutdown/form shutdown fd how 875 /words/shutdown/arity 2 876 /words/shutdown/types/0 fd: int 877 /words/shutdown/types/1 how: int 878 /words/shutdown/result long 879 /words/shutdown/summary Shut down part of a connected socket (how 0 read, 1 write, 2 both). Program mode only; failure is minus the Linux errno. 880 /words/shutdown/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2672-2673 881 /words/shutdown/citations/0/quote ret 165 882 /words/shutdown/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1164 883 /words/shutdown/citations/1/quote `shutdown fd how` 884 /words/shutdown/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 885 /words/shutdown/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 886 /words/shutdown/example sockets 887 /words/flock/table kw 888 /words/flock/id 197 889 /words/flock/category host-file 890 /words/flock/profile OM-1 891 /words/flock/form flock fd op 892 /words/flock/arity 2 893 /words/flock/types/0 fd: int 894 /words/flock/types/1 op: int 895 /words/flock/result long 896 /words/flock/summary Advisory whole-file lock (Linux flock); op 1 shared, 2 exclusive, 8 unlock, |4 nonblocking. Program mode only; failure is minus the Linux errno. 897 /words/flock/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2753-2754 898 /words/flock/citations/0/quote ret 197 899 /words/flock/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1165 900 /words/flock/citations/1/quote `flock fd op` 901 /words/flock/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 902 /words/flock/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 903 /words/flock/example files 904 /words/setpgid/table kw 905 /words/setpgid/id 160 906 /words/setpgid/category host-process 907 /words/setpgid/profile OM-1 908 /words/setpgid/form setpgid pid pgid 909 /words/setpgid/arity 2 910 /words/setpgid/types/0 pid: int 911 /words/setpgid/types/1 pgid: int 912 /words/setpgid/result long 913 /words/setpgid/summary Set a process's group (0 = self/own pid). Program mode only; failure is minus the Linux errno. 914 /words/setpgid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2657-2658 915 /words/setpgid/citations/0/quote ret 160 916 /words/setpgid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1166 917 /words/setpgid/citations/1/quote `setpgid pid pgid` 918 /words/setpgid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 919 /words/setpgid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 920 /words/setpgid/example procs 921 /words/umask/table kw 922 /words/umask/id 155 923 /words/umask/category host-file 924 /words/umask/profile OM-1 925 /words/umask/form umask mask 926 /words/umask/arity 1 927 /words/umask/types/0 mask: int 928 /words/umask/result long 929 /words/umask/summary Set the file-mode mask; return the previous mask. Program mode only; failure is minus the Linux errno. 930 /words/umask/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2642-2643 931 /words/umask/citations/0/quote ret 155 932 /words/umask/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1167 933 /words/umask/citations/1/quote `umask mask` 934 /words/umask/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 935 /words/umask/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 936 /words/umask/example files 937 /words/fseek/table kw 938 /words/fseek/id 103 939 /words/fseek/category host-file 940 /words/fseek/profile OM-1 941 /words/fseek/form fseek fd offset whence 942 /words/fseek/arity 3 943 /words/fseek/types/0 fd: int 944 /words/fseek/types/1 offset: long 945 /words/fseek/types/2 whence: int 946 /words/fseek/result long 947 /words/fseek/summary Seek; return the resulting file offset. Program mode only; failure is minus the Linux errno. 948 /words/fseek/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3020-3021 949 /words/fseek/citations/0/quote ret 103 950 /words/fseek/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1168 951 /words/fseek/citations/1/quote `fseek fd offset whence` 952 /words/fseek/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 953 /words/fseek/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 954 /words/fseek/example files 955 /words/ftrunc/table kw 956 /words/ftrunc/id 139 957 /words/ftrunc/category host-file 958 /words/ftrunc/profile OM-1 959 /words/ftrunc/form ftrunc fd length 960 /words/ftrunc/arity 2 961 /words/ftrunc/types/0 fd: int 962 /words/ftrunc/types/1 length: long 963 /words/ftrunc/result long 964 /words/ftrunc/summary Set an open descriptor's length (ftruncate). Program mode only; failure is minus the Linux errno. 965 /words/ftrunc/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2594-2595 966 /words/ftrunc/citations/0/quote ret 139 967 /words/ftrunc/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1169 968 /words/ftrunc/citations/1/quote `ftrunc fd length` 969 /words/ftrunc/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 970 /words/ftrunc/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 971 /words/ftrunc/example files 972 /words/truncate/table kw 973 /words/truncate/id 150 974 /words/truncate/category host-file 975 /words/truncate/profile OM-1 976 /words/truncate/form truncate A off n length 977 /words/truncate/arity 4 978 /words/truncate/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 979 /words/truncate/types/1 off: ulong 980 /words/truncate/types/2 n: ulong 981 /words/truncate/types/3 length: long 982 /words/truncate/result long 983 /words/truncate/summary Set a checked path's length (truncate). Program mode only; failure is minus the Linux errno. 984 /words/truncate/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2627-2628 985 /words/truncate/citations/0/quote ret 150 986 /words/truncate/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1170 987 /words/truncate/citations/1/quote `truncate A off n length` 988 /words/truncate/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 989 /words/truncate/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 990 /words/truncate/example files 991 /words/unlink/table kw 992 /words/unlink/id 111 993 /words/unlink/category host-file 994 /words/unlink/profile OM-1 995 /words/unlink/form unlink A off n 996 /words/unlink/arity 3 997 /words/unlink/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 998 /words/unlink/types/1 off: ulong 999 /words/unlink/types/2 n: ulong 1000 /words/unlink/result long 1001 /words/unlink/summary Remove the named file. Program mode only; failure is minus the Linux errno. 1002 /words/unlink/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3044-3045 1003 /words/unlink/citations/0/quote ret 111 1004 /words/unlink/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1171 1005 /words/unlink/citations/1/quote `unlink A off n` 1006 /words/unlink/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1007 /words/unlink/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1008 /words/unlink/example files 1009 /words/makedir/table kw 1010 /words/makedir/id 112 1011 /words/makedir/category host-dir 1012 /words/makedir/profile OM-1 1013 /words/makedir/form makedir A off n mode 1014 /words/makedir/arity 4 1015 /words/makedir/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1016 /words/makedir/types/1 off: ulong 1017 /words/makedir/types/2 n: ulong 1018 /words/makedir/types/3 mode: int 1019 /words/makedir/result long 1020 /words/makedir/summary Create a directory. Program mode only; failure is minus the Linux errno. 1021 /words/makedir/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3047-3048 1022 /words/makedir/citations/0/quote ret 112 1023 /words/makedir/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1172 1024 /words/makedir/citations/1/quote `makedir A off n mode` 1025 /words/makedir/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1026 /words/makedir/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1027 /words/makedir/example dirs 1028 /words/rmdir/table kw 1029 /words/rmdir/id 126 1030 /words/rmdir/category host-dir 1031 /words/rmdir/profile OM-1 1032 /words/rmdir/form rmdir A off n 1033 /words/rmdir/arity 3 1034 /words/rmdir/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1035 /words/rmdir/types/1 off: ulong 1036 /words/rmdir/types/2 n: ulong 1037 /words/rmdir/result long 1038 /words/rmdir/summary Remove an empty directory. Program mode only; failure is minus the Linux errno. 1039 /words/rmdir/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2966-2967 1040 /words/rmdir/citations/0/quote ret 126 1041 /words/rmdir/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1173 1042 /words/rmdir/citations/1/quote `rmdir A off n` 1043 /words/rmdir/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1044 /words/rmdir/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1045 /words/rmdir/example dirs 1046 /words/cwd/table kw 1047 /words/cwd/id 132 1048 /words/cwd/category host-dir 1049 /words/cwd/profile OM-1 1050 /words/cwd/form cwd A off capacity 1051 /words/cwd/arity 3 1052 /words/cwd/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1053 /words/cwd/types/1 off: ulong 1054 /words/cwd/types/2 capacity: ulong 1055 /words/cwd/result long 1056 /words/cwd/summary Write the current directory into writable bytes; the count includes the trailing zero. Program mode only; failure is minus the Linux errno. 1057 /words/cwd/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2561-2562 1058 /words/cwd/citations/0/quote ret 132 1059 /words/cwd/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1174 1060 /words/cwd/citations/1/quote `cwd A off capacity` 1061 /words/cwd/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1062 /words/cwd/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1063 /words/cwd/example dirs 1064 /words/chdir/table kw 1065 /words/chdir/id 138 1066 /words/chdir/category host-dir 1067 /words/chdir/profile OM-1 1068 /words/chdir/form chdir A off n 1069 /words/chdir/arity 3 1070 /words/chdir/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1071 /words/chdir/types/1 off: ulong 1072 /words/chdir/types/2 n: ulong 1073 /words/chdir/result long 1074 /words/chdir/summary Change the working directory to a checked, nonempty path. Program mode only; failure is minus the Linux errno. 1075 /words/chdir/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2591-2592 1076 /words/chdir/citations/0/quote ret 138 1077 /words/chdir/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1175 1078 /words/chdir/citations/1/quote `chdir A off n` 1079 /words/chdir/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1080 /words/chdir/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1081 /words/chdir/example dirs 1082 /words/readlnk/table kw 1083 /words/readlnk/id 133 1084 /words/readlnk/category host-dir 1085 /words/readlnk/profile OM-1 1086 /words/readlnk/form readlnk PATH off n OUT off capacity 1087 /words/readlnk/arity 6 1088 /words/readlnk/types/0 PATH: uchar array (sized, unsized view/edit, or text when only read) 1089 /words/readlnk/types/1 off: ulong 1090 /words/readlnk/types/2 n: ulong 1091 /words/readlnk/types/3 OUT: uchar array (sized, unsized view/edit, or text when only read) 1092 /words/readlnk/types/4 off: ulong 1093 /words/readlnk/types/5 capacity: ulong 1094 /words/readlnk/result long 1095 /words/readlnk/summary Read a symbolic link into writable output bytes; no zero byte is appended. Program mode only; failure is minus the Linux errno. 1096 /words/readlnk/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2570-2571 1097 /words/readlnk/citations/0/quote ret 133 1098 /words/readlnk/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1176 1099 /words/readlnk/citations/1/quote `readlnk PATH off n OUT off capacity` 1100 /words/readlnk/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1101 /words/readlnk/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1102 /words/readlnk/example dirs 1103 /words/getdnts/table kw 1104 /words/getdnts/id 113 1105 /words/getdnts/category host-dir 1106 /words/getdnts/profile OM-1 1107 /words/getdnts/form getdnts fd A off n 1108 /words/getdnts/arity 4 1109 /words/getdnts/types/0 fd: int 1110 /words/getdnts/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1111 /words/getdnts/types/2 off: ulong 1112 /words/getdnts/types/3 n: ulong 1113 /words/getdnts/result long 1114 /words/getdnts/summary Write raw Linux getdents64 records; return bytes written. Program mode only; failure is minus the Linux errno. 1115 /words/getdnts/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2981-2982 1116 /words/getdnts/citations/0/quote ret 113 1117 /words/getdnts/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1177 1118 /words/getdnts/citations/1/quote `getdnts fd A off n` 1119 /words/getdnts/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1120 /words/getdnts/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1121 /words/getdnts/example dirs 1122 /words/fstat/table kw 1123 /words/fstat/id 117 1124 /words/fstat/category host-file 1125 /words/fstat/profile OM-1 1126 /words/fstat/form fstat fd A off n 1127 /words/fstat/arity 4 1128 /words/fstat/types/0 fd: int 1129 /words/fstat/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1130 /words/fstat/types/2 off: ulong 1131 /words/fstat/types/3 n: ulong 1132 /words/fstat/result long 1133 /words/fstat/summary Write the 128-byte Linux ARM64 stat structure of an open descriptor. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 1134 /words/fstat/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2993-2994 1135 /words/fstat/citations/0/quote ret 117 1136 /words/fstat/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1178 1137 /words/fstat/citations/1/quote `fstat fd A off n` 1138 /words/fstat/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1139 /words/fstat/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1140 /words/fstat/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 1141 /words/fstat/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 1142 /words/fstat/example files 1143 /words/stat/table kw 1144 /words/stat/id 140 1145 /words/stat/category host-file 1146 /words/stat/profile OM-1 1147 /words/stat/form stat A off n B off capacity 1148 /words/stat/arity 6 1149 /words/stat/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1150 /words/stat/types/1 off: ulong 1151 /words/stat/types/2 n: ulong 1152 /words/stat/types/3 B: uchar array (sized, unsized view/edit, or text when only read) 1153 /words/stat/types/4 off: ulong 1154 /words/stat/types/5 capacity: ulong 1155 /words/stat/result long 1156 /words/stat/summary Metadata for a checked path (newfstatat) into a 128-byte ARM64 stat structure. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 1157 /words/stat/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2597-2598 1158 /words/stat/citations/0/quote ret 140 1159 /words/stat/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1179 1160 /words/stat/citations/1/quote `stat A off n B off capacity` 1161 /words/stat/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1162 /words/stat/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1163 /words/stat/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 1164 /words/stat/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 1165 /words/stat/example files 1166 /words/lstat/table kw 1167 /words/lstat/id 149 1168 /words/lstat/category host-file 1169 /words/lstat/profile OM-1 1170 /words/lstat/form lstat A off n B off capacity 1171 /words/lstat/arity 6 1172 /words/lstat/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1173 /words/lstat/types/1 off: ulong 1174 /words/lstat/types/2 n: ulong 1175 /words/lstat/types/3 B: uchar array (sized, unsized view/edit, or text when only read) 1176 /words/lstat/types/4 off: ulong 1177 /words/lstat/types/5 capacity: ulong 1178 /words/lstat/result long 1179 /words/lstat/summary As stat, without following a final symbolic link. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 1180 /words/lstat/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2624-2625 1181 /words/lstat/citations/0/quote ret 149 1182 /words/lstat/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1180 1183 /words/lstat/citations/1/quote `lstat A off n B off capacity` 1184 /words/lstat/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1185 /words/lstat/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1186 /words/lstat/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 1187 /words/lstat/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 1188 /words/lstat/example files 1189 /words/renames/table kw 1190 /words/renames/id 125 1191 /words/renames/category host-dir 1192 /words/renames/profile OM-1 1193 /words/renames/form renames A off n flags 1194 /words/renames/arity 4 1195 /words/renames/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1196 /words/renames/types/1 off: ulong 1197 /words/renames/types/2 n: ulong 1198 /words/renames/types/3 flags: int 1199 /words/renames/result long 1200 /words/renames/summary Rename the two paths of a packed list (renameat2); flag 1 refuses replacement. Program mode only; failure is minus the Linux errno. 1201 /words/renames/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2963-2964 1202 /words/renames/citations/0/quote ret 125 1203 /words/renames/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1181 1204 /words/renames/citations/1/quote `renames A off n flags` 1205 /words/renames/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1206 /words/renames/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1207 /words/renames/example dirs 1208 /words/link/table kw 1209 /words/link/id 141 1210 /words/link/category host-dir 1211 /words/link/profile OM-1 1212 /words/link/form link A off n 1213 /words/link/arity 3 1214 /words/link/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1215 /words/link/types/1 off: ulong 1216 /words/link/types/2 n: ulong 1217 /words/link/result long 1218 /words/link/summary Create a hard link from a packed two-path list (old, new). Program mode only; failure is minus the Linux errno. 1219 /words/link/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2600-2601 1220 /words/link/citations/0/quote ret 141 1221 /words/link/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1182 1222 /words/link/citations/1/quote `link A off n` 1223 /words/link/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1224 /words/link/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1225 /words/link/example dirs 1226 /words/symlnk/table kw 1227 /words/symlnk/id 142 1228 /words/symlnk/category host-dir 1229 /words/symlnk/profile OM-1 1230 /words/symlnk/form symlnk A off n 1231 /words/symlnk/arity 3 1232 /words/symlnk/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1233 /words/symlnk/types/1 off: ulong 1234 /words/symlnk/types/2 n: ulong 1235 /words/symlnk/result long 1236 /words/symlnk/summary Create a symbolic link from a packed two-path list (target text, link path). Program mode only; failure is minus the Linux errno. 1237 /words/symlnk/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2603-2604 1238 /words/symlnk/citations/0/quote ret 142 1239 /words/symlnk/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1183 1240 /words/symlnk/citations/1/quote `symlnk A off n` 1241 /words/symlnk/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1242 /words/symlnk/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1243 /words/symlnk/example dirs 1244 /words/monons/table kw 1245 /words/monons/id 109 1246 /words/monons/category host-time 1247 /words/monons/profile OM-1 1248 /words/monons/form monons 1249 /words/monons/arity 0 1250 /words/monons/types [] 1251 /words/monons/result long 1252 /words/monons/summary Monotonic nanoseconds, for elapsed-time measurement. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 1253 /words/monons/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3038-3039 1254 /words/monons/citations/0/quote ret 109 1255 /words/monons/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1184 1256 /words/monons/citations/1/quote `monons` 1257 /words/monons/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1258 /words/monons/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1259 /words/monons/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 1260 /words/monons/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 1261 /words/monons/example clock 1262 /words/realns/table kw 1263 /words/realns/id 130 1264 /words/realns/category host-time 1265 /words/realns/profile OM-1 1266 /words/realns/form realns 1267 /words/realns/arity 0 1268 /words/realns/types [] 1269 /words/realns/result long 1270 /words/realns/summary Realtime nanoseconds since the Unix epoch. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 1271 /words/realns/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2957-2958 1272 /words/realns/citations/0/quote ret 130 1273 /words/realns/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1185 1274 /words/realns/citations/1/quote `realns` 1275 /words/realns/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1276 /words/realns/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1277 /words/realns/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 1278 /words/realns/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 1279 /words/realns/example clock 1280 /words/sleepns/table kw 1281 /words/sleepns/id 120 1282 /words/sleepns/category host-time 1283 /words/sleepns/profile OM-1 1284 /words/sleepns/form sleepns interval 1285 /words/sleepns/arity 1 1286 /words/sleepns/types/0 interval: long 1287 /words/sleepns/result long 1288 /words/sleepns/summary Sleep for nonnegative nanoseconds; a negative interval traps 3. Program mode, and OM-2 function units on AArch64 (error 9 in other function units); failure is minus the Linux errno. 1289 /words/sleepns/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3002-3003 1290 /words/sleepns/citations/0/quote ret 120 1291 /words/sleepns/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1186 1292 /words/sleepns/citations/1/quote `sleepns interval` 1293 /words/sleepns/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1294 /words/sleepns/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1295 /words/sleepns/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 1296 /words/sleepns/citations/3/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 1297 /words/sleepns/example clock 1298 /words/socknew/table kw 1299 /words/socknew/id 104 1300 /words/socknew/category host-net 1301 /words/socknew/profile OM-1 1302 /words/socknew/form socknew domain kind protocol 1303 /words/socknew/arity 3 1304 /words/socknew/types/0 domain: int 1305 /words/socknew/types/1 kind: int 1306 /words/socknew/types/2 protocol: int 1307 /words/socknew/result long 1308 /words/socknew/summary Create a socket. Program mode only; failure is minus the Linux errno. 1309 /words/socknew/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3023-3024 1310 /words/socknew/citations/0/quote ret 104 1311 /words/socknew/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1187 1312 /words/socknew/citations/1/quote `socknew domain kind protocol` 1313 /words/socknew/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1314 /words/socknew/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1315 /words/socknew/example sockets 1316 /words/bind/table kw 1317 /words/bind/id 115 1318 /words/bind/category host-net 1319 /words/bind/profile OM-1 1320 /words/bind/form bind fd A off n 1321 /words/bind/arity 4 1322 /words/bind/types/0 fd: int 1323 /words/bind/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1324 /words/bind/types/2 off: ulong 1325 /words/bind/types/3 n: ulong 1326 /words/bind/result long 1327 /words/bind/summary Bind a socket to the address bytes of the slice. Program mode only; failure is minus the Linux errno. 1328 /words/bind/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2987-2988 1329 /words/bind/citations/0/quote ret 115 1330 /words/bind/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1188 1331 /words/bind/citations/1/quote `bind fd A off n` 1332 /words/bind/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1333 /words/bind/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1334 /words/bind/example sockets 1335 /words/connect/table kw 1336 /words/connect/id 114 1337 /words/connect/category host-net 1338 /words/connect/profile OM-1 1339 /words/connect/form connect fd A off n 1340 /words/connect/arity 4 1341 /words/connect/types/0 fd: int 1342 /words/connect/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1343 /words/connect/types/2 off: ulong 1344 /words/connect/types/3 n: ulong 1345 /words/connect/result long 1346 /words/connect/summary Connect using the address bytes of the slice. Program mode only; failure is minus the Linux errno. 1347 /words/connect/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2984-2985 1348 /words/connect/citations/0/quote ret 114 1349 /words/connect/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1189 1350 /words/connect/citations/1/quote `connect fd A off n` 1351 /words/connect/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1352 /words/connect/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1353 /words/connect/example sockets 1354 /words/listen/table kw 1355 /words/listen/id 105 1356 /words/listen/category host-net 1357 /words/listen/profile OM-1 1358 /words/listen/form listen fd backlog 1359 /words/listen/arity 2 1360 /words/listen/types/0 fd: int 1361 /words/listen/types/1 backlog: int 1362 /words/listen/result long 1363 /words/listen/summary Listen for connections. Program mode only; failure is minus the Linux errno. 1364 /words/listen/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3026-3027 1365 /words/listen/citations/0/quote ret 105 1366 /words/listen/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1190 1367 /words/listen/citations/1/quote `listen fd backlog` 1368 /words/listen/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1369 /words/listen/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1370 /words/listen/example sockets 1371 /words/accept/table kw 1372 /words/accept/id 106 1373 /words/accept/category host-net 1374 /words/accept/profile OM-1 1375 /words/accept/form accept fd flags 1376 /words/accept/arity 2 1377 /words/accept/types/0 fd: int 1378 /words/accept/types/1 flags: int 1379 /words/accept/result long 1380 /words/accept/summary Accept a connection (accept4) without peer-address output; return the descriptor. Program mode only; failure is minus the Linux errno. 1381 /words/accept/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3029-3030 1382 /words/accept/citations/0/quote ret 106 1383 /words/accept/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1191 1384 /words/accept/citations/1/quote `accept fd flags` 1385 /words/accept/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1386 /words/accept/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1387 /words/accept/example sockets 1388 /words/sockname/table kw 1389 /words/sockname/id 131 1390 /words/sockname/category host-net 1391 /words/sockname/profile OM-1 1392 /words/sockname/form sockname fd A off n 1393 /words/sockname/arity 4 1394 /words/sockname/types/0 fd: int 1395 /words/sockname/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1396 /words/sockname/types/2 off: ulong 1397 /words/sockname/types/3 n: ulong 1398 /words/sockname/result long 1399 /words/sockname/summary Write the socket's address bytes; return the full address length. Program mode only; failure is minus the Linux errno. 1400 /words/sockname/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2954-2955 1401 /words/sockname/citations/0/quote ret 131 1402 /words/sockname/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1192 1403 /words/sockname/citations/1/quote `sockname fd A off n` 1404 /words/sockname/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1405 /words/sockname/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1406 /words/sockname/example sockets 1407 /words/sockopt/table kw 1408 /words/sockopt/id 134 1409 /words/sockopt/category host-net 1410 /words/sockopt/profile OM-1 1411 /words/sockopt/form sockopt fd level option A off n 1412 /words/sockopt/arity 6 1413 /words/sockopt/types/0 fd: int 1414 /words/sockopt/types/1 level: int 1415 /words/sockopt/types/2 option: int 1416 /words/sockopt/types/3 A: uchar array (sized, unsized view/edit, or text when only read) 1417 /words/sockopt/types/4 off: ulong 1418 /words/sockopt/types/5 n: ulong 1419 /words/sockopt/result long 1420 /words/sockopt/summary Set one allowlisted four-byte socket option. Program mode only; failure is minus the Linux errno. 1421 /words/sockopt/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2579-2580 1422 /words/sockopt/citations/0/quote ret 134 1423 /words/sockopt/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1194 1424 /words/sockopt/citations/1/quote `sockopt fd level option A off n` 1425 /words/sockopt/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1426 /words/sockopt/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1427 /words/sockopt/example sockets 1428 /words/recv/table kw 1429 /words/recv/id 118 1430 /words/recv/category host-net 1431 /words/recv/profile OM-1 1432 /words/recv/form recv fd A off n flags 1433 /words/recv/arity 5 1434 /words/recv/types/0 fd: int 1435 /words/recv/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1436 /words/recv/types/2 off: ulong 1437 /words/recv/types/3 n: ulong 1438 /words/recv/types/4 flags: int 1439 /words/recv/result long 1440 /words/recv/summary Receive into a writable slice. Program mode only; failure is minus the Linux errno. 1441 /words/recv/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2996-2997 1442 /words/recv/citations/0/quote ret 118 1443 /words/recv/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1195 1444 /words/recv/citations/1/quote `recv fd A off n flags` 1445 /words/recv/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1446 /words/recv/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1447 /words/recv/example sockets 1448 /words/send/table kw 1449 /words/send/id 119 1450 /words/send/category host-net 1451 /words/send/profile OM-1 1452 /words/send/form send fd A off n flags 1453 /words/send/arity 5 1454 /words/send/types/0 fd: int 1455 /words/send/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1456 /words/send/types/2 off: ulong 1457 /words/send/types/3 n: ulong 1458 /words/send/types/4 flags: int 1459 /words/send/result long 1460 /words/send/summary Send a slice; MSG_NOSIGNAL is added so a closed peer returns an error. Program mode only; failure is minus the Linux errno. 1461 /words/send/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2999-3000 1462 /words/send/citations/0/quote ret 119 1463 /words/send/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1196 1464 /words/send/citations/1/quote `send fd A off n flags` 1465 /words/send/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1466 /words/send/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1467 /words/send/example sockets 1468 /words/waitio/table kw 1469 /words/waitio/id 123 1470 /words/waitio/category host-net 1471 /words/waitio/profile OM-1 1472 /words/waitio/form waitio fd events interval 1473 /words/waitio/arity 3 1474 /words/waitio/types/0 fd: int 1475 /words/waitio/types/1 events: int 1476 /words/waitio/types/2 interval: long 1477 /words/waitio/result long 1478 /words/waitio/summary Poll one descriptor: readiness bits, 0 on timeout, or negative errno. Program mode only; failure is minus the Linux errno. 1479 /words/waitio/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2978-2979 1480 /words/waitio/citations/0/quote ret 123 1481 /words/waitio/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1197 1482 /words/waitio/citations/1/quote `waitio fd events interval` 1483 /words/waitio/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1484 /words/waitio/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1485 /words/waitio/example sockets 1486 /words/peercred/table kw 1487 /words/peercred/id 220 1488 /words/peercred/category host-net 1489 /words/peercred/profile OM-1 1490 /words/peercred/form peercred fd A off capacity 1491 /words/peercred/arity 4 1492 /words/peercred/types/0 fd: int 1493 /words/peercred/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1494 /words/peercred/types/2 off: ulong 1495 /words/peercred/types/3 capacity: ulong 1496 /words/peercred/result long 1497 /words/peercred/summary Read SO_PEERCRED (pid, uid, gid as little-endian int32) into at least 12 writable bytes. Program mode only; failure is minus the Linux errno. 1498 /words/peercred/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3083-3084 1499 /words/peercred/citations/0/quote ret 220 1500 /words/peercred/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1198 1501 /words/peercred/citations/1/quote `peercred fd A off capacity` 1502 /words/peercred/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1503 /words/peercred/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1504 /words/peercred/example sockets 1505 /words/pollfds/table kw 1506 /words/pollfds/id 221 1507 /words/pollfds/category host-net 1508 /words/pollfds/profile OM-1 1509 /words/pollfds/form pollfds A off n interval 1510 /words/pollfds/arity 4 1511 /words/pollfds/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1512 /words/pollfds/types/1 off: ulong 1513 /words/pollfds/types/2 n: ulong 1514 /words/pollfds/types/3 interval: long 1515 /words/pollfds/result long 1516 /words/pollfds/summary Poll packed eight-byte pollfd records in a writable slice. Program mode only; failure is minus the Linux errno. 1517 /words/pollfds/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3086-3087 1518 /words/pollfds/citations/0/quote ret 221 1519 /words/pollfds/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1199 1520 /words/pollfds/citations/1/quote `pollfds A off n interval` 1521 /words/pollfds/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1522 /words/pollfds/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1523 /words/pollfds/example sockets 1524 /words/sendmsg/table kw 1525 /words/sendmsg/id 222 1526 /words/sendmsg/category host-net 1527 /words/sendmsg/profile OM-1 1528 /words/sendmsg/form sendmsg fd A off n flags 1529 /words/sendmsg/arity 5 1530 /words/sendmsg/types/0 fd: int 1531 /words/sendmsg/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1532 /words/sendmsg/types/2 off: ulong 1533 /words/sendmsg/types/3 n: ulong 1534 /words/sendmsg/types/4 flags: int 1535 /words/sendmsg/result long 1536 /words/sendmsg/summary Send one checked payload through a private msghdr, no ancillary data. Program mode only; failure is minus the Linux errno. 1537 /words/sendmsg/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3089-3090 1538 /words/sendmsg/citations/0/quote ret 222 1539 /words/sendmsg/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1200 1540 /words/sendmsg/citations/1/quote `sendmsg fd A off n flags` 1541 /words/sendmsg/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1542 /words/sendmsg/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1543 /words/sendmsg/example sockets 1544 /words/fork/table kw 1545 /words/fork/id 107 1546 /words/fork/category host-process 1547 /words/fork/profile OM-1 1548 /words/fork/form fork 1549 /words/fork/arity 0 1550 /words/fork/types [] 1551 /words/fork/result long 1552 /words/fork/summary Copy the process: 0 in the child, the child pid in the parent. Program mode only; failure is minus the Linux errno. 1553 /words/fork/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3032-3033 1554 /words/fork/citations/0/quote ret 107 1555 /words/fork/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1201 1556 /words/fork/citations/1/quote `fork` 1557 /words/fork/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1558 /words/fork/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1559 /words/fork/example procs 1560 /words/getpid/table kw 1561 /words/getpid/id 129 1562 /words/getpid/category host-process 1563 /words/getpid/profile OM-1 1564 /words/getpid/form getpid 1565 /words/getpid/arity 0 1566 /words/getpid/types [] 1567 /words/getpid/result long 1568 /words/getpid/summary The current process id. Program mode only; failure is minus the Linux errno. 1569 /words/getpid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2975-2976 1570 /words/getpid/citations/0/quote ret 129 1571 /words/getpid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1202 1572 /words/getpid/citations/1/quote `getpid` 1573 /words/getpid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1574 /words/getpid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1575 /words/getpid/example procs 1576 /words/killpid/table kw 1577 /words/killpid/id 127 1578 /words/killpid/category host-process 1579 /words/killpid/profile OM-1 1580 /words/killpid/form killpid pid signal 1581 /words/killpid/arity 2 1582 /words/killpid/types/0 pid: int 1583 /words/killpid/types/1 signal: int 1584 /words/killpid/result long 1585 /words/killpid/summary Send a signal; signal 0 checks existence and permission. Program mode only; failure is minus the Linux errno. 1586 /words/killpid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2969-2970 1587 /words/killpid/citations/0/quote ret 127 1588 /words/killpid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1203 1589 /words/killpid/citations/1/quote `killpid pid signal` 1590 /words/killpid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1591 /words/killpid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1592 /words/killpid/example procs 1593 /words/waitpid/table kw 1594 /words/waitpid/id 116 1595 /words/waitpid/category host-process 1596 /words/waitpid/profile OM-1 1597 /words/waitpid/form waitpid pid A off n options 1598 /words/waitpid/arity 5 1599 /words/waitpid/types/0 pid: int 1600 /words/waitpid/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1601 /words/waitpid/types/2 off: ulong 1602 /words/waitpid/types/3 n: ulong 1603 /words/waitpid/types/4 options: int 1604 /words/waitpid/result long 1605 /words/waitpid/summary Wait with wait4; write a four-byte status; return the pid. Program mode only; failure is minus the Linux errno. 1606 /words/waitpid/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2990-2991 1607 /words/waitpid/citations/0/quote ret 116 1608 /words/waitpid/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1204 1609 /words/waitpid/citations/1/quote `waitpid pid A off n options` 1610 /words/waitpid/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1611 /words/waitpid/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1612 /words/waitpid/example procs 1613 /words/pipefds/table kw 1614 /words/pipefds/id 128 1615 /words/pipefds/category host-process 1616 /words/pipefds/profile OM-1 1617 /words/pipefds/form pipefds A off n flags 1618 /words/pipefds/arity 4 1619 /words/pipefds/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1620 /words/pipefds/types/1 off: ulong 1621 /words/pipefds/types/2 n: ulong 1622 /words/pipefds/types/3 flags: int 1623 /words/pipefds/result long 1624 /words/pipefds/summary Create a pipe (pipe2); write two little-endian 32-bit descriptors. Program mode only; failure is minus the Linux errno. 1625 /words/pipefds/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2972-2973 1626 /words/pipefds/citations/0/quote ret 128 1627 /words/pipefds/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1205 1628 /words/pipefds/citations/1/quote `pipefds A off n flags` 1629 /words/pipefds/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1630 /words/pipefds/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1631 /words/pipefds/example procs 1632 /words/dupfd/table kw 1633 /words/dupfd/id 108 1634 /words/dupfd/category host-process 1635 /words/dupfd/profile OM-1 1636 /words/dupfd/form dupfd fd target flags 1637 /words/dupfd/arity 3 1638 /words/dupfd/types/0 fd: int 1639 /words/dupfd/types/1 target: int 1640 /words/dupfd/types/2 flags: int 1641 /words/dupfd/result long 1642 /words/dupfd/summary Duplicate onto a chosen descriptor (dup3). Program mode only; failure is minus the Linux errno. 1643 /words/dupfd/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3035-3036 1644 /words/dupfd/citations/0/quote ret 108 1645 /words/dupfd/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1206 1646 /words/dupfd/citations/1/quote `dupfd fd target flags` 1647 /words/dupfd/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1648 /words/dupfd/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1649 /words/dupfd/example procs 1650 /words/execprog/table kw 1651 /words/execprog/id 124 1652 /words/execprog/category host-process 1653 /words/execprog/profile OM-1 1654 /words/execprog/form execprog A off n 1655 /words/execprog/arity 3 1656 /words/execprog/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1657 /words/execprog/types/1 off: ulong 1658 /words/execprog/types/2 n: ulong 1659 /words/execprog/result long 1660 /words/execprog/summary Replace the process using a packed argument list and an empty environment; returns only on failure. Program mode only; failure is minus the Linux errno. 1661 /words/execprog/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2960-2961 1662 /words/execprog/citations/0/quote ret 124 1663 /words/execprog/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1207 1664 /words/execprog/citations/1/quote `execprog A off n` 1665 /words/execprog/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1666 /words/execprog/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1667 /words/execprog/example procs 1668 /words/argcnt/table kw 1669 /words/argcnt/id 121 1670 /words/argcnt/category host-process 1671 /words/argcnt/profile OM-1 1672 /words/argcnt/form argcnt 1673 /words/argcnt/arity 0 1674 /words/argcnt/types [] 1675 /words/argcnt/result long 1676 /words/argcnt/summary Argument count, including the executable name. Program mode only; never fails. 1677 /words/argcnt/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3005-3006 1678 /words/argcnt/citations/0/quote ret 121 1679 /words/argcnt/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1216 1680 /words/argcnt/citations/1/quote `argcnt` 1681 /words/argcnt/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1682 /words/argcnt/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1683 /words/argcnt/example argsenv 1684 /words/argread/table kw 1685 /words/argread/id 122 1686 /words/argread/category host-process 1687 /words/argread/profile OM-1 1688 /words/argread/form argread index A off capacity 1689 /words/argread/arity 4 1690 /words/argread/types/0 index: ulong 1691 /words/argread/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1692 /words/argread/types/2 off: ulong 1693 /words/argread/types/3 capacity: ulong 1694 /words/argread/result long 1695 /words/argread/summary Copy one argument's bytes without a terminator; return its length. Program mode only. An index at or past argcnt traps 3 (check argcnt first; the example shows the trap); insufficient capacity returns -105 without changing the slice. 1696 /words/argread/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3008-3009 1697 /words/argread/citations/0/quote ret 122 1698 /words/argread/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1217 1699 /words/argread/citations/1/quote `argread index A off capacity` 1700 /words/argread/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1701 /words/argread/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1702 /words/argread/example argtrap 1703 /words/envcnt/table kw 1704 /words/envcnt/id 136 1705 /words/envcnt/category host-process 1706 /words/envcnt/profile OM-1 1707 /words/envcnt/form envcnt 1708 /words/envcnt/arity 0 1709 /words/envcnt/types [] 1710 /words/envcnt/result long 1711 /words/envcnt/summary Number of environment entries. Program mode only; never fails. 1712 /words/envcnt/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2585-2586 1713 /words/envcnt/citations/0/quote ret 136 1714 /words/envcnt/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1218 1715 /words/envcnt/citations/1/quote `envcnt` 1716 /words/envcnt/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1717 /words/envcnt/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1718 /words/envcnt/example argsenv 1719 /words/envread/table kw 1720 /words/envread/id 137 1721 /words/envread/category host-process 1722 /words/envread/profile OM-1 1723 /words/envread/form envread index A off capacity 1724 /words/envread/arity 4 1725 /words/envread/types/0 index: ulong 1726 /words/envread/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1727 /words/envread/types/2 off: ulong 1728 /words/envread/types/3 capacity: ulong 1729 /words/envread/result long 1730 /words/envread/summary Copy one environment entry without its terminator; return its length. Program mode only. An index at or past envcnt traps 3; insufficient capacity returns -105 without changing the slice. 1731 /words/envread/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2588-2589 1732 /words/envread/citations/0/quote ret 137 1733 /words/envread/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1219 1734 /words/envread/citations/1/quote `envread index A off capacity` 1735 /words/envread/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1736 /words/envread/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1737 /words/envread/example argsenv 1738 /words/random/table kw 1739 /words/random/id 135 1740 /words/random/category host-time 1741 /words/random/profile OM-1 1742 /words/random/form random A off n flags 1743 /words/random/arity 4 1744 /words/random/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1745 /words/random/types/1 off: ulong 1746 /words/random/types/2 n: ulong 1747 /words/random/types/3 flags: int 1748 /words/random/result long 1749 /words/random/summary Fill a writable byte slice from getrandom; return the bytes written. Program mode only; failure is minus the Linux errno. 1750 /words/random/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2582-2583 1751 /words/random/citations/0/quote ret 135 1752 /words/random/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1220 1753 /words/random/citations/1/quote `random A off n flags` 1754 /words/random/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1755 /words/random/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1756 /words/random/example clock 1757 /words/peername/table kw 1758 /words/peername/id 224 1759 /words/peername/category host-net 1760 /words/peername/profile OM-1 1761 /words/peername/form peername fd A off n 1762 /words/peername/arity 4 1763 /words/peername/types/0 fd: int 1764 /words/peername/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1765 /words/peername/types/2 off: ulong 1766 /words/peername/types/3 n: ulong 1767 /words/peername/result long 1768 /words/peername/summary Write the connected peer's address bytes (getpeername) into a writable slice; return the full address length (greater than n means truncated). Program mode only; failure is minus the Linux errno. 1769 /words/peername/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3101-3102 1770 /words/peername/citations/0/quote ret 224 1771 /words/peername/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1193 1772 /words/peername/citations/1/quote `peername fd A off n` 1773 /words/peername/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1774 /words/peername/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1775 /words/peername/example peername 1776 /words/execenv/table kw 1777 /words/execenv/id 233 1778 /words/execenv/category host-process 1779 /words/execenv/profile OM-1 1780 /words/execenv/form execenv A off n B off m 1781 /words/execenv/arity 6 1782 /words/execenv/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1783 /words/execenv/types/1 off: ulong 1784 /words/execenv/types/2 n: ulong 1785 /words/execenv/types/3 B: uchar array (sized, unsized view/edit, or text when only read) 1786 /words/execenv/types/4 off: ulong 1787 /words/execenv/types/5 m: ulong 1788 /words/execenv/result long 1789 /words/execenv/summary As execprog, but the child's environment is exactly the packed list B (count 1..64, at most 4096 bytes) instead of an empty one; both packets are checked (trap 3) first; returns only on failure. AArch64 and x86linux. Program mode only; failure is minus the Linux errno. 1790 /words/execenv/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3107-3108 1791 /words/execenv/citations/0/quote ret 233 1792 /words/execenv/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1209 1793 /words/execenv/citations/1/quote `execenv A off n B off m` 1794 /words/execenv/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1795 /words/execenv/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1796 /words/execenv/example limits 1797 /words/prlimit/table kw 1798 /words/prlimit/id 235 1799 /words/prlimit/category host-process 1800 /words/prlimit/profile OM-1 1801 /words/prlimit/form prlimit pid res A off n 1802 /words/prlimit/arity 5 1803 /words/prlimit/types/0 pid: int 1804 /words/prlimit/types/1 res: int 1805 /words/prlimit/types/2 A: uchar array (sized, unsized view/edit, or text when only read) 1806 /words/prlimit/types/3 off: ulong 1807 /words/prlimit/types/4 n: ulong 1808 /words/prlimit/result long 1809 /words/prlimit/summary Linux prlimit64 on pid (0 = this process): n 16 writes the old {rlim_cur, rlim_max} to A[off..off+16) as two little-endian u64; n 32 sets the pair read from A[off..off+16) and writes the old pair to A[off+16..off+32); any other n returns -22. Returns 0 or minus errno. Program mode only; failure is minus the Linux errno. 1810 /words/prlimit/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2726-2727 1811 /words/prlimit/citations/0/quote ret 235 1812 /words/prlimit/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1210 1813 /words/prlimit/citations/1/quote `prlimit pid res A off n` 1814 /words/prlimit/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1815 /words/prlimit/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1816 /words/prlimit/example limits 1817 /words/cpuset/table kw 1818 /words/cpuset/id 236 1819 /words/cpuset/category host-process 1820 /words/cpuset/profile OM-1 1821 /words/cpuset/form cpuset pid A off n 1822 /words/cpuset/arity 4 1823 /words/cpuset/types/0 pid: int 1824 /words/cpuset/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1825 /words/cpuset/types/2 off: ulong 1826 /words/cpuset/types/3 n: ulong 1827 /words/cpuset/result long 1828 /words/cpuset/summary sched_setaffinity from a byte mask slice (pid 0 = calling thread); 0 or minus errno; an empty permitted mask is -22. Program mode only; failure is minus the Linux errno. 1829 /words/cpuset/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2729-2730 1830 /words/cpuset/citations/0/quote ret 236 1831 /words/cpuset/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1211 1832 /words/cpuset/citations/1/quote `cpuset pid A off n` 1833 /words/cpuset/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1834 /words/cpuset/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1835 /words/cpuset/example sched 1836 /words/cpuget/table kw 1837 /words/cpuget/id 237 1838 /words/cpuget/category host-process 1839 /words/cpuget/profile OM-1 1840 /words/cpuget/form cpuget pid A off n 1841 /words/cpuget/arity 4 1842 /words/cpuget/types/0 pid: int 1843 /words/cpuget/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1844 /words/cpuget/types/2 off: ulong 1845 /words/cpuget/types/3 n: ulong 1846 /words/cpuget/result long 1847 /words/cpuget/summary sched_getaffinity into a writable byte mask slice; the count of bytes copied or minus errno. Program mode only; failure is minus the Linux errno. 1848 /words/cpuget/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2732-2733 1849 /words/cpuget/citations/0/quote ret 237 1850 /words/cpuget/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1212 1851 /words/cpuget/citations/1/quote `cpuget pid A off n` 1852 /words/cpuget/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1853 /words/cpuget/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1854 /words/cpuget/example sched 1855 /words/cpunow/table kw 1856 /words/cpunow/id 238 1857 /words/cpunow/category host-process 1858 /words/cpunow/profile OM-1 1859 /words/cpunow/form cpunow 1860 /words/cpunow/arity 0 1861 /words/cpunow/types [] 1862 /words/cpunow/result long 1863 /words/cpunow/summary getcpu: a snapshot of the CPU number, or minus errno. Program mode only; failure is minus the Linux errno. 1864 /words/cpunow/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2735-2736 1865 /words/cpunow/citations/0/quote ret 238 1866 /words/cpunow/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1213 1867 /words/cpunow/citations/1/quote `cpunow` 1868 /words/cpunow/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1869 /words/cpunow/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1870 /words/cpunow/example sched 1871 /words/setprio/table kw 1872 /words/setprio/id 239 1873 /words/setprio/category host-process 1874 /words/setprio/profile OM-1 1875 /words/setprio/form setprio which who priority 1876 /words/setprio/arity 3 1877 /words/setprio/types/0 which: int 1878 /words/setprio/types/1 who: int 1879 /words/setprio/types/2 priority: int 1880 /words/setprio/result long 1881 /words/setprio/summary setpriority (which 0, who 0 = this thread); 0 or minus errno; Linux privilege checks remain. Program mode only; failure is minus the Linux errno. 1882 /words/setprio/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2738-2739 1883 /words/setprio/citations/0/quote ret 239 1884 /words/setprio/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1214 1885 /words/setprio/citations/1/quote `setprio which who priority` 1886 /words/setprio/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1887 /words/setprio/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1888 /words/setprio/example sched 1889 /words/getprio/table kw 1890 /words/getprio/id 240 1891 /words/getprio/category host-process 1892 /words/getprio/profile OM-1 1893 /words/getprio/form getprio which who 1894 /words/getprio/arity 2 1895 /words/getprio/types/0 which: int 1896 /words/getprio/types/1 who: int 1897 /words/getprio/result long 1898 /words/getprio/summary getpriority: the raw kernel result 20 minus nice, or minus errno. Program mode only; failure is minus the Linux errno. 1899 /words/getprio/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2741-2742 1900 /words/getprio/citations/0/quote ret 240 1901 /words/getprio/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1215 1902 /words/getprio/citations/1/quote `getprio which who` 1903 /words/getprio/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1904 /words/getprio/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1905 /words/getprio/example sched 1906 /words/execpure/table kw 1907 /words/execpure/id 198 1908 /words/execpure/category host-process 1909 /words/execpure/profile OM-1 1910 /words/execpure/form execpure A off n 1911 /words/execpure/arity 3 1912 /words/execpure/types/0 A: uchar array (sized, unsized view/edit, or text when only read) 1913 /words/execpure/types/1 off: ulong 1914 /words/execpure/types/2 n: ulong 1915 /words/execpure/result long 1916 /words/execpure/summary As execprog, then run the executable through descriptor 3 under a fixed strict stdio profile (execveat AT_EMPTY_PATH); returns only on failure. AArch64 only (error 25 under target x86linux). Program mode only; failure is minus the Linux errno. 1917 /words/execpure/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2558-2559 1918 /words/execpure/citations/0/quote ret 198 1919 /words/execpure/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1208 1920 /words/execpure/citations/1/quote `execpure A off n` 1921 /words/execpure/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1140 1922 /words/execpure/citations/2/quote Offsets, byte counts, capacities and argument indices are `ulong` 1923 /words/execpure/example procs 1924 /words/pread/table kw 1925 /words/pread/id 161 1926 /words/pread/category host-file 1927 /words/pread/profile OM-1 1928 /words/pread/form pread fd A off n pos 1929 /words/pread/arity 5 1930 /words/pread/types/0 fd: int 1931 /words/pread/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1932 /words/pread/types/2 off: ulong 1933 /words/pread/types/3 n: ulong 1934 /words/pread/types/4 pos: long 1935 /words/pread/result long 1936 /words/pread/summary Read n bytes at file position pos into A[off..] without moving the descriptor offset; bytes read or -errno. 1937 /words/pread/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2660-2661 1938 /words/pread/citations/0/quote ret 161 1939 /words/pread/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:557 1940 /words/pread/citations/1/quote `pread fd A off n pos` / `pwrite fd A off n pos` (pos long) 1941 /words/pread/example files 1942 /words/pwrite/table kw 1943 /words/pwrite/id 162 1944 /words/pwrite/category host-file 1945 /words/pwrite/profile OM-1 1946 /words/pwrite/form pwrite fd A off n pos 1947 /words/pwrite/arity 5 1948 /words/pwrite/types/0 fd: int 1949 /words/pwrite/types/1 A: uchar array (sized, unsized view/edit, or text when only read) 1950 /words/pwrite/types/2 off: ulong 1951 /words/pwrite/types/3 n: ulong 1952 /words/pwrite/types/4 pos: long 1953 /words/pwrite/result long 1954 /words/pwrite/summary Write A[off..off+n-1] at file position pos without moving the descriptor offset; bytes written or -errno. 1955 /words/pwrite/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2663-2664 1956 /words/pwrite/citations/0/quote ret 162 1957 /words/pwrite/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:557 1958 /words/pwrite/citations/1/quote `pread fd A off n pos` / `pwrite fd A off n pos` (pos long) 1959 /words/pwrite/example files 1960 /words/devctl/table kw 1961 /words/devctl/id 166 1962 /words/devctl/category device 1963 /words/devctl/profile OM-1 1964 /words/devctl/form devctl fd request A off n 1965 /words/devctl/arity 5 1966 /words/devctl/types/0 fd: int 1967 /words/devctl/types/1 request: uint literal (FIONREAD 21531, an NVRM request, or one of the five aien-gpu ABI1 requests) 1968 /words/devctl/types/2 A: writable uchar array 1969 /words/devctl/types/3 off: ulong 1970 /words/devctl/types/4 n: ulong 1971 /words/devctl/result long 1972 /words/devctl/summary Checked Linux ioctl on an allowlisted request with its exact encoded size. Program mode, and OM-2 function units (error 9 in OM-1 function units). 1973 /words/devctl/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2675-2676 1974 /words/devctl/citations/0/quote ret 166 1975 /words/devctl/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:11 1976 /words/devctl/citations/1/quote `devctl fd request A off n` 1977 /words/devctl/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 1978 /words/devctl/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 1979 /words/devctl/example mapping 1980 /words/mapnew/table kw 1981 /words/mapnew/id 167 1982 /words/mapnew/category device 1983 /words/mapnew/profile OM-1 1984 /words/mapnew/form mapnew fd offset bytes access mode 1985 /words/mapnew/arity 5 1986 /words/mapnew/types/0 fd: int (-1 for anonymous) 1987 /words/mapnew/types/1 offset: ulong 1988 /words/mapnew/types/2 bytes: ulong 1989 /words/mapnew/types/3 access: int literal 1 or 3 1990 /words/mapnew/types/4 mode: int literal 1, 2, 33 or 34 1991 /words/mapnew/result long (handle) 1992 /words/mapnew/summary Map a file or anonymous memory; a positive owned handle or negative errno. Program mode, and OM-2 function units (error 9 in OM-1 function units). 1993 /words/mapnew/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2678-2679 1994 /words/mapnew/citations/0/quote ret 167 1995 /words/mapnew/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:12 1996 /words/mapnew/citations/1/quote `mapnew fd offset bytes access mode` 1997 /words/mapnew/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 1998 /words/mapnew/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 1999 /words/mapnew/example mapping 2000 /words/mapdrop/table kw 2001 /words/mapdrop/id 168 2002 /words/mapdrop/category device 2003 /words/mapdrop/profile OM-1 2004 /words/mapdrop/form mapdrop handle 2005 /words/mapdrop/arity 1 2006 /words/mapdrop/types/0 handle: long 2007 /words/mapdrop/result long 2008 /words/mapdrop/summary Unmap an owned mapping; 0 or negative errno. Program mode, and OM-2 function units (error 9 in OM-1 function units). 2009 /words/mapdrop/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2681-2682 2010 /words/mapdrop/citations/0/quote ret 168 2011 /words/mapdrop/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:13 2012 /words/mapdrop/citations/1/quote `mapdrop handle` 2013 /words/mapdrop/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 2014 /words/mapdrop/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 2015 /words/mapdrop/example mapping 2016 /words/mapread/table kw 2017 /words/mapread/id 169 2018 /words/mapread/category device 2019 /words/mapread/profile OM-1 2020 /words/mapread/form mapread handle offset A off n 2021 /words/mapread/arity 5 2022 /words/mapread/types/0 handle: long 2023 /words/mapread/types/1 offset: ulong 2024 /words/mapread/types/2 A: writable uchar array 2025 /words/mapread/types/3 off: ulong 2026 /words/mapread/types/4 n: ulong 2027 /words/mapread/result long 2028 /words/mapread/summary Copy n bytes from the mapping into A; return n. Program mode, and OM-2 function units (error 9 in OM-1 function units). 2029 /words/mapread/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2684-2685 2030 /words/mapread/citations/0/quote ret 169 2031 /words/mapread/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:14 2032 /words/mapread/citations/1/quote `mapread handle offset A off n` 2033 /words/mapread/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 2034 /words/mapread/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 2035 /words/mapread/example mapping 2036 /words/mapwrite/table kw 2037 /words/mapwrite/id 170 2038 /words/mapwrite/category device 2039 /words/mapwrite/profile OM-1 2040 /words/mapwrite/form mapwrite handle offset A off n 2041 /words/mapwrite/arity 5 2042 /words/mapwrite/types/0 handle: long 2043 /words/mapwrite/types/1 offset: ulong 2044 /words/mapwrite/types/2 A: uchar array (text and views accepted) 2045 /words/mapwrite/types/3 off: ulong 2046 /words/mapwrite/types/4 n: ulong 2047 /words/mapwrite/result long 2048 /words/mapwrite/summary Copy n bytes from A into a writable mapping; return n. Program mode, and OM-2 function units (error 9 in OM-1 function units). 2049 /words/mapwrite/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2687-2688 2050 /words/mapwrite/citations/0/quote ret 170 2051 /words/mapwrite/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:15 2052 /words/mapwrite/citations/1/quote `mapwrite handle offset A off n` 2053 /words/mapwrite/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 2054 /words/mapwrite/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 2055 /words/mapwrite/example mapping 2056 /words/devcall/table kw 2057 /words/devcall/id 171 2058 /words/devcall/category device 2059 /words/devcall/profile OM-1 2060 /words/devcall/form devcall fd request H hoff 32 P poff n 2061 /words/devcall/arity 8 2062 /words/devcall/types/0 fd: int 2063 /words/devcall/types/1 request: uint literal (RM_ALLOC or RM_CONTROL) 2064 /words/devcall/types/2 H: writable uchar array 2065 /words/devcall/types/3 hoff: ulong 2066 /words/devcall/types/4 32: header length 2067 /words/devcall/types/5 P: writable uchar array 2068 /words/devcall/types/6 poff: ulong 2069 /words/devcall/types/7 n: ulong (at most `1048576`; larger traps 3) 2070 /words/devcall/result long 2071 /words/devcall/summary Checked NVIDIA RM_ALLOC / RM_CONTROL call with a private header and a bounded parameter span. Program mode, and OM-2 function units (error 9 in OM-1 function units). 2072 /words/devcall/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2690-2691 2073 /words/devcall/citations/0/quote ret 171 2074 /words/devcall/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:16 2075 /words/devcall/citations/1/quote `devcall fd request H hoff 32 P poff n` 2076 /words/devcall/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 2077 /words/devcall/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 2078 /words/devcall/example mapping 2079 /words/uvmctl/table kw 2080 /words/uvmctl/id 172 2081 /words/uvmctl/category device 2082 /words/uvmctl/profile OM-1 2083 /words/uvmctl/form uvmctl fd command A off n 2084 /words/uvmctl/arity 5 2085 /words/uvmctl/types/0 fd: int 2086 /words/uvmctl/types/1 command: uint literal from the UVM allowlist 2087 /words/uvmctl/types/2 A: writable uchar array 2088 /words/uvmctl/types/3 off: ulong 2089 /words/uvmctl/types/4 n: ulong (the request's exact payload length) 2090 /words/uvmctl/result long 2091 /words/uvmctl/summary Allowlisted Linux UVM ioctl with its exact writable payload. Program mode, and OM-2 function units (error 9 in OM-1 function units). 2092 /words/uvmctl/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2693-2694 2093 /words/uvmctl/citations/0/quote ret 172 2094 /words/uvmctl/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:17 2095 /words/uvmctl/citations/1/quote `uvmctl fd command A off n` 2096 /words/uvmctl/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 2097 /words/uvmctl/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 2098 /words/uvmctl/example mapping 2099 /words/mapaddr/table kw 2100 /words/mapaddr/id 173 2101 /words/mapaddr/category device 2102 /words/mapaddr/profile OM-1 2103 /words/mapaddr/form mapaddr handle 2104 /words/mapaddr/arity 1 2105 /words/mapaddr/types/0 handle: long 2106 /words/mapaddr/result ulong 2107 /words/mapaddr/summary Base address of an owned live mapping or reservation (no access through it). Program mode, and OM-2 function units (error 9 in OM-1 function units). 2108 /words/mapaddr/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2696-2697 2109 /words/mapaddr/citations/0/quote ret 173 2110 /words/mapaddr/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:23 2111 /words/mapaddr/citations/1/quote `mapaddr handle` 2112 /words/mapaddr/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 2113 /words/mapaddr/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 2114 /words/mapaddr/example mapping 2115 /words/mapget/table kw 2116 /words/mapget/id 174 2117 /words/mapget/category device 2118 /words/mapget/profile OM-1 2119 /words/mapget/form mapget handle offset width 2120 /words/mapget/arity 3 2121 /words/mapget/types/0 handle: long 2122 /words/mapget/types/1 offset: ulong 2123 /words/mapget/types/2 width: int literal 4 or 8 2124 /words/mapget/result ulong 2125 /words/mapget/summary One aligned 32- or 64-bit load from a readable mapping. Program mode, and OM-2 function units (error 9 in OM-1 function units). 2126 /words/mapget/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2699-2700 2127 /words/mapget/citations/0/quote ret 174 2128 /words/mapget/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:24 2129 /words/mapget/citations/1/quote `mapget handle offset width` 2130 /words/mapget/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 2131 /words/mapget/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 2132 /words/mapget/example mapping 2133 /words/mapset/table kw 2134 /words/mapset/id 175 2135 /words/mapset/category device 2136 /words/mapset/profile OM-1 2137 /words/mapset/form mapset handle offset width value 2138 /words/mapset/arity 4 2139 /words/mapset/types/0 handle: long 2140 /words/mapset/types/1 offset: ulong 2141 /words/mapset/types/2 width: int literal 4 or 8 2142 /words/mapset/types/3 value: ulong 2143 /words/mapset/result long 2144 /words/mapset/summary One aligned 32- or 64-bit store into a writable mapping; returns 0. Program mode, and OM-2 function units (error 9 in OM-1 function units). 2145 /words/mapset/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2702-2703 2146 /words/mapset/citations/0/quote ret 175 2147 /words/mapset/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:25 2148 /words/mapset/citations/1/quote `mapset handle offset width value` 2149 /words/mapset/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 2150 /words/mapset/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 2151 /words/mapset/example mapping 2152 /words/maphold/table kw 2153 /words/maphold/id 176 2154 /words/maphold/category device 2155 /words/maphold/profile OM-1 2156 /words/maphold/form maphold address bytes 2157 /words/maphold/arity 2 2158 /words/maphold/types/0 address: ulong (at least 64 KiB, span below 1 TiB) 2159 /words/maphold/types/1 bytes: ulong 2160 /words/maphold/result long (handle) 2161 /words/maphold/summary Reserve an unused page-aligned span (PROT_NONE, MAP_FIXED_NOREPLACE). Program mode, and OM-2 function units (error 9 in OM-1 function units). 2162 /words/maphold/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2705-2706 2163 /words/maphold/citations/0/quote ret 176 2164 /words/maphold/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:26 2165 /words/maphold/citations/1/quote `maphold address bytes` 2166 /words/maphold/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 2167 /words/maphold/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 2168 /words/maphold/example mapping 2169 /words/vfioctl/table kw 2170 /words/vfioctl/id 228 2171 /words/vfioctl/category device 2172 /words/vfioctl/profile OM-1 2173 /words/vfioctl/form vfioctl fd request A off n 2174 /words/vfioctl/arity 5 2175 /words/vfioctl/types/0 fd: int 2176 /words/vfioctl/types/1 request: uint literal from the VFIO allowlist 2177 /words/vfioctl/types/2 A: uchar array 2178 /words/vfioctl/types/3 off: ulong 2179 /words/vfioctl/types/4 n: ulong (the request's exact byte count) 2180 /words/vfioctl/result long 2181 /words/vfioctl/summary Allowlisted VFIO ioctl with its exact byte count (argsz is written for spans of 8 bytes or more); signed Linux ioctl result. Program mode only, AArch64 Linux. 2182 /words/vfioctl/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2711-2712 2183 /words/vfioctl/citations/0/quote ret 228 2184 /words/vfioctl/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:18 2185 /words/vfioctl/citations/1/quote `vfioctl fd request A off n` 2186 /words/vfioctl/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:207-208 2187 /words/vfioctl/citations/2/quote These additions are program-mode only; hosted x86 VFIO and function-mode VFIO are not implemented. 2188 /words/vfioctl/example vfio 2189 /words/vfiomap/table kw 2190 /words/vfiomap/id 229 2191 /words/vfiomap/category device 2192 /words/vfiomap/profile OM-1 2193 /words/vfiomap/form vfiomap fd A off 32 2194 /words/vfiomap/arity 4 2195 /words/vfiomap/types/0 fd: int 2196 /words/vfiomap/types/1 A: uchar array holding a vfio_region_info 2197 /words/vfiomap/types/2 off: ulong 2198 /words/vfiomap/types/3 32: record length 2199 /words/vfiomap/result long (handle) 2200 /words/vfiomap/summary Read-only shared mapping of exactly one VFIO region; region flags without READ and MMAP, or a size of zero, trap 3. A handle or negative errno. Program mode only, AArch64 Linux. 2201 /words/vfiomap/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2714-2715 2202 /words/vfiomap/citations/0/quote ret 229 2203 /words/vfiomap/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:19 2204 /words/vfiomap/citations/1/quote `vfiomap fd A off 32` 2205 /words/vfiomap/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:207-208 2206 /words/vfiomap/citations/2/quote These additions are program-mode only; hosted x86 VFIO and function-mode VFIO are not implemented. 2207 /words/vfiomap/example vfio 2208 /words/vfiomapw/table kw 2209 /words/vfiomapw/id 230 2210 /words/vfiomapw/category device 2211 /words/vfiomapw/profile OM-1 2212 /words/vfiomapw/form vfiomapw fd A off 32 2213 /words/vfiomapw/arity 4 2214 /words/vfiomapw/types/0 fd: int 2215 /words/vfiomapw/types/1 A: uchar array holding a vfio_region_info 2216 /words/vfiomapw/types/2 off: ulong 2217 /words/vfiomapw/types/3 32: record length 2218 /words/vfiomapw/result long (handle) 2219 /words/vfiomapw/summary As vfiomap, but the region flags must also contain WRITE and the mapping is read/write (mapget/mapset drive device registers). Program mode only, AArch64 Linux. 2220 /words/vfiomapw/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2717-2718 2221 /words/vfiomapw/citations/0/quote ret 230 2222 /words/vfiomapw/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:20 2223 /words/vfiomapw/citations/1/quote `vfiomapw fd A off 32` 2224 /words/vfiomapw/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:207-208 2225 /words/vfiomapw/citations/2/quote These additions are program-mode only; hosted x86 VFIO and function-mode VFIO are not implemented. 2226 /words/vfiomapw/example vfio 2227 /words/eventfd/table kw 2228 /words/eventfd/id 231 2229 /words/eventfd/category device 2230 /words/eventfd/profile OM-1 2231 /words/eventfd/form eventfd initial 2232 /words/eventfd/arity 1 2233 /words/eventfd/types/0 initial: uint 2234 /words/eventfd/result long 2235 /words/eventfd/summary Create a Linux eventfd (CLOEXEC, NONBLOCK, no semaphore mode); read/write exactly eight bytes, close with fclose. An fd or negative errno. Program mode only, AArch64 Linux. 2236 /words/eventfd/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2720-2721 2237 /words/eventfd/citations/0/quote ret 231 2238 /words/eventfd/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:21 2239 /words/eventfd/citations/1/quote `eventfd initial` 2240 /words/eventfd/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:207-208 2241 /words/eventfd/citations/2/quote These additions are program-mode only; hosted x86 VFIO and function-mode VFIO are not implemented. 2242 /words/eventfd/example vfio 2243 /words/vfioirq/table kw 2244 /words/vfioirq/id 232 2245 /words/vfioirq/category device 2246 /words/vfioirq/profile OM-1 2247 /words/vfioirq/form vfioirq fd request A off n 2248 /words/vfioirq/arity 5 2249 /words/vfioirq/types/0 fd: int from a successful vfioctl GROUP_GET_DEVICE_FD 2250 /words/vfioirq/types/1 request: uint literal 15213 (GET_IRQ_INFO) or 15214 (SET_IRQS) 2251 /words/vfioirq/types/2 A: writable uchar array 2252 /words/vfioirq/types/3 off: ulong 2253 /words/vfioirq/types/4 n: ulong (checked against the caller's argsz) 2254 /words/vfioirq/result long 2255 /words/vfioirq/summary Typed VFIO IRQ ioctl: an fd that is not an acquired VFIO device, or a malformed form, traps 3 before the ioctl. Program mode only, AArch64 Linux. 2256 /words/vfioirq/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2723-2724 2257 /words/vfioirq/citations/0/quote ret 232 2258 /words/vfioirq/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:22 2259 /words/vfioirq/citations/1/quote `vfioirq fd request A off n` 2260 /words/vfioirq/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:207-208 2261 /words/vfioirq/citations/2/quote These additions are program-mode only; hosted x86 VFIO and function-mode VFIO are not implemented. 2262 /words/vfioirq/example vfioirq_trap 2263 /words/mapbind/table kw 2264 /words/mapbind/id 177 2265 /words/mapbind/category device 2266 /words/mapbind/profile OM-1 2267 /words/mapbind/form mapbind handle fd offset access 2268 /words/mapbind/arity 4 2269 /words/mapbind/types/0 handle: long 2270 /words/mapbind/types/1 fd: int 2271 /words/mapbind/types/2 offset: ulong 2272 /words/mapbind/types/3 access: int literal 1 or 3 2273 /words/mapbind/result long 2274 /words/mapbind/summary Bind a shared file or device mapping over a whole owned reservation. Program mode, and OM-2 function units (error 9 in OM-1 function units). 2275 /words/mapbind/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2708-2709 2276 /words/mapbind/citations/0/quote ret 177 2277 /words/mapbind/citations/1/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:27 2278 /words/mapbind/citations/1/quote `mapbind handle fd offset access` 2279 /words/mapbind/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:91-92 2280 /words/mapbind/citations/2/quote An OM-2 function unit (first line `om2`, no `fn main`) may also use `devctl` 2281 /words/mapbind/example mapping 2282 /words/cpufence/table kw 2283 /words/cpufence/id 199 2284 /words/cpufence/category device 2285 /words/cpufence/profile OM-1 2286 /words/cpufence/form cpufence 2287 /words/cpufence/arity 0 2288 /words/cpufence/types [] 2289 /words/cpufence/result - 2290 /words/cpufence/summary Statement: host CPU publication barrier; every load and store before it completes before any after it (AArch64 DSB SY, x86-64 MFENCE). Accepted in function and program mode. 2291 /words/cpufence/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3095-3096 2292 /words/cpufence/citations/0/quote ret 199 2293 /words/cpufence/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1476 2294 /words/cpufence/citations/1/quote `cpufence` | Publication barrier (keyword id 199). 2295 /words/cpufence/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:28 2296 /words/cpufence/citations/2/quote `cpufence` | Statement, keyword 199 2297 /words/cpufence/example cpu_order 2298 /words/cpurelax/table kw 2299 /words/cpurelax/id 200 2300 /words/cpurelax/category device 2301 /words/cpurelax/profile OM-1 2302 /words/cpurelax/form cpurelax 2303 /words/cpurelax/arity 0 2304 /words/cpurelax/types [] 2305 /words/cpurelax/result - 2306 /words/cpurelax/summary Statement: spin-wait hint for a bounded poll loop, no ordering (AArch64 YIELD, x86-64 PAUSE). Accepted in function and program mode. 2307 /words/cpurelax/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3098-3099 2308 /words/cpurelax/citations/0/quote ret 200 2309 /words/cpurelax/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1477 2310 /words/cpurelax/citations/1/quote `cpurelax` | Spin-wait hint, no ordering (keyword id 200). 2311 /words/cpurelax/citations/2/ref omega-mv@`6c562dd1` seed/host/MAPPING.md:29 2312 /words/cpurelax/citations/2/quote `cpurelax` | Statement, keyword 200 2313 /words/cpurelax/example cpu_order 2314 /words/kfdres/table kw 2315 /words/kfdres/id 243 2316 /words/kfdres/category device 2317 /words/kfdres/profile OM-1 2318 /words/kfdres/form kfdres n 2319 /words/kfdres/arity 1 2320 /words/kfdres/types/0 n: ulong (nonzero multiple of 4096; otherwise trap 3) 2321 /words/kfdres/result long (handle) 2322 /words/kfdres/summary Reserve n bytes of address space with no access (PROT_NONE) at a kernel-chosen address aligned to 2 MiB; no memory is committed. A positive owned handle or negative errno. Program mode only, Linux (error 9 in function mode, error 25 on firmware targets). 2323 /words/kfdres/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2750-2751 2324 /words/kfdres/citations/0/quote ret 243 2325 /words/kfdres/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1373 2326 /words/kfdres/citations/1/quote `kfdres n` reserves a nonzero, 4096-byte-multiple `ulong` length 2327 /words/kfdres/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1368 2328 /words/kfdres/citations/2/quote Program-mode Linux only: native AArch64 and `target x86linux`. 2329 /words/kfdres/example kfd 2330 /words/kfdmap/table kw 2331 /words/kfdmap/id 242 2332 /words/kfdmap/category device 2333 /words/kfdmap/profile OM-1 2334 /words/kfdmap/form kfdmap fd offset n 2335 /words/kfdmap/arity 3 2336 /words/kfdmap/types/0 fd: int (a DRM render descriptor or /dev/kfd; any other descriptor traps 3) 2337 /words/kfdmap/types/1 offset: ulong 2338 /words/kfdmap/types/2 n: ulong (zero traps 3) 2339 /words/kfdmap/result long (handle) 2340 /words/kfdmap/summary Map n bytes of an AMD device read/write and shared at a kernel-chosen address. A positive owned handle or negative errno. Program mode only, Linux (error 9 in function mode, error 25 on firmware targets). 2341 /words/kfdmap/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2747-2748 2342 /words/kfdmap/citations/0/quote ret 242 2343 /words/kfdmap/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1378 2344 /words/kfdmap/citations/1/quote `kfdmap fd offset n` maps `n` bytes read/write and shared 2345 /words/kfdmap/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1368 2346 /words/kfdmap/citations/2/quote Program-mode Linux only: native AArch64 and `target x86linux`. 2347 /words/kfdmap/example kfdmap_trap 2348 /words/kfdctl/table kw 2349 /words/kfdctl/id 241 2350 /words/kfdctl/category device 2351 /words/kfdctl/profile OM-1 2352 /words/kfdctl/form kfdctl fd request H off n [SUFFIX] 2353 /words/kfdctl/arity 5 2354 /words/kfdctl/types/0 fd: int 2355 /words/kfdctl/types/1 request: uint literal from the KFD allowlist (another request is error 9) 2356 /words/kfdctl/types/2 H: writable uchar array 2357 /words/kfdctl/types/3 off: ulong 2358 /words/kfdctl/types/4 n: ulong (the request's exact record length; a literal of another length is error 9) 2359 /words/kfdctl/types/5 SUFFIX: fixed by the request. None for GET_VERSION, ACQUIRE_VM, DESTROY_QUEUE, FREE_MEMORY_OF_GPU, CREATE_EVENT and DESTROY_EVENT; a span `P poff pn` for GET_PROCESS_APERTURES_NEW, MAP_MEMORY_TO_GPU, UNMAP_MEMORY_FROM_GPU and WAIT_EVENTS; one reservation handle for ALLOC_MEMORY_OF_GPU and SET_SCRATCH_BACKING_VA; five handles `ring wptr rptr eop ctx` for CREATE_QUEUE 2360 /words/kfdctl/result long 2361 /words/kfdctl/summary Allowlisted AMD KFD ioctl through a private copy of the header; every address the kernel receives comes from a checked span or a live owned handle, and caller address fields must be zero (trap 3). The ioctl result or negative errno. Program mode only, Linux (error 9 in function mode, error 25 on firmware targets). 2362 /words/kfdctl/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2744-2745 2363 /words/kfdctl/citations/0/quote ret 241 2364 /words/kfdctl/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1387 2365 /words/kfdctl/citations/1/quote `kfdctl fd request H off n ...` uses a writable `uchar` header span. 2366 /words/kfdctl/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1368 2367 /words/kfdctl/citations/2/quote Program-mode Linux only: native AArch64 and `target x86linux`. 2368 /words/kfdctl/example kfd 2369 /words/bool/table kw 2370 /words/bool/id 1 2371 /words/bool/category type 2372 /words/bool/profile OM-1 2373 /words/bool/form bool VALUE (conversion) | NAME bool (parameter) | to bool (result) 2374 /words/bool/arity 1 2375 /words/bool/types/0 VALUE: any integer, float or bool value 2376 /words/bool/result bool 2377 /words/bool/summary Type word: bool (true 1, false 0), sizeof 1; never an array element. As a prefix it converts a value, trapping 5 when out of range. 2378 /words/bool/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2756-2757 2379 /words/bool/citations/0/quote ret 1 2380 /words/bool/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:519 2381 /words/bool/citations/1/quote `true` and `false` are the bool numbers 1 and 0. 2382 /words/bool/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2383 /words/bool/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2384 /words/bool/example control 2385 /words/uchar/table kw 2386 /words/uchar/id 2 2387 /words/uchar/category type 2388 /words/uchar/profile OM-1 2389 /words/uchar/form uchar VALUE (conversion) | NAME uchar (parameter) | to uchar (result) 2390 /words/uchar/arity 1 2391 /words/uchar/types/0 VALUE: any integer, float or bool value 2392 /words/uchar/result uchar 2393 /words/uchar/summary Type word: unsigned 8-bit integer, sizeof 1. Arithmetic wraps modulo 2^width. As a prefix it converts a value, trapping 5 when out of range. 2394 /words/uchar/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2759-2760 2395 /words/uchar/citations/0/quote ret 2 2396 /words/uchar/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2397 /words/uchar/citations/1/quote (uchar 8, ushort 16, uint 32, ulong 64 bits) 2398 /words/uchar/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2399 /words/uchar/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2400 /words/uchar/example ints 2401 /words/u8/table kw 2402 /words/u8/id 2 2403 /words/u8/category type 2404 /words/u8/profile OM-1 2405 /words/u8/form u8 VALUE (conversion) | NAME u8 (parameter) | to u8 (result) 2406 /words/u8/arity 1 2407 /words/u8/types/0 VALUE: any integer, float or bool value 2408 /words/u8/result uchar 2409 /words/u8/summary Alias of uchar (same keyword id): unsigned 8-bit, sizeof 1. Arithmetic wraps modulo 2^width. As a prefix it converts a value, trapping 5 when out of range. 2410 /words/u8/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2762-2763 2411 /words/u8/citations/0/quote ret 2 2412 /words/u8/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2413 /words/u8/citations/1/quote (uchar 8, ushort 16, uint 32, ulong 64 bits) 2414 /words/u8/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2415 /words/u8/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2416 /words/u8/example ints 2417 /words/ushort/table kw 2418 /words/ushort/id 3 2419 /words/ushort/category type 2420 /words/ushort/profile OM-1 2421 /words/ushort/form ushort VALUE (conversion) | NAME ushort (parameter) | to ushort (result) 2422 /words/ushort/arity 1 2423 /words/ushort/types/0 VALUE: any integer, float or bool value 2424 /words/ushort/result ushort 2425 /words/ushort/summary Type word: unsigned 16-bit integer, sizeof 2. Arithmetic wraps modulo 2^width. As a prefix it converts a value, trapping 5 when out of range. 2426 /words/ushort/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2765-2766 2427 /words/ushort/citations/0/quote ret 3 2428 /words/ushort/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2429 /words/ushort/citations/1/quote (uchar 8, ushort 16, uint 32, ulong 64 bits) 2430 /words/ushort/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2431 /words/ushort/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2432 /words/ushort/example ints 2433 /words/u16/table kw 2434 /words/u16/id 3 2435 /words/u16/category type 2436 /words/u16/profile OM-1 2437 /words/u16/form u16 VALUE (conversion) | NAME u16 (parameter) | to u16 (result) 2438 /words/u16/arity 1 2439 /words/u16/types/0 VALUE: any integer, float or bool value 2440 /words/u16/result ushort 2441 /words/u16/summary Alias of ushort (same keyword id): unsigned 16-bit, sizeof 2. Arithmetic wraps modulo 2^width. As a prefix it converts a value, trapping 5 when out of range. 2442 /words/u16/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2768-2769 2443 /words/u16/citations/0/quote ret 3 2444 /words/u16/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2445 /words/u16/citations/1/quote (uchar 8, ushort 16, uint 32, ulong 64 bits) 2446 /words/u16/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2447 /words/u16/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2448 /words/u16/example ints 2449 /words/uint/table kw 2450 /words/uint/id 4 2451 /words/uint/category type 2452 /words/uint/profile OM-1 2453 /words/uint/form uint VALUE (conversion) | NAME uint (parameter) | to uint (result) 2454 /words/uint/arity 1 2455 /words/uint/types/0 VALUE: any integer, float or bool value 2456 /words/uint/result uint 2457 /words/uint/summary Type word: unsigned 32-bit integer, sizeof 4. Arithmetic wraps modulo 2^width. As a prefix it converts a value, trapping 5 when out of range. 2458 /words/uint/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2771-2772 2459 /words/uint/citations/0/quote ret 4 2460 /words/uint/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2461 /words/uint/citations/1/quote (uchar 8, ushort 16, uint 32, ulong 64 bits) 2462 /words/uint/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2463 /words/uint/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2464 /words/uint/example ints 2465 /words/u32/table kw 2466 /words/u32/id 4 2467 /words/u32/category type 2468 /words/u32/profile OM-1 2469 /words/u32/form u32 VALUE (conversion) | NAME u32 (parameter) | to u32 (result) 2470 /words/u32/arity 1 2471 /words/u32/types/0 VALUE: any integer, float or bool value 2472 /words/u32/result uint 2473 /words/u32/summary Alias of uint (same keyword id): unsigned 32-bit, sizeof 4. Arithmetic wraps modulo 2^width. As a prefix it converts a value, trapping 5 when out of range. 2474 /words/u32/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2774-2775 2475 /words/u32/citations/0/quote ret 4 2476 /words/u32/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2477 /words/u32/citations/1/quote (uchar 8, ushort 16, uint 32, ulong 64 bits) 2478 /words/u32/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2479 /words/u32/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2480 /words/u32/example ints 2481 /words/ulong/table kw 2482 /words/ulong/id 5 2483 /words/ulong/category type 2484 /words/ulong/profile OM-1 2485 /words/ulong/form ulong VALUE (conversion) | NAME ulong (parameter) | to ulong (result) 2486 /words/ulong/arity 1 2487 /words/ulong/types/0 VALUE: any integer, float or bool value 2488 /words/ulong/result ulong 2489 /words/ulong/summary Type word: unsigned 64-bit integer, sizeof 8. Arithmetic wraps modulo 2^width. As a prefix it converts a value, trapping 5 when out of range. 2490 /words/ulong/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2777-2778 2491 /words/ulong/citations/0/quote ret 5 2492 /words/ulong/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2493 /words/ulong/citations/1/quote (uchar 8, ushort 16, uint 32, ulong 64 bits) 2494 /words/ulong/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2495 /words/ulong/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2496 /words/ulong/example ints 2497 /words/u64/table kw 2498 /words/u64/id 5 2499 /words/u64/category type 2500 /words/u64/profile OM-1 2501 /words/u64/form u64 VALUE (conversion) | NAME u64 (parameter) | to u64 (result) 2502 /words/u64/arity 1 2503 /words/u64/types/0 VALUE: any integer, float or bool value 2504 /words/u64/result ulong 2505 /words/u64/summary Alias of ulong (same keyword id): unsigned 64-bit, sizeof 8. Arithmetic wraps modulo 2^width. As a prefix it converts a value, trapping 5 when out of range. 2506 /words/u64/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2780-2781 2507 /words/u64/citations/0/quote ret 5 2508 /words/u64/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2509 /words/u64/citations/1/quote (uchar 8, ushort 16, uint 32, ulong 64 bits) 2510 /words/u64/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2511 /words/u64/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2512 /words/u64/example ints 2513 /words/byte/table kw 2514 /words/byte/id 6 2515 /words/byte/category type 2516 /words/byte/profile OM-1 2517 /words/byte/form byte VALUE (conversion) | NAME byte (parameter) | to byte (result) 2518 /words/byte/arity 1 2519 /words/byte/types/0 VALUE: any integer, float or bool value 2520 /words/byte/result byte 2521 /words/byte/summary Type word: signed 8-bit integer, sizeof 1. Signed add/sub/mul/neg/div/shl trap 1 on overflow. As a prefix it converts a value, trapping 5 when out of range. 2522 /words/byte/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2783-2784 2523 /words/byte/citations/0/quote ret 6 2524 /words/byte/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:505 2525 /words/byte/citations/1/quote (byte 8, 2526 /words/byte/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2527 /words/byte/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2528 /words/byte/example ints 2529 /words/i8/table kw 2530 /words/i8/id 6 2531 /words/i8/category type 2532 /words/i8/profile OM-1 2533 /words/i8/form i8 VALUE (conversion) | NAME i8 (parameter) | to i8 (result) 2534 /words/i8/arity 1 2535 /words/i8/types/0 VALUE: any integer, float or bool value 2536 /words/i8/result byte 2537 /words/i8/summary Alias of byte (same keyword id): signed 8-bit, sizeof 1. Signed add/sub/mul/neg/div/shl trap 1 on overflow. As a prefix it converts a value, trapping 5 when out of range. 2538 /words/i8/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2786-2787 2539 /words/i8/citations/0/quote ret 6 2540 /words/i8/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:505 2541 /words/i8/citations/1/quote (byte 8, 2542 /words/i8/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2543 /words/i8/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2544 /words/i8/example ints 2545 /words/short/table kw 2546 /words/short/id 7 2547 /words/short/category type 2548 /words/short/profile OM-1 2549 /words/short/form short VALUE (conversion) | NAME short (parameter) | to short (result) 2550 /words/short/arity 1 2551 /words/short/types/0 VALUE: any integer, float or bool value 2552 /words/short/result short 2553 /words/short/summary Type word: signed 16-bit integer, sizeof 2. Signed add/sub/mul/neg/div/shl trap 1 on overflow. As a prefix it converts a value, trapping 5 when out of range. 2554 /words/short/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2789-2790 2555 /words/short/citations/0/quote ret 7 2556 /words/short/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:505 2557 /words/short/citations/1/quote (byte 8, 2558 /words/short/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2559 /words/short/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2560 /words/short/example ints 2561 /words/i16/table kw 2562 /words/i16/id 7 2563 /words/i16/category type 2564 /words/i16/profile OM-1 2565 /words/i16/form i16 VALUE (conversion) | NAME i16 (parameter) | to i16 (result) 2566 /words/i16/arity 1 2567 /words/i16/types/0 VALUE: any integer, float or bool value 2568 /words/i16/result short 2569 /words/i16/summary Alias of short (same keyword id): signed 16-bit, sizeof 2. Signed add/sub/mul/neg/div/shl trap 1 on overflow. As a prefix it converts a value, trapping 5 when out of range. 2570 /words/i16/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2792-2793 2571 /words/i16/citations/0/quote ret 7 2572 /words/i16/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:505 2573 /words/i16/citations/1/quote (byte 8, 2574 /words/i16/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2575 /words/i16/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2576 /words/i16/example ints 2577 /words/int/table kw 2578 /words/int/id 8 2579 /words/int/category type 2580 /words/int/profile OM-1 2581 /words/int/form int VALUE (conversion) | NAME int (parameter) | to int (result) 2582 /words/int/arity 1 2583 /words/int/types/0 VALUE: any integer, float or bool value 2584 /words/int/result int 2585 /words/int/summary Type word: signed 32-bit integer, sizeof 4. Signed add/sub/mul/neg/div/shl trap 1 on overflow. As a prefix it converts a value, trapping 5 when out of range. 2586 /words/int/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2795-2796 2587 /words/int/citations/0/quote ret 8 2588 /words/int/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:505 2589 /words/int/citations/1/quote (byte 8, 2590 /words/int/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2591 /words/int/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2592 /words/int/example hello 2593 /words/i32/table kw 2594 /words/i32/id 8 2595 /words/i32/category type 2596 /words/i32/profile OM-1 2597 /words/i32/form i32 VALUE (conversion) | NAME i32 (parameter) | to i32 (result) 2598 /words/i32/arity 1 2599 /words/i32/types/0 VALUE: any integer, float or bool value 2600 /words/i32/result int 2601 /words/i32/summary Alias of int (same keyword id): signed 32-bit, sizeof 4. Signed add/sub/mul/neg/div/shl trap 1 on overflow. As a prefix it converts a value, trapping 5 when out of range. 2602 /words/i32/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2798-2799 2603 /words/i32/citations/0/quote ret 8 2604 /words/i32/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:505 2605 /words/i32/citations/1/quote (byte 8, 2606 /words/i32/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2607 /words/i32/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2608 /words/i32/example ints 2609 /words/long/table kw 2610 /words/long/id 9 2611 /words/long/category type 2612 /words/long/profile OM-1 2613 /words/long/form long VALUE (conversion) | NAME long (parameter) | to long (result) 2614 /words/long/arity 1 2615 /words/long/types/0 VALUE: any integer, float or bool value 2616 /words/long/result long 2617 /words/long/summary Type word: signed 64-bit integer, sizeof 8. Signed add/sub/mul/neg/div/shl trap 1 on overflow. As a prefix it converts a value, trapping 5 when out of range. 2618 /words/long/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2801-2802 2619 /words/long/citations/0/quote ret 9 2620 /words/long/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:505 2621 /words/long/citations/1/quote (byte 8, 2622 /words/long/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2623 /words/long/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2624 /words/long/example ints 2625 /words/i64/table kw 2626 /words/i64/id 9 2627 /words/i64/category type 2628 /words/i64/profile OM-1 2629 /words/i64/form i64 VALUE (conversion) | NAME i64 (parameter) | to i64 (result) 2630 /words/i64/arity 1 2631 /words/i64/types/0 VALUE: any integer, float or bool value 2632 /words/i64/result long 2633 /words/i64/summary Alias of long (same keyword id): signed 64-bit, sizeof 8. Signed add/sub/mul/neg/div/shl trap 1 on overflow. As a prefix it converts a value, trapping 5 when out of range. 2634 /words/i64/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2804-2805 2635 /words/i64/citations/0/quote ret 9 2636 /words/i64/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:505 2637 /words/i64/citations/1/quote (byte 8, 2638 /words/i64/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:511 2639 /words/i64/citations/2/quote A conversion ` v` traps 5 when the value is outside the new type. 2640 /words/i64/example ints 2641 /words/qty/table kw 2642 /words/qty/id 223 2643 /words/qty/category type 2644 /words/qty/profile OM-1 2645 /words/qty/form qty VALUE (conversion) | NAME qty (parameter) | to qty (result) 2646 /words/qty/arity 1 2647 /words/qty/types/0 VALUE: an integer value 2648 /words/qty/result qty 2649 /words/qty/summary Type word: unsigned quantity 0..2^64-1. add, sub and mul are checked and trap 1 when the exact result leaves that range; mixing a quantity with a modular word (ulong etc.) is error 7. Convert explicitly: `qty w`, `ulong q`. 2650 /words/qty/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3092-3093 2651 /words/qty/citations/0/quote ret 223 2652 /words/qty/citations/1/ref omega-mv@`6c562dd1` spec/quantities-and-modular.md:41 2653 /words/qty/citations/1/quote Arithmetic operations are checked at runtime. 2654 /words/qty/citations/2/ref omega-mv@`6c562dd1` spec/quantities-and-modular.md:59 2655 /words/qty/citations/2/quote is rejected at compile time (error 7) 2656 /words/qty/citations/3/ref omega-mv@`6c562dd1` spec/quantities-and-modular.md:73 2657 /words/qty/citations/3/quote The seeded syntax is prefix conversion (`q = qty w`, `w = ulong q`). 2658 /words/qty/example qty 2659 /words/dit/table kw2 2660 /words/dit/id 225 2661 /words/dit/category host-cpu 2662 /words/dit/profile OM-2 2663 /words/dit/form dit v 2664 /words/dit/arity 1 2665 /words/dit/types/0 v: int 0 or 1 (else trap 3) 2666 /words/dit/result long 2667 /words/dit/summary Value word: set PSTATE.DIT (data-independent timing) to v and give the previous bit as 0 or 1. OM-2 units only, program mode only, AArch64 only. 2668 /words/dit/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3177-3178 2669 /words/dit/citations/0/quote ret 225 2670 /words/dit/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:978 2671 /words/dit/citations/1/quote **`dit v`** (v int, else error 7) sets PSTATE.DIT 2672 /words/dit/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:955-956 2673 /words/dit/citations/2/quote program mode only (error 9 in function mode), AArch64 only (error 25 under `target x86linux`), and give a long 2674 /words/dit/example secrets 2675 /words/scrub/table kw2 2676 /words/scrub/id 226 2677 /words/scrub/category host-cpu 2678 /words/scrub/profile OM-2 2679 /words/scrub/form scrub n 2680 /words/scrub/arity 1 2681 /words/scrub/types/0 n: ulong, a multiple of 16 at most `1048576` (else trap 3) 2682 /words/scrub/result long 2683 /words/scrub/summary Value word: zero the n dead stack bytes below SP and every register holding no live value; gives 0. OM-2 units only, program mode only, AArch64 only. 2684 /words/scrub/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3180-3181 2685 /words/scrub/citations/0/quote ret 226 2686 /words/scrub/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:985 2687 /words/scrub/citations/1/quote **`scrub n`** (n ulong, else error 7) zeroes the dead stack and the dead registers and gives 0. 2688 /words/scrub/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:955-956 2689 /words/scrub/citations/2/quote program mode only (error 9 in function mode), AArch64 only (error 25 under `target x86linux`), and give a long 2690 /words/scrub/example secrets 2691 /words/add/table kw 2692 /words/add/id 33 2693 /words/add/category operator 2694 /words/add/profile OM-1 2695 /words/add/form add A B 2696 /words/add/arity 2 2697 /words/add/types/0 A: number type T 2698 /words/add/types/1 B: the same type T 2699 /words/add/result T 2700 /words/add/summary Binary operator: a + b. Both operands have one type (no implicit conversion, error 7). 2701 /words/add/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2807-2808 2702 /words/add/citations/0/quote ret 33 2703 /words/add/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2704 /words/add/citations/1/quote Unsigned add, sub, mul, shl, neg, not wrap modulo 2^width 2705 /words/add/example ints 2706 /words/sub/table kw 2707 /words/sub/id 34 2708 /words/sub/category operator 2709 /words/sub/profile OM-1 2710 /words/sub/form sub A B 2711 /words/sub/arity 2 2712 /words/sub/types/0 A: number type T 2713 /words/sub/types/1 B: the same type T 2714 /words/sub/result T 2715 /words/sub/summary Binary operator: a - b. Both operands have one type (no implicit conversion, error 7). 2716 /words/sub/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2810-2811 2717 /words/sub/citations/0/quote ret 34 2718 /words/sub/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2719 /words/sub/citations/1/quote Unsigned add, sub, mul, shl, neg, not wrap modulo 2^width 2720 /words/sub/example arith 2721 /words/mul/table kw 2722 /words/mul/id 35 2723 /words/mul/category operator 2724 /words/mul/profile OM-1 2725 /words/mul/form mul A B 2726 /words/mul/arity 2 2727 /words/mul/types/0 A: number type T 2728 /words/mul/types/1 B: the same type T 2729 /words/mul/result T 2730 /words/mul/summary Binary operator: a * b. Both operands have one type (no implicit conversion, error 7). 2731 /words/mul/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2813-2814 2732 /words/mul/citations/0/quote ret 35 2733 /words/mul/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2734 /words/mul/citations/1/quote Unsigned add, sub, mul, shl, neg, not wrap modulo 2^width 2735 /words/mul/example arith 2736 /words/div/table kw 2737 /words/div/id 36 2738 /words/div/category operator 2739 /words/div/profile OM-1 2740 /words/div/form div A B 2741 /words/div/arity 2 2742 /words/div/types/0 A: number type T 2743 /words/div/types/1 B: the same type T 2744 /words/div/result T 2745 /words/div/summary Binary operator: a / b, rounding toward zero; divisor 0 traps 2. Both operands have one type (no implicit conversion, error 7). 2746 /words/div/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2816-2817 2747 /words/div/citations/0/quote ret 36 2748 /words/div/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:507 2749 /words/div/citations/1/quote div and rem trap 2 when the divisor is 0. 2750 /words/div/example arith 2751 /words/rem/table kw 2752 /words/rem/id 37 2753 /words/rem/category operator 2754 /words/rem/profile OM-1 2755 /words/rem/form rem A B 2756 /words/rem/arity 2 2757 /words/rem/types/0 A: number type T 2758 /words/rem/types/1 B: the same type T 2759 /words/rem/result T 2760 /words/rem/summary Binary operator: remainder with the sign of the dividend; divisor 0 traps 2. Both operands have one type (no implicit conversion, error 7). 2761 /words/rem/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2819-2820 2762 /words/rem/citations/0/quote ret 37 2763 /words/rem/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:507 2764 /words/rem/citations/1/quote div and rem trap 2 when the divisor is 0. 2765 /words/rem/example ints 2766 /words/and/table kw 2767 /words/and/id 38 2768 /words/and/category operator 2769 /words/and/profile OM-1 2770 /words/and/form and A B 2771 /words/and/arity 2 2772 /words/and/types/0 A: number type T 2773 /words/and/types/1 B: the same type T 2774 /words/and/result T 2775 /words/and/summary Binary operator: bitwise and (bool and for bools; eager). Both operands have one type (no implicit conversion, error 7). 2776 /words/and/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2822-2823 2777 /words/and/citations/0/quote ret 38 2778 /words/and/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:512 2779 /words/and/citations/1/quote the two values of an op 2780 /words/and/example arith 2781 /words/or/table kw 2782 /words/or/id 39 2783 /words/or/category operator 2784 /words/or/profile OM-1 2785 /words/or/form or A B 2786 /words/or/arity 2 2787 /words/or/types/0 A: number type T 2788 /words/or/types/1 B: the same type T 2789 /words/or/result T 2790 /words/or/summary Binary operator: bitwise or (bool or for bools; eager). Both operands have one type (no implicit conversion, error 7). 2791 /words/or/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2825-2826 2792 /words/or/citations/0/quote ret 39 2793 /words/or/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:512 2794 /words/or/citations/1/quote the two values of an op 2795 /words/or/example arith 2796 /words/xor/table kw 2797 /words/xor/id 40 2798 /words/xor/category operator 2799 /words/xor/profile OM-1 2800 /words/xor/form xor A B 2801 /words/xor/arity 2 2802 /words/xor/types/0 A: number type T 2803 /words/xor/types/1 B: the same type T 2804 /words/xor/result T 2805 /words/xor/summary Binary operator: bitwise exclusive or. Both operands have one type (no implicit conversion, error 7). 2806 /words/xor/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2828-2829 2807 /words/xor/citations/0/quote ret 40 2808 /words/xor/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:512 2809 /words/xor/citations/1/quote the two values of an op 2810 /words/xor/example arith 2811 /words/shl/table kw 2812 /words/shl/id 41 2813 /words/shl/category operator 2814 /words/shl/profile OM-1 2815 /words/shl/form shl A B 2816 /words/shl/arity 2 2817 /words/shl/types/0 A: number type T 2818 /words/shl/types/1 B: the same type T 2819 /words/shl/result T 2820 /words/shl/summary Binary operator: shift left; amount outside 0..width-1 traps 7. Both operands have one type (no implicit conversion, error 7). 2821 /words/shl/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2831-2832 2822 /words/shl/citations/0/quote ret 41 2823 /words/shl/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:509 2824 /words/shl/citations/1/quote A shift amount outside 0 .. width - 1 traps 7 2825 /words/shl/example arith 2826 /words/shr/table kw 2827 /words/shr/id 42 2828 /words/shr/category operator 2829 /words/shr/profile OM-1 2830 /words/shr/form shr A B 2831 /words/shr/arity 2 2832 /words/shr/types/0 A: number type T 2833 /words/shr/types/1 B: the same type T 2834 /words/shr/result T 2835 /words/shr/summary Binary operator: shift right (arithmetic for signed); amount outside 0..width-1 traps 7. Both operands have one type (no implicit conversion, error 7). 2836 /words/shr/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2834-2835 2837 /words/shr/citations/0/quote ret 42 2838 /words/shr/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:509 2839 /words/shr/citations/1/quote shr of a signed value keeps the sign. 2840 /words/shr/example arith 2841 /words/eq/table kw 2842 /words/eq/id 43 2843 /words/eq/category operator 2844 /words/eq/profile OM-1 2845 /words/eq/form eq A B 2846 /words/eq/arity 2 2847 /words/eq/types/0 A: number type T 2848 /words/eq/types/1 B: the same type T 2849 /words/eq/result bool 2850 /words/eq/summary Comparison: equal (unsigned or signed by the operands' type; IEEE for floats). 2851 /words/eq/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2837-2838 2852 /words/eq/citations/0/quote ret 43 2853 /words/eq/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:736 2854 /words/eq/citations/1/quote comparisons `eq ne lt le gt ge` 2855 /words/eq/example arith 2856 /words/ne/table kw 2857 /words/ne/id 44 2858 /words/ne/category operator 2859 /words/ne/profile OM-1 2860 /words/ne/form ne A B 2861 /words/ne/arity 2 2862 /words/ne/types/0 A: number type T 2863 /words/ne/types/1 B: the same type T 2864 /words/ne/result bool 2865 /words/ne/summary Comparison: not equal (unsigned or signed by the operands' type; IEEE for floats). 2866 /words/ne/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2840-2841 2867 /words/ne/citations/0/quote ret 44 2868 /words/ne/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:736 2869 /words/ne/citations/1/quote comparisons `eq ne lt le gt ge` 2870 /words/ne/example arith 2871 /words/lt/table kw 2872 /words/lt/id 45 2873 /words/lt/category operator 2874 /words/lt/profile OM-1 2875 /words/lt/form lt A B 2876 /words/lt/arity 2 2877 /words/lt/types/0 A: number type T 2878 /words/lt/types/1 B: the same type T 2879 /words/lt/result bool 2880 /words/lt/summary Comparison: less than (unsigned or signed by the operands' type; IEEE for floats). 2881 /words/lt/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2843-2844 2882 /words/lt/citations/0/quote ret 45 2883 /words/lt/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:736 2884 /words/lt/citations/1/quote comparisons `eq ne lt le gt ge` 2885 /words/lt/example arith 2886 /words/le/table kw 2887 /words/le/id 46 2888 /words/le/category operator 2889 /words/le/profile OM-1 2890 /words/le/form le A B 2891 /words/le/arity 2 2892 /words/le/types/0 A: number type T 2893 /words/le/types/1 B: the same type T 2894 /words/le/result bool 2895 /words/le/summary Comparison: less or equal (unsigned or signed by the operands' type; IEEE for floats). 2896 /words/le/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2846-2847 2897 /words/le/citations/0/quote ret 46 2898 /words/le/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:736 2899 /words/le/citations/1/quote comparisons `eq ne lt le gt ge` 2900 /words/le/example arith 2901 /words/gt/table kw 2902 /words/gt/id 47 2903 /words/gt/category operator 2904 /words/gt/profile OM-1 2905 /words/gt/form gt A B 2906 /words/gt/arity 2 2907 /words/gt/types/0 A: number type T 2908 /words/gt/types/1 B: the same type T 2909 /words/gt/result bool 2910 /words/gt/summary Comparison: greater than (unsigned or signed by the operands' type; IEEE for floats). 2911 /words/gt/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2849-2850 2912 /words/gt/citations/0/quote ret 47 2913 /words/gt/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:736 2914 /words/gt/citations/1/quote comparisons `eq ne lt le gt ge` 2915 /words/gt/example arith 2916 /words/ge/table kw 2917 /words/ge/id 48 2918 /words/ge/category operator 2919 /words/ge/profile OM-1 2920 /words/ge/form ge A B 2921 /words/ge/arity 2 2922 /words/ge/types/0 A: number type T 2923 /words/ge/types/1 B: the same type T 2924 /words/ge/result bool 2925 /words/ge/summary Comparison: greater or equal (unsigned or signed by the operands' type; IEEE for floats). 2926 /words/ge/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2852-2853 2927 /words/ge/citations/0/quote ret 48 2928 /words/ge/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:736 2929 /words/ge/citations/1/quote comparisons `eq ne lt le gt ge` 2930 /words/ge/example arith 2931 /words/neg/table kw 2932 /words/neg/id 49 2933 /words/neg/category operator 2934 /words/neg/profile OM-1 2935 /words/neg/form neg A 2936 /words/neg/arity 1 2937 /words/neg/types/0 A: number type T 2938 /words/neg/result T 2939 /words/neg/summary Negation: wraps for unsigned types, traps 1 for the signed minimum, IEEE for floats. 2940 /words/neg/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2855-2856 2941 /words/neg/citations/0/quote ret 49 2942 /words/neg/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:505 2943 /words/neg/citations/1/quote Signed add, sub, mul, neg, div and shl trap 1 2944 /words/neg/example arith 2945 /words/not/table kw 2946 /words/not/id 50 2947 /words/not/category operator 2948 /words/not/profile OM-1 2949 /words/not/form not A 2950 /words/not/arity 1 2951 /words/not/types/0 A: integer type T or bool 2952 /words/not/result T 2953 /words/not/summary Bitwise complement of an integer; logical not of a bool. 2954 /words/not/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2858-2859 2955 /words/not/citations/0/quote ret 50 2956 /words/not/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:503 2957 /words/not/citations/1/quote Unsigned add, sub, mul, shl, neg, not wrap modulo 2^width 2958 /words/not/example arith 2959 /words/get/table kw 2960 /words/get/id 51 2961 /words/get/category data 2962 /words/get/profile OM-1 2963 /words/get/form get A i | get P field [i] 2964 /words/get/arity 2 2965 /words/get/types/0 A: array 2966 /words/get/types/1 i: integer index 2967 /words/get/result element type 2968 /words/get/summary Read element i of an array (or a struct/layout field). A constant index outside is error 21; a run-time one traps 3. In a run-time pool (global NAME T *) every index, a number included, is checked against the current length when the program runs (trap 3, never error 21). 2969 /words/get/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2861-2862 2970 /words/get/citations/0/quote ret 51 2971 /words/get/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:546 2972 /words/get/citations/1/quote `get A i` reads element i 2973 /words/get/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1032-1033 2974 /words/get/citations/2/quote a number index included (it is checked at run time, never error 21) 2975 /words/get/example arrays 2976 /words/len/table kw 2977 /words/len/id 52 2978 /words/len/category data 2979 /words/len/profile OM-1 2980 /words/len/form len A 2981 /words/len/arity 1 2982 /words/len/types/0 A: array or text 2983 /words/len/result ulong 2984 /words/len/summary Length of an array as a ulong. For a run-time pool (global NAME T *) the current length, read when the program runs and never folded; a contract on it is checked at run time. 2985 /words/len/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2864-2865 2986 /words/len/citations/0/quote ret 52 2987 /words/len/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:546 2988 /words/len/citations/1/quote `len A` is A's length as a ulong. 2989 /words/len/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1029 2990 /words/len/citations/2/quote `len NAME` is the current length, a run-time ulong, never folded 2991 /words/len/example hello 2992 /words/read/table kw 2993 /words/read/id 53 2994 /words/read/category data 2995 /words/read/profile OM-1 2996 /words/read/form read fd A off n 2997 /words/read/arity 4 2998 /words/read/types/0 fd: int 2999 /words/read/types/1 A: writable uchar array 3000 /words/read/types/2 off: ulong 3001 /words/read/types/3 n: ulong 3002 /words/read/result long 3003 /words/read/summary Read n bytes from fd into A[off..]; bytes read or minus errno. Slice outside A traps 3. 3004 /words/read/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2867-2868 3005 /words/read/citations/0/quote ret 53 3006 /words/read/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:553 3007 /words/read/citations/1/quote `read fd A off n` and `write fd A off n` (fd int, off and n ulong) 3008 /words/read/example files 3009 /words/write/table kw 3010 /words/write/id 54 3011 /words/write/category data 3012 /words/write/profile OM-1 3013 /words/write/form write fd A off n 3014 /words/write/arity 4 3015 /words/write/types/0 fd: int 3016 /words/write/types/1 A: uchar array or text 3017 /words/write/types/2 off: ulong 3018 /words/write/types/3 n: ulong 3019 /words/write/result long 3020 /words/write/summary Write A[off..off+n-1] to fd; bytes written or minus errno. Slice outside A traps 3. 3021 /words/write/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2870-2871 3022 /words/write/citations/0/quote ret 54 3023 /words/write/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:553 3024 /words/write/citations/1/quote `read fd A off n` and `write fd A off n` (fd int, off and n ulong) 3025 /words/write/example hello 3026 /words/true/table kw 3027 /words/true/id 55 3028 /words/true/category data 3029 /words/true/profile OM-1 3030 /words/true/form true 3031 /words/true/arity 0 3032 /words/true/types [] 3033 /words/true/result bool 3034 /words/true/summary The bool value 1. 3035 /words/true/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2873-2874 3036 /words/true/citations/0/quote ret 55 3037 /words/true/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:519 3038 /words/true/citations/1/quote `true` and `false` are the bool numbers 1 and 0. 3039 /words/true/example control 3040 /words/false/table kw 3041 /words/false/id 56 3042 /words/false/category data 3043 /words/false/profile OM-1 3044 /words/false/form false 3045 /words/false/arity 0 3046 /words/false/types [] 3047 /words/false/result bool 3048 /words/false/summary The bool value 0. 3049 /words/false/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2876-2877 3050 /words/false/citations/0/quote ret 56 3051 /words/false/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:519 3052 /words/false/citations/1/quote `true` and `false` are the bool numbers 1 and 0. 3053 /words/false/example control 3054 /words/view/table kw 3055 /words/view/id 57 3056 /words/view/category data 3057 /words/view/profile OM-1 3058 /words/view/form NAME view T N | NAME view T * (parameter) | view A (argument) 3059 /words/view/arity 3 3060 /words/view/types/0 T: element type 3061 /words/view/types/1 N: length or * (OM-2 unsized) 3062 /words/view/result - 3063 /words/view/summary Read-only array parameter of exact type and length; writing through it is error 20. 3064 /words/view/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2879-2880 3065 /words/view/citations/0/quote ret 57 3066 /words/view/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:539 3067 /words/view/citations/1/quote A parameter `NAME view T N` or `NAME edit T N` 3068 /words/view/example arrays 3069 /words/edit/table kw 3070 /words/edit/id 58 3071 /words/edit/category data 3072 /words/edit/profile OM-1 3073 /words/edit/form NAME edit T N | NAME edit T * (parameter) | edit A (argument) 3074 /words/edit/arity 3 3075 /words/edit/types/0 T: element type 3076 /words/edit/types/1 N: length or * (OM-2 unsized) 3077 /words/edit/result - 3078 /words/edit/summary Writable array parameter of exact type and length; a global is never passed (error 19). 3079 /words/edit/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2882-2883 3080 /words/edit/citations/0/quote ret 58 3081 /words/edit/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:539 3082 /words/edit/citations/1/quote A parameter `NAME view T N` or `NAME edit T N` 3083 /words/edit/example arrays 3084 /words/fn/table kw 3085 /words/fn/id 64 3086 /words/fn/category structure 3087 /words/fn/profile OM-1 3088 /words/fn/form fn NAME (PARAM TYPE)* to TYPE|void [inline] 3089 /words/fn/arity 3 3090 /words/fn/types/0 NAME: up to 63 characters 3091 /words/fn/types/1 PARAM: up to 63 characters, at most 6 slots 3092 /words/fn/result - 3093 /words/fn/summary Start a function; `end` closes it. `fn main` makes a whole Linux program (program mode). 3094 /words/fn/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2885-2886 3095 /words/fn/citations/0/quote ret 64 3096 /words/fn/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:59 3097 /words/fn/citations/1/quote a function; `end` closes it 3098 /words/fn/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:427 3099 /words/fn/citations/2/quote A program with a line `fn main` is a whole Linux program 3100 /words/fn/example hello 3101 /words/to/table kw 3102 /words/to/id 65 3103 /words/to/category structure 3104 /words/to/profile OM-1 3105 /words/to/form fn ... to TYPE|void 3106 /words/to/arity 1 3107 /words/to/types/0 TYPE: a scalar type or void 3108 /words/to/result - 3109 /words/to/summary Introduces a function's result type. 3110 /words/to/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2888-2889 3111 /words/to/citations/0/quote ret 65 3112 /words/to/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:59 3113 /words/to/citations/1/quote to | void 3114 /words/to/example hello 3115 /words/end/table kw 3116 /words/end/id 66 3117 /words/end/category structure 3118 /words/end/profile OM-1 3119 /words/end/form end 3120 /words/end/arity 0 3121 /words/end/types [] 3122 /words/end/result - 3123 /words/end/summary Closes fn, if/else, while, for, struct and layout blocks. A missing end is error 15. 3124 /words/end/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2891-2892 3125 /words/end/citations/0/quote ret 66 3126 /words/end/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:59 3127 /words/end/citations/1/quote `end` closes it 3128 /words/end/example hello 3129 /words/if/table kw 3130 /words/if/id 67 3131 /words/if/category structure 3132 /words/if/profile OM-1 3133 /words/if/form if COND / [else] / end 3134 /words/if/arity 1 3135 /words/if/types/0 COND: bool 3136 /words/if/result - 3137 /words/if/summary Conditional block. 3138 /words/if/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2894-2895 3139 /words/if/citations/0/quote ret 67 3140 /words/if/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:62 3141 /words/if/citations/1/quote if / else / end 3142 /words/if/example control 3143 /words/else/table kw 3144 /words/else/id 68 3145 /words/else/category structure 3146 /words/else/profile OM-1 3147 /words/else/form else 3148 /words/else/arity 0 3149 /words/else/types [] 3150 /words/else/result - 3151 /words/else/summary Second arm of an if block. 3152 /words/else/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2897-2898 3153 /words/else/citations/0/quote ret 68 3154 /words/else/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:62 3155 /words/else/citations/1/quote if / else / end 3156 /words/else/example control 3157 /words/while/table kw 3158 /words/while/id 69 3159 /words/while/category structure 3160 /words/while/profile OM-1 3161 /words/while/form while COND [bound N] / end 3162 /words/while/arity 1 3163 /words/while/types/0 COND: bool 3164 /words/while/types/1 N: 1..`9223372036854775807` (IR mode 1..`1000000`) 3165 /words/while/result - 3166 /words/while/summary Loop while COND holds; past N iterations (default `1000000`) it traps 4. 3167 /words/while/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2900-2901 3168 /words/while/citations/0/quote ret 69 3169 /words/while/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:63 3170 /words/while/citations/1/quote while [bound N] / end 3171 /words/while/example control 3172 /words/bound/table kw 3173 /words/bound/id 70 3174 /words/bound/category structure 3175 /words/bound/profile OM-1 3176 /words/bound/form while COND bound N | for NAME TYPE COUNT bound N 3177 /words/bound/arity 1 3178 /words/bound/types/0 N: number or integer const 1..`9223372036854775807` (IR mode 1..`1000000`) 3179 /words/bound/result - 3180 /words/bound/summary Pass limit of a while or for loop; one more pass traps 4. Without it a while (and a for whose count is not a number) stops at `1000000` passes. 3181 /words/bound/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2903-2904 3182 /words/bound/citations/0/quote ret 70 3183 /words/bound/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:63-64 3184 /words/bound/citations/1/quote N 1..`9223372036854775807` (a number or any integer const; IR mode: 1..`1000000`), default `1000000`; past N iterations: trap 4 3185 /words/bound/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:66 3186 /words/bound/citations/2/quote N as for while. 3187 /words/bound/example control 3188 /words/for/table kw 3189 /words/for/id 71 3190 /words/for/category structure 3191 /words/for/profile OM-1 3192 /words/for/form for NAME TYPE COUNT [bound N] / end 3193 /words/for/arity 3 3194 /words/for/types/0 NAME: new counter 3195 /words/for/types/1 TYPE: integer type 3196 /words/for/types/2 COUNT: number or value of TYPE 3197 /words/for/result - 3198 /words/for/summary Counted loop: NAME = 0 .. COUNT-1. With no bound a number COUNT runs unguarded and any other COUNT traps 4 after `1000000` passes; with `bound N` any COUNT traps 4 after N passes. 3199 /words/for/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2906-2907 3200 /words/for/citations/0/quote ret 71 3201 /words/for/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:65 3202 /words/for/citations/1/quote for [bound N] / end 3203 /words/for/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:66-68 3204 /words/for/citations/2/quote With no bound a number count is not guarded and any other count traps 4 after `1000000` passes; with `bound N` any count traps 4 after N passes 3205 /words/for/example for_guard 3206 /words/ret/table kw 3207 /words/ret/id 72 3208 /words/ret/category structure 3209 /words/ret/profile OM-1 3210 /words/ret/form ret [VALUE] 3211 /words/ret/arity 1 3212 /words/ret/types/0 VALUE: the function's result type (none for void) 3213 /words/ret/result - 3214 /words/ret/summary Return from the function; ends the path (a later line in the block is error 17). 3215 /words/ret/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2909-2910 3216 /words/ret/citations/0/quote ret 72 3217 /words/ret/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:74 3218 /words/ret/citations/1/quote ret [] 3219 /words/ret/example hello 3220 /words/=/table kw 3221 /words/=/id 73 3222 /words/=/category structure 3223 /words/=/profile OM-1 3224 /words/=/form NAME = VALUE 3225 /words/=/arity 2 3226 /words/=/types/0 NAME: new or existing name of the same type 3227 /words/=/types/1 VALUE: any value 3228 /words/=/result - 3229 /words/=/summary Bind or overwrite a name (the = may be left out). 3230 /words/=/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2912-2913 3231 /words/=/citations/0/quote ret 73 3232 /words/=/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:60 3233 /words/=/citations/1/quote = 3234 /words/=/example hello 3235 /words/(/table kw 3236 /words/(/id 74 3237 /words/(/category structure 3238 /words/(/profile OM-1 3239 /words/(/form ( VALUE ) 3240 /words/(/arity 1 3241 /words/(/types/0 VALUE: any value 3242 /words/(/result VALUE's type 3243 /words/(/summary Grouping: returns exactly the value inside; adds no code. 3244 /words/(/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2915-2916 3245 /words/(/citations/0/quote ret 74 3246 /words/(/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:773 3247 /words/(/citations/1/quote `(` and `)` are separate words 3248 /words/(/example calls 3249 /words/)/table kw 3250 /words/)/id 75 3251 /words/)/category structure 3252 /words/)/profile OM-1 3253 /words/)/form ( VALUE ) 3254 /words/)/arity 1 3255 /words/)/types/0 VALUE: any value 3256 /words/)/result VALUE's type 3257 /words/)/summary Closes a group; a missing ) is error 16. 3258 /words/)/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2918-2919 3259 /words/)/citations/0/quote ret 75 3260 /words/)/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:773 3261 /words/)/citations/1/quote `(` and `)` are separate words 3262 /words/)/example calls 3263 /words/void/table kw 3264 /words/void/id 76 3265 /words/void/category structure 3266 /words/void/profile OM-1 3267 /words/void/form fn ... to void 3268 /words/void/arity 0 3269 /words/void/types [] 3270 /words/void/result - 3271 /words/void/summary A function that returns no value; ret without a value or reaching end returns. 3272 /words/void/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2921-2922 3273 /words/void/citations/0/quote ret 76 3274 /words/void/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:482 3275 /words/void/citations/1/quote `to void` makes a void function 3276 /words/void/example arrays 3277 /words/global/table kw 3278 /words/global/id 78 3279 /words/global/category statement 3280 /words/global/profile OM-1 3281 /words/global/form global NAME T N | global NAME T * 3282 /words/global/arity 3 3283 /words/global/types/0 NAME: up to 63 characters 3284 /words/global/types/1 T: element type 3285 /words/global/types/2 N: 1..`16777216`, or * (a run-time pool) 3286 /words/global/result - 3287 /words/global/summary A zero-filled pool of N elements in the program image. Program mode only; never passed as an argument (error 19). `global NAME T *` (omc only, AArch64 Linux program mode) is a run-time pool: its length is 0 when the program starts and enlarge grows it; a bool element type is error 9. 3288 /words/global/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2924-2925 3289 /words/global/citations/0/quote ret 78 3290 /words/global/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:526 3291 /words/global/citations/1/quote `global NAME T N`: a pool of N elements (1 .. `16777216`) 3292 /words/global/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1014 3293 /words/global/citations/2/quote `global NAME T *`: a run-time pool of element type T 3294 /words/global/example arrays 3295 /words/enlarge/table kw 3296 /words/enlarge/id 244 3297 /words/enlarge/category statement 3298 /words/enlarge/profile OM-1 3299 /words/enlarge/form r = enlarge NAME n 3300 /words/enlarge/arity 2 3301 /words/enlarge/types/0 NAME: a run-time pool (global NAME T *) 3302 /words/enlarge/types/1 n: ulong 3303 /words/enlarge/types/2 r: long 3304 /words/enlarge/result long 3305 /words/enlarge/summary Grow the run-time pool NAME to n elements (omc only): the old values are kept, the new elements are 0 and r is 0; n at or below len NAME changes nothing and r is 0 (enlarge never shrinks). n times the element size at or past 2^63: r is -22; the host refusing the mapping: r is its negative errno, -12 (ENOMEM); NAME is then unchanged and nothing traps. Only the whole of an assignment (error 9 inside a value, a put or a condition; a bare enlarge line is error 16); a name that is not a run-time pool is error 7. The memory is held until the process ends. 3306 /words/enlarge/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3110-3111 3307 /words/enlarge/citations/0/quote ret 244 3308 /words/enlarge/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1018 3309 /words/enlarge/citations/1/quote `r = enlarge NAME n`: n a ulong and r a long 3310 /words/enlarge/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1022 3311 /words/enlarge/citations/2/quote Results: n at or below `len NAME`: 0, nothing changes (`enlarge` never shrinks) 3312 /words/enlarge/citations/3/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1023-1024 3313 /words/enlarge/citations/3/quote n times the element size at or past 2^63: -22 and NAME is unchanged 3314 /words/enlarge/citations/4/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1025-1026 3315 /words/enlarge/citations/4/quote the host's negative errno, -12 (ENOMEM), and NAME is unchanged 3316 /words/enlarge/citations/5/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1026 3317 /words/enlarge/citations/5/quote A refusal is a result the program handles; it is never a trap. 3318 /words/enlarge/example pools 3319 /words/text/table kw 3320 /words/text/id 79 3321 /words/text/category statement 3322 /words/text/profile OM-1 3323 /words/text/form text NAME "bytes" 3324 /words/text/arity 2 3325 /words/text/types/0 NAME: up to 63 characters 3326 /words/text/types/1 bytes: escapes \\n \\t \\\\ \\" 3327 /words/text/result - 3328 /words/text/summary A read-only uchar array holding the quoted bytes. Program mode only. 3329 /words/text/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2927-2928 3330 /words/text/citations/0/quote ret 79 3331 /words/text/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:530 3332 /words/text/citations/1/quote `text NAME "bytes"`: a read-only array of uchar 3333 /words/text/example hello 3334 /words/put/table kw 3335 /words/put/id 80 3336 /words/put/category statement 3337 /words/put/profile OM-1 3338 /words/put/form put A i v | put P field [i] v 3339 /words/put/arity 3 3340 /words/put/types/0 A: writable array 3341 /words/put/types/1 i: integer index 3342 /words/put/types/2 v: element type 3343 /words/put/result - 3344 /words/put/summary Store v at element i. Into a view or text: error 20. 3345 /words/put/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2930-2931 3346 /words/put/citations/0/quote ret 80 3347 /words/put/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:75 3348 /words/put/citations/1/quote put 3349 /words/put/example arrays 3350 /words/free/table kw 3351 /words/free/id 81 3352 /words/free/category statement 3353 /words/free/profile OM-1 3354 /words/free/form free (refused) 3355 /words/free/arity 0 3356 /words/free/types [] 3357 /words/free/result - 3358 /words/free/summary Reserved and always refused with error 9: arrays are given back when their function returns (decision 24). 3359 /words/free/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2933-2934 3360 /words/free/citations/0/quote ret 81 3361 /words/free/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:537 3362 /words/free/citations/1/quote There is no `free`: nothing is given back by hand (decision 24), and the word is refused (error 9). 3363 /words/free/citations/2/ref omega-mv@`6c562dd1` seed/omc/omc.om:15430 3364 /words/free/citations/2/quote if or or or eq c 77 eq c 78 eq c 79 eq c 81 3365 /words/free/example free_refused 3366 /words/own/table kw 3367 /words/own/id 77 3368 /words/own/category statement 3369 /words/own/profile OM-1 3370 /words/own/form own (refused) 3371 /words/own/arity 0 3372 /words/own/types [] 3373 /words/own/result - 3374 /words/own/summary Reserved word from the om4 draft; as a statement omc refuses it with error 9. 3375 /words/own/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2951-2952 3376 /words/own/citations/0/quote ret 77 3377 /words/own/citations/1/ref omega-mv@`6c562dd1` seed/omc/omc.om:15430 3378 /words/own/citations/1/quote if or or or eq c 77 eq c 78 eq c 79 eq c 81 3379 /words/own/example own_refused 3380 /words/exit/table kw 3381 /words/exit/id 82 3382 /words/exit/category statement 3383 /words/exit/profile OM-1 3384 /words/exit/form exit v 3385 /words/exit/arity 1 3386 /words/exit/types/0 v: int 3387 /words/exit/result - 3388 /words/exit/summary End the program with status v modulo 256; ends the path. 3389 /words/exit/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2936-2937 3390 /words/exit/citations/0/quote ret 82 3391 /words/exit/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:561 3392 /words/exit/citations/1/quote `exit v` (v int) ends the program with status v modulo 256. 3393 /words/exit/example exit 3394 /words/note/table kw 3395 /words/note/id 83 3396 /words/note/category statement 3397 /words/note/profile OM-1 3398 /words/note/form note ... 3399 /words/note/arity 0 3400 /words/note/types [] 3401 /words/note/result - 3402 /words/note/summary A comment line: nothing after the first word is read. 3403 /words/note/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2939-2940 3404 /words/note/citations/0/quote ret 83 3405 /words/note/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:563 3406 /words/note/citations/1/quote `note ...` is a line the translator does not read beyond its first word. 3407 /words/note/example hello 3408 /words/new/table kw 3409 /words/new/id 84 3410 /words/new/category statement 3411 /words/new/profile OM-1 3412 /words/new/form NAME = new T N v | NAME = new STRUCT v1 .. vn 3413 /words/new/arity 3 3414 /words/new/types/0 T: element type 3415 /words/new/types/1 N: length 3416 /words/new/types/2 v: initial element value 3417 /words/new/result array 3418 /words/new/summary A local array of N elements, each v, on the stack; only in a function's outermost block (error 9). 3419 /words/new/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2942-2943 3420 /words/new/citations/0/quote ret 84 3421 /words/new/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:535 3422 /words/new/citations/1/quote `NAME = new T N v`: a local array of N elements, each v, on the stack 3423 /words/new/example arrays 3424 /words/break/table kw 3425 /words/break/id 86 3426 /words/break/category statement 3427 /words/break/profile OM-1 3428 /words/break/form break 3429 /words/break/arity 0 3430 /words/break/types [] 3431 /words/break/result - 3432 /words/break/summary Leave the innermost loop; outside a loop error 9. 3433 /words/break/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2945-2946 3434 /words/break/citations/0/quote ret 86 3435 /words/break/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:70 3436 /words/break/citations/1/quote leave the innermost loop; outside a loop: error 9. 3437 /words/break/example control 3438 /words/trap/table kw 3439 /words/trap/id 87 3440 /words/trap/category statement 3441 /words/trap/profile OM-1 3442 /words/trap/form trap N 3443 /words/trap/arity 1 3444 /words/trap/types/0 N: 1..14 3445 /words/trap/result - 3446 /words/trap/summary Stop with trap code N: program mode exits 100 + N. 3447 /words/trap/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2948-2949 3448 /words/trap/citations/0/quote ret 87 3449 /words/trap/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:76 3450 /words/trap/citations/1/quote trap stop with that code 3451 /words/trap/example trapword 3452 /words/continue/table kw 3453 /words/continue/id 97 3454 /words/continue/category statement 3455 /words/continue/profile OM-1 3456 /words/continue/form continue 3457 /words/continue/arity 0 3458 /words/continue/types [] 3459 /words/continue/result - 3460 /words/continue/summary Jump to the next iteration (a while's head, a for's increment). 3461 /words/continue/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3080-3081 3462 /words/continue/citations/0/quote ret 97 3463 /words/continue/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:72 3464 /words/continue/citations/1/quote jump to the next iteration 3465 /words/continue/example control 3466 /words/const/table kw 3467 /words/const/id 152 3468 /words/const/category statement 3469 /words/const/profile OM-1 3470 /words/const/form const NAME TYPE LITERAL 3471 /words/const/arity 3 3472 /words/const/types/0 NAME: up to 63 characters 3473 /words/const/types/1 TYPE: integer or float type 3474 /words/const/types/2 LITERAL: value of TYPE 3475 /words/const/result - 3476 /words/const/summary A named typed constant, usable as a value, array length, for count, while bound or trap code. 3477 /words/const/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:2633-2634 3478 /words/const/citations/0/quote ret 152 3479 /words/const/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:792 3480 /words/const/citations/1/quote `const NAME TYPE LITERAL` at top level defines a named value before use. 3481 /words/const/example consts 3482 /words/struct/table kw 3483 /words/struct/id 85 3484 /words/struct/category struct 3485 /words/struct/profile OM-1 3486 /words/struct/form struct Name field type [len] ... end 3487 /words/struct/arity 3 3488 /words/struct/types/0 fields: 1..16, at most 64 eight-byte cells 3489 /words/struct/result - 3490 /words/struct/summary A record type of eight-byte cells, declared on one line before the first fn. 3491 /words/struct/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3050-3051 3492 /words/struct/citations/0/quote ret 85 3493 /words/struct/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:666 3494 /words/struct/citations/1/quote `struct Name field type [len] ... end`, one line, before the first `fn`. 3495 /words/struct/example structs 3496 /words/sizeof/table kw 3497 /words/sizeof/id 95 3498 /words/sizeof/category struct 3499 /words/sizeof/profile OM-1 3500 /words/sizeof/form sizeof T | sizeof STRUCT 3501 /words/sizeof/arity 1 3502 /words/sizeof/types/0 T: scalar type or struct 3503 /words/sizeof/result ulong 3504 /words/sizeof/summary Size in bytes; a compile-time constant. 3505 /words/sizeof/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3074-3075 3506 /words/sizeof/citations/0/quote ret 95 3507 /words/sizeof/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:781 3508 /words/sizeof/citations/1/quote `sizeof T` is the size in bytes of a scalar type 3509 /words/sizeof/example structs 3510 /words/offsetof/table kw 3511 /words/offsetof/id 96 3512 /words/offsetof/category struct 3513 /words/offsetof/profile OM-1 3514 /words/offsetof/form offsetof STRUCT field 3515 /words/offsetof/arity 2 3516 /words/offsetof/types/0 STRUCT: struct name 3517 /words/offsetof/types/1 field: field name 3518 /words/offsetof/result ulong 3519 /words/offsetof/summary Byte offset of a field; a compile-time constant. 3520 /words/offsetof/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3077-3078 3521 /words/offsetof/citations/0/quote ret 96 3522 /words/offsetof/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:783 3523 /words/offsetof/citations/1/quote `offsetof S f` is the byte offset of field `f` 3524 /words/offsetof/example structs 3525 /words/f32/table kw 3526 /words/f32/id 88 3527 /words/f32/category float 3528 /words/f32/profile OM-1 3529 /words/f32/form f32 VALUE | 1.5f32 3530 /words/f32/arity 1 3531 /words/f32/types/0 VALUE: integer or float value 3532 /words/f32/result f32 3533 /words/f32/summary IEEE-754 binary32 type and conversion. 3534 /words/f32/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3053-3054 3535 /words/f32/citations/0/quote ret 88 3536 /words/f32/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:716 3537 /words/f32/citations/1/quote `f32` and `f64` are IEEE-754 binary32 and binary64. 3538 /words/f32/example floats 3539 /words/f64/table kw 3540 /words/f64/id 89 3541 /words/f64/category float 3542 /words/f64/profile OM-1 3543 /words/f64/form f64 VALUE | 1.5f64 3544 /words/f64/arity 1 3545 /words/f64/types/0 VALUE: integer or float value 3546 /words/f64/result f64 3547 /words/f64/summary IEEE-754 binary64 type and conversion. 3548 /words/f64/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3056-3057 3549 /words/f64/citations/0/quote ret 89 3550 /words/f64/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:716 3551 /words/f64/citations/1/quote `f32` and `f64` are IEEE-754 binary32 and binary64. 3552 /words/f64/example floats 3553 /words/bitcast/table kw 3554 /words/bitcast/id 90 3555 /words/bitcast/category float 3556 /words/bitcast/profile OM-1 3557 /words/bitcast/form bitcast T VALUE 3558 /words/bitcast/arity 2 3559 /words/bitcast/types/0 T: type of the same width 3560 /words/bitcast/types/1 VALUE: f32/i32/u32 or f64/i64/u64 3561 /words/bitcast/result T 3562 /words/bitcast/summary Reinterpret the bits of a same-width value. 3563 /words/bitcast/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3059-3060 3564 /words/bitcast/citations/0/quote ret 90 3565 /words/bitcast/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:757 3566 /words/bitcast/citations/1/quote `bitcast T value` reinterprets a value of the same width 3567 /words/bitcast/example floats 3568 /words/fsqrt/table kw 3569 /words/fsqrt/id 91 3570 /words/fsqrt/category float 3571 /words/fsqrt/profile OM-1 3572 /words/fsqrt/form fsqrt X 3573 /words/fsqrt/arity 1 3574 /words/fsqrt/types/0 X: f32 or f64 3575 /words/fsqrt/result the operand type 3576 /words/fsqrt/summary IEEE square root. 3577 /words/fsqrt/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3062-3063 3578 /words/fsqrt/citations/0/quote ret 91 3579 /words/fsqrt/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:740 3580 /words/fsqrt/citations/1/quote Intrinsics `fsqrt x` and `fabs x` take one float; `fmin a b` and `fmax a b` take two of one float 3581 /words/fsqrt/example floats 3582 /words/fabs/table kw 3583 /words/fabs/id 92 3584 /words/fabs/category float 3585 /words/fabs/profile OM-1 3586 /words/fabs/form fabs X 3587 /words/fabs/arity 1 3588 /words/fabs/types/0 X: f32 or f64 3589 /words/fabs/result the operand type 3590 /words/fabs/summary Absolute value. 3591 /words/fabs/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3065-3066 3592 /words/fabs/citations/0/quote ret 92 3593 /words/fabs/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:740 3594 /words/fabs/citations/1/quote Intrinsics `fsqrt x` and `fabs x` take one float; `fmin a b` and `fmax a b` take two of one float 3595 /words/fabs/example floats 3596 /words/fmin/table kw 3597 /words/fmin/id 93 3598 /words/fmin/category float 3599 /words/fmin/profile OM-1 3600 /words/fmin/form fmin A B 3601 /words/fmin/arity 2 3602 /words/fmin/types/0 A, B: one float type 3603 /words/fmin/result the operand type 3604 /words/fmin/summary IEEE minNum (FMINNM). 3605 /words/fmin/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3068-3069 3606 /words/fmin/citations/0/quote ret 93 3607 /words/fmin/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:740 3608 /words/fmin/citations/1/quote Intrinsics `fsqrt x` and `fabs x` take one float; `fmin a b` and `fmax a b` take two of one float 3609 /words/fmin/example floats 3610 /words/fmax/table kw 3611 /words/fmax/id 94 3612 /words/fmax/category float 3613 /words/fmax/profile OM-1 3614 /words/fmax/form fmax A B 3615 /words/fmax/arity 2 3616 /words/fmax/types/0 A, B: one float type 3617 /words/fmax/result the operand type 3618 /words/fmax/summary IEEE maxNum (FMAXNM). 3619 /words/fmax/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3071-3072 3620 /words/fmax/citations/0/quote ret 94 3621 /words/fmax/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:740 3622 /words/fmax/citations/1/quote Intrinsics `fsqrt x` and `fabs x` take one float; `fmin a b` and `fmax a b` take two of one float 3623 /words/fmax/example floats 3624 /words/fma/table kw 3625 /words/fma/id 227 3626 /words/fma/category float 3627 /words/fma/profile OM-1 3628 /words/fma/form fma A B C 3629 /words/fma/arity 3 3630 /words/fma/types/0 A, B, C: one explicit float type (f32 or f64) 3631 /words/fma/result the operand type 3632 /words/fma/summary Fused multiply-add: A*B+C with one rounding of the exact result (AArch64 FMADD); ordinary mul then add round twice. Mixed or integer operands are error 7, an unresolved decimal literal error 11; x86linux and x86efi refuse it with error 9. 3633 /words/fma/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3104-3105 3634 /words/fma/citations/0/quote ret 227 3635 /words/fma/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:744 3636 /words/fma/citations/1/quote `fma a b c` multiplies `a` by `b` and adds `c` with **one rounding of the exact combined result**. 3637 /words/fma/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:712 3638 /words/fma/citations/2/quote The words are `bitcast`, `fsqrt`, `fabs`, `fmin`, `fmax` and `fma` 3639 /words/fma/example fma 3640 /words/rotr/table kw2 3641 /words/rotr/id 59 3642 /words/rotr/category OM-2 3643 /words/rotr/profile OM-2 3644 /words/rotr/form rotr X N 3645 /words/rotr/arity 2 3646 /words/rotr/types/0 X: unsigned type T 3647 /words/rotr/types/1 N: T 3648 /words/rotr/result T 3649 /words/rotr/summary Rotate right; N outside 0..w-1 traps 7. OM-2 units only (first line `om2`). 3650 /words/rotr/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3123-3124 3651 /words/rotr/citations/0/quote ret 59 3652 /words/rotr/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:854 3653 /words/rotr/citations/1/quote `rotr x n` and `rotl x n` 3654 /words/rotr/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3655 /words/rotr/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3656 /words/rotr/example om2_rotate 3657 /words/rotl/table kw2 3658 /words/rotl/id 60 3659 /words/rotl/category OM-2 3660 /words/rotl/profile OM-2 3661 /words/rotl/form rotl X N 3662 /words/rotl/arity 2 3663 /words/rotl/types/0 X: unsigned type T 3664 /words/rotl/types/1 N: T 3665 /words/rotl/result T 3666 /words/rotl/summary Rotate left; N outside 0..w-1 traps 7. OM-2 units only (first line `om2`). 3667 /words/rotl/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3126-3127 3668 /words/rotl/citations/0/quote ret 60 3669 /words/rotl/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:854 3670 /words/rotl/citations/1/quote `rotr x n` and `rotl x n` 3671 /words/rotl/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3672 /words/rotl/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3673 /words/rotl/example om2_rotate 3674 /words/unroll/table kw2 3675 /words/unroll/id 181 3676 /words/unroll/category OM-2 3677 /words/unroll/profile OM-2 3678 /words/unroll/form for i T K unroll 3679 /words/unroll/arity 0 3680 /words/unroll/types/0 K: number 1..64 3681 /words/unroll/result - 3682 /words/unroll/summary Compile the loop body K times with a constant counter. OM-2 units only (first line `om2`). 3683 /words/unroll/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3129-3130 3684 /words/unroll/citations/0/quote ret 181 3685 /words/unroll/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:858 3686 /words/unroll/citations/1/quote `for i T K unroll` 3687 /words/unroll/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3688 /words/unroll/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3689 /words/unroll/example om2_unroll 3690 /words/inline/table kw2 3691 /words/inline/id 182 3692 /words/inline/category OM-2 3693 /words/inline/profile OM-2 3694 /words/inline/form fn NAME ... to T inline 3695 /words/inline/arity 0 3696 /words/inline/types [] 3697 /words/inline/result - 3698 /words/inline/summary Compile every call of the function in place. OM-2 units only (first line `om2`). 3699 /words/inline/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3132-3133 3700 /words/inline/citations/0/quote ret 182 3701 /words/inline/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:862 3702 /words/inline/citations/1/quote `fn NAME ... to T inline` 3703 /words/inline/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3704 /words/inline/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3705 /words/inline/example om2_unroll 3706 /words/fresh/table kw2 3707 /words/fresh/id 183 3708 /words/fresh/category OM-2 3709 /words/fresh/profile OM-2 3710 /words/fresh/form NAME edit T N fresh 3711 /words/fresh/arity 0 3712 /words/fresh/types/0 N: at most 64 3713 /words/fresh/result - 3714 /words/fresh/summary Incoming elements are unspecified; every read needs a prior write (error 27). OM-2 units only (first line `om2`). 3715 /words/fresh/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3135-3136 3716 /words/fresh/citations/0/quote ret 183 3717 /words/fresh/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:901 3718 /words/fresh/citations/1/quote A parameter `s edit T N fresh` 3719 /words/fresh/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3720 /words/fresh/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3721 /words/fresh/example om2_fresh 3722 /words/abstract/table kw2 3723 /words/abstract/id 184 3724 /words/abstract/category OM-2 3725 /words/abstract/profile OM-2 3726 /words/abstract/form abstract NAME T [ops W ...] 3727 /words/abstract/arity 2 3728 /words/abstract/types/0 T: uint or ulong 3729 /words/abstract/types/1 W: rotr rotl and or xor 3730 /words/abstract/result - 3731 /words/abstract/summary Declare an abstract type made only by seal in NAMEmk. OM-2 units only (first line `om2`). 3732 /words/abstract/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3138-3139 3733 /words/abstract/citations/0/quote ret 184 3734 /words/abstract/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:911 3735 /words/abstract/citations/1/quote `abstract NAME T [ops W ...]` 3736 /words/abstract/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3737 /words/abstract/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3738 /words/abstract/example om2_abstract 3739 /words/seal/table kw2 3740 /words/seal/id 185 3741 /words/seal/category OM-2 3742 /words/seal/profile OM-2 3743 /words/seal/form seal NAME v 3744 /words/seal/arity 2 3745 /words/seal/types/0 NAME: abstract type 3746 /words/seal/types/1 v: its base type T 3747 /words/seal/result NAME 3748 /words/seal/summary Make an abstract value; only inside the function NAMEmk (else error 28). OM-2 units only (first line `om2`). 3749 /words/seal/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3141-3142 3750 /words/seal/citations/0/quote ret 185 3751 /words/seal/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:913 3752 /words/seal/citations/1/quote A value of it is made only by `seal NAME v` 3753 /words/seal/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3754 /words/seal/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3755 /words/seal/example om2_abstract 3756 /words/open/table kw2 3757 /words/open/id 186 3758 /words/open/category OM-2 3759 /words/open/profile OM-2 3760 /words/open/form open v 3761 /words/open/arity 1 3762 /words/open/types/0 v: abstract value 3763 /words/open/result base type T 3764 /words/open/summary The base value of an abstract value. OM-2 units only (first line `om2`). 3765 /words/open/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3144-3145 3766 /words/open/citations/0/quote ret 186 3767 /words/open/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:915 3768 /words/open/citations/1/quote `open v` gives the T value. 3769 /words/open/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3770 /words/open/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3771 /words/open/example om2_abstract 3772 /words/holds/table kw2 3773 /words/holds/id 187 3774 /words/holds/category OM-2 3775 /words/holds/profile OM-2 3776 /words/holds/form holds NAME dup32 3777 /words/holds/arity 2 3778 /words/holds/types/0 NAME: ulong abstract type 3779 /words/holds/result - 3780 /words/holds/summary Run-time invariant on every seal: high 32 bits equal low 32 (trap 10). OM-2 units only (first line `om2`). 3781 /words/holds/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3147-3148 3782 /words/holds/citations/0/quote ret 187 3783 /words/holds/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:912 3784 /words/holds/citations/1/quote `holds NAME dup32`, at top level before the first `fn` 3785 /words/holds/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3786 /words/holds/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3787 /words/holds/example om2_abstract 3788 /words/ops/table kw2 3789 /words/ops/id 196 3790 /words/ops/category OM-2 3791 /words/ops/profile OM-2 3792 /words/ops/form abstract NAME T ops W ... 3793 /words/ops/arity 1 3794 /words/ops/types/0 W: rotr rotl and or xor 3795 /words/ops/result - 3796 /words/ops/summary The operations allowed on an abstract type. OM-2 units only (first line `om2`). 3797 /words/ops/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3174-3175 3798 /words/ops/citations/0/quote ret 196 3799 /words/ops/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:911 3800 /words/ops/citations/1/quote [ops W ...] 3801 /words/ops/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3802 /words/ops/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3803 /words/ops/example om2_abstract 3804 /words/layout/table kw2 3805 /words/layout/id 188 3806 /words/layout/category OM-2 3807 /words/layout/profile OM-2 3808 /words/layout/form layout NAME SIZE / field ... / end 3809 /words/layout/arity 2 3810 /words/layout/types/0 NAME: up to 8 bytes 3811 /words/layout/types/1 SIZE: 1..4096 3812 /words/layout/result - 3813 /words/layout/summary An external byte layout over a uchar array of SIZE bytes. OM-2 units only (first line `om2`). 3814 /words/layout/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3150-3151 3815 /words/layout/citations/0/quote ret 188 3816 /words/layout/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:888 3817 /words/layout/citations/1/quote `layout NAME SIZE` 3818 /words/layout/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3819 /words/layout/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3820 /words/layout/example om2_layout 3821 /words/field/table kw2 3822 /words/field/id 189 3823 /words/field/category OM-2 3824 /words/field/profile OM-2 3825 /words/field/form field F T [COUNT] at OFF little|big 3826 /words/field/arity 5 3827 /words/field/types/0 T: integer type 3828 /words/field/types/1 COUNT: 1..4096 3829 /words/field/types/2 OFF: byte offset 3830 /words/field/result - 3831 /words/field/summary One field of a layout. OM-2 units only (first line `om2`). 3832 /words/field/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3153-3154 3833 /words/field/citations/0/quote ret 189 3834 /words/field/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:888 3835 /words/field/citations/1/quote `field F T [COUNT] at OFF little|big` 3836 /words/field/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3837 /words/field/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3838 /words/field/example om2_layout 3839 /words/at/table kw2 3840 /words/at/id 190 3841 /words/at/category OM-2 3842 /words/at/profile OM-2 3843 /words/at/form field F T at OFF ... 3844 /words/at/arity 1 3845 /words/at/types/0 OFF: byte offset 3846 /words/at/result - 3847 /words/at/summary Introduces a layout field's byte offset. OM-2 units only (first line `om2`). 3848 /words/at/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3156-3157 3849 /words/at/citations/0/quote ret 190 3850 /words/at/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:888 3851 /words/at/citations/1/quote at OFF little|big 3852 /words/at/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3853 /words/at/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3854 /words/at/example om2_layout 3855 /words/little/table kw2 3856 /words/little/id 191 3857 /words/little/category OM-2 3858 /words/little/profile OM-2 3859 /words/little/form field ... at OFF little 3860 /words/little/arity 0 3861 /words/little/types [] 3862 /words/little/result - 3863 /words/little/summary Little-endian layout field. OM-2 units only (first line `om2`). 3864 /words/little/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3159-3160 3865 /words/little/citations/0/quote ret 191 3866 /words/little/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:888 3867 /words/little/citations/1/quote at OFF little|big 3868 /words/little/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3869 /words/little/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3870 /words/little/example om2_layout 3871 /words/big/table kw2 3872 /words/big/id 192 3873 /words/big/category OM-2 3874 /words/big/profile OM-2 3875 /words/big/form field ... at OFF big 3876 /words/big/arity 0 3877 /words/big/types [] 3878 /words/big/result - 3879 /words/big/summary Big-endian layout field (REV on load/store). OM-2 units only (first line `om2`). 3880 /words/big/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3162-3163 3881 /words/big/citations/0/quote ret 192 3882 /words/big/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:888 3883 /words/big/citations/1/quote at OFF little|big 3884 /words/big/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3885 /words/big/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3886 /words/big/example om2_layout 3887 /words/part/table kw2 3888 /words/part/id 193 3889 /words/part/category OM-2 3890 /words/part/profile OM-2 3891 /words/part/form part A o k 3892 /words/part/arity 3 3893 /words/part/types/0 A: array name 3894 /words/part/types/1 o: ulong 3895 /words/part/types/2 k: ulong 3896 /words/part/result view/edit of k elements 3897 /words/part/summary Elements o..o+k-1 of A, only as an argument for an unsized parameter. OM-2 units only (first line `om2`). 3898 /words/part/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3165-3166 3899 /words/part/citations/0/quote ret 193 3900 /words/part/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:935 3901 /words/part/citations/1/quote `part A o k` (o, k ulong; another type is error 7) 3902 /words/part/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3903 /words/part/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3904 /words/part/example om2_part 3905 /words/out/table kw2 3906 /words/out/id 194 3907 /words/out/category OM-2 3908 /words/out/profile OM-2 3909 /words/out/form NAME out T N 3910 /words/out/arity 2 3911 /words/out/types/0 T: element type 3912 /words/out/types/1 N: length 3913 /words/out/result - 3914 /words/out/summary A parameter written by the unit; inside it is an edit of T N. OM-2 units only (first line `om2`). 3915 /words/out/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3168-3169 3916 /words/out/citations/0/quote ret 194 3917 /words/out/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:943 3918 /words/out/citations/1/quote A parameter `NAME out T N` 3919 /words/out/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3920 /words/out/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3921 /words/out/example om2_out 3922 /words/export/table kw2 3923 /words/export/id 195 3924 /words/export/category OM-2 3925 /words/export/profile OM-2 3926 /words/export/form export fn NAME ... 3927 /words/export/arity 0 3928 /words/export/types [] 3929 /words/export/result - 3930 /words/export/summary Mark a function-mode entry (no fn main). OM-2 units only (first line `om2`). 3931 /words/export/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:3171-3172 3932 /words/export/citations/0/quote ret 195 3933 /words/export/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:947 3934 /words/export/citations/1/quote `export fn NAME ...` at top level 3935 /words/export/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:830 3936 /words/export/citations/2/quote rotr rotl unroll inline fresh abstract seal open holds layout field at little big part out 3937 /words/export/example om2_export 3938 /topics/requires/form requires BOOL 3939 /topics/requires/summary OM-2 precondition: part of a function's prefix, checked on entry; false traps 9. 3940 /topics/requires/details Clauses run in declaration order after parameter binding. Predicates are pure: integer/bool operations, conversions, len and array reads only. 3941 /topics/requires/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1785 3942 /topics/requires/citations/0/quote `requires BOOL` and `ensures BOOL` form a function's prefix 3943 /topics/requires/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1830 3944 /topics/requires/citations/1/quote False `requires` uses existing trap **9** 3945 /topics/requires/example contract_fail 3946 /topics/ensures/form ensures BOOL 3947 /topics/ensures/summary OM-2 postcondition: checked on every normal return; `result` names the returned value; false traps 10. 3948 /topics/ensures/details Not run on exit or a trap. A parameter means its current value at return. 3949 /topics/ensures/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1790 3950 /topics/ensures/citations/0/quote Postconditions execute in declaration order on **every normal return** 3951 /topics/ensures/example contracts 3952 /topics/invariant/form invariant BOOL 3953 /topics/invariant/summary OM-2 loop invariant: the prefix of a while or for body, checked at the loop head; false traps 10. 3954 /topics/invariant/details Runs on entry, every backedge and before the final false condition. 3955 /topics/invariant/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1803 3956 /topics/invariant/citations/0/quote `invariant BOOL` forms the prefix of a `while` or `for` body 3957 /topics/invariant/example contracts 3958 /topics/result/form result 3959 /topics/result/summary OM-2: the returned value, available only inside ensures clauses (elsewhere error 30). 3960 /topics/result/details It has the declared return type; the caller receives the same value after the checks. 3961 /topics/result/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1794 3962 /topics/result/citations/0/quote The read-only name `result` is available only in value postconditions. 3963 /topics/result/example contracts 3964 /topics/om2/form om2 | om2 diag | om2 fmt 3965 /topics/om2/summary First line that opts a unit into profile OM-2 (rotate, unroll, inline, layout, abstract types, contracts, unsized views). 3966 /topics/om2/details Leading blank and note lines are skipped; in an OM-1 unit the om2 line is error 16. 3967 /topics/om2/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:827 3968 /topics/om2/citations/0/quote when the next line is exactly `om2` 3969 /topics/om2/example om2_rotate 3970 /topics/exit_status/summary Program exit status: main's value modulo 256; a trap N exits 100 + N; exit v exits v modulo 256. 3971 /topics/exit_status/details An explicit exit 101..114 cannot be told apart from a trap by status alone. 3972 /topics/exit_status/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:430 3973 /topics/exit_status/citations/0/quote main's value modulo 256 3974 /topics/exit_status/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:431 3975 /topics/exit_status/citations/1/quote exit status 100 + the trap code 3976 /topics/exit_status/example exit 3977 /topics/packed_list/summary Host-word argument lists: little-endian u16 count, then per record a u16 length and the bytes. 3978 /topics/packed_list/details An exec argument packet (execprog, execpure, the first packet of execenv) is at most 65536 bytes with count 1..1024; every other packed list (renames, link, symlnk, the execenv environment) at most 4096 bytes with count 1..64. Zero bytes, truncation, trailing bytes or an out-of-range count trap 3. 3979 /topics/packed_list/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1276 3980 /topics/packed_list/citations/0/quote A packed list is a little-endian `u16` count followed by that many records 3981 /topics/packed_list/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1278-1279 3982 /topics/packed_list/citations/1/quote An exec argument packet (`execprog`, `execpure` and the first packet of `execenv`) is at most 65536 bytes with count 1..1024; 3983 /topics/packed_list/example dirs 3984 /topics/paths/summary Host paths are length-delimited byte slices of at most 4095 bytes; embedded zero bytes trap 3. 3985 /topics/paths/details Relative paths resolve against the current directory (AT_FDCWD). 3986 /topics/paths/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1224 3987 /topics/paths/citations/0/quote Paths are at most 4095 bytes. 3988 /topics/paths/example files 3989 /topics/host_words/summary Native host words: Linux system calls with checked slices; results are long, negative errno on failure. 3990 /topics/host_words/details They do not form a sandbox: they run with the process's permissions. Program mode only, except that an OM-2 function unit may use fopen, fclose, fstat, stat, lstat, the four identity words, the clocks monons, realns and sleepns, and the twelve mapping/device words on AArch64. 3991 /topics/host_words/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1135 3992 /topics/host_words/citations/0/quote These operations do not form a sandbox 3993 /topics/host_words/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1112 3994 /topics/host_words/citations/1/quote an OM-2 function unit (first line `om2`, no `fn main`) may use the file 3995 /topics/host_words/example files 3996 /topics/compile_errors/summary omc writes `omc: line N: error K` to stderr and exits with K; use explain_error for any K. 3997 /topics/compile_errors/details Codes 1..30 exist at the pin. 3998 /topics/compile_errors/citations/0/ref omega-mv@`6c562dd1` seed/omc/omc.om:1944 3999 /topics/compile_errors/citations/0/quote fn fail code ulong to void 4000 /topics/compile_errors/example e03 4001 /topics/traps/summary Run-time traps 1..14 end a program with exit 100 + code. 4002 /topics/traps/details Codes are part of the observable semantics and are never renumbered. Loops trap 4 past their bound: N from `bound N`, else `1000000` for a while and for a for whose count is not a number. 4003 /topics/traps/citations/0/ref omega-mv@`6c562dd1` src/compiler/osc_ir.h:165 4004 /topics/traps/citations/0/quote Trap codes are part of the observable semantics 4005 /topics/traps/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:64 4006 /topics/traps/citations/1/quote default `1000000`; past N iterations: trap 4 4007 /topics/traps/citations/2/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:66-68 4008 /topics/traps/citations/2/quote With no bound a number count is not guarded and any other count traps 4 after `1000000` passes 4009 /topics/traps/example t02 4010 /topics/loops/form while COND [bound N] / end | for NAME TYPE COUNT [bound N] / end 4011 /topics/loops/summary Every loop except a for with a number count and no bound traps 4 (exit 104) past a pass limit. 4012 /topics/loops/details `bound N` (1..`9223372036854775807`; IR mode 1..`1000000`) caps a while or a for at N passes. Without it a while, and a for whose COUNT is not a number, stop at `1000000` passes; a for with a number COUNT is unguarded. 4013 /topics/loops/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:63-64 4014 /topics/loops/citations/0/quote N 1..`9223372036854775807` (a number or any integer const; IR mode: 1..`1000000`), default `1000000`; past N iterations: trap 4 4015 /topics/loops/citations/1/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:66-68 4016 /topics/loops/citations/1/quote With no bound a number count is not guarded and any other count traps 4 after `1000000` passes; with `bound N` any count traps 4 after N passes 4017 /topics/loops/example for_guard 4018 /topics/contracts/summary OM-2 contracts: requires, ensures and invariant clauses checked at run time (traps 9 and 10). 4019 /topics/contracts/details Compiler error 30 covers misplaced contracts, unavailable result and impure predicates. 4020 /topics/contracts/citations/0/ref omega-mv@`6c562dd1` docs/one_layer/OMEGESE.md:1834 4021 /topics/contracts/citations/0/quote Compiler error **30** means misplaced 4022 /topics/contracts/example contracts 4023 /examples/hello/mode run 4024 /examples/hello/exit 0 4025 /examples/hello/stdout hello\n 4026 /examples/ints/mode run 4027 /examples/ints/exit 61 4028 /examples/arith/mode run 4029 /examples/arith/exit 91 4030 /examples/control/mode run 4031 /examples/control/exit 131 4032 /examples/for_guard/mode trap 4033 /examples/for_guard/trap 4 4034 /examples/arrays/mode run 4035 /examples/arrays/exit 10 4036 /examples/calls/mode run 4037 /examples/calls/exit 55 4038 /examples/exit/mode run 4039 /examples/exit/exit 44 4040 /examples/trapword/mode trap 4041 /examples/trapword/trap 4 4042 /examples/free_refused/mode error 4043 /examples/free_refused/code 9 4044 /examples/free_refused/line 3 4045 /examples/own_refused/mode error 4046 /examples/own_refused/code 9 4047 /examples/own_refused/line 3 4048 /examples/structs/mode run 4049 /examples/structs/exit 41 4050 /examples/floats/mode run 4051 /examples/floats/exit 11 4052 /examples/consts/mode run 4053 /examples/consts/exit 35 4054 /examples/om2_rotate/mode run 4055 /examples/om2_rotate/exit 3 4056 /examples/om2_unroll/mode run 4057 /examples/om2_unroll/exit 14 4058 /examples/om2_abstract/mode run 4059 /examples/om2_abstract/exit 5 4060 /examples/om2_fresh/mode run 4061 /examples/om2_fresh/exit 5 4062 /examples/om2_layout/mode run 4063 /examples/om2_layout/exit 81 4064 /examples/om2_part/mode run 4065 /examples/om2_part/exit 55 4066 /examples/om2_out/mode run 4067 /examples/om2_out/exit 12 4068 /examples/om2_export/mode compile 4069 /examples/contracts/mode run 4070 /examples/contracts/exit 0 4071 /examples/contract_fail/mode trap 4072 /examples/contract_fail/trap 9 4073 /examples/files/mode run 4074 /examples/files/exit 0 4075 /examples/dirs/mode run 4076 /examples/dirs/exit 0 4077 /examples/procs/mode run 4078 /examples/procs/exit 0 4079 /examples/argsenv/mode run 4080 /examples/argsenv/exit 1 4081 /examples/argtrap/mode trap 4082 /examples/argtrap/trap 3 4083 /examples/clock/mode run 4084 /examples/clock/exit 0 4085 /examples/sockets/mode run 4086 /examples/sockets/exit 0 4087 /examples/mapping/mode run 4088 /examples/mapping/exit 0 4089 /examples/limits/mode run 4090 /examples/limits/exit 0 4091 /examples/sched/mode run 4092 /examples/sched/exit 0 4093 /examples/vfio/mode run 4094 /examples/vfio/exit 0 4095 /examples/vfioirq_trap/mode trap 4096 /examples/vfioirq_trap/trap 3 4097 /examples/kfd/mode run 4098 /examples/kfd/exit 0 4099 /examples/kfdmap_trap/mode trap 4100 /examples/kfdmap_trap/trap 3 4101 /examples/fma/mode run 4102 /examples/fma/exit 7 4103 /examples/e03/mode error 4104 /examples/e03/code 3 4105 /examples/e03/line 2 4106 /examples/e04/mode error 4107 /examples/e04/code 4 4108 /examples/e04/line 2 4109 /examples/e05/mode error 4110 /examples/e05/code 5 4111 /examples/e05/line 2 4112 /examples/e06/mode error 4113 /examples/e06/code 6 4114 /examples/e06/line 2 4115 /examples/e07/mode error 4116 /examples/e07/code 7 4117 /examples/e07/line 2 4118 /examples/e08/mode error 4119 /examples/e08/code 8 4120 /examples/e08/line 2 4121 /examples/e09/mode error 4122 /examples/e09/code 9 4123 /examples/e09/line 2 4124 /examples/e10/mode error 4125 /examples/e10/code 10 4126 /examples/e10/line 1 4127 /examples/e11/mode error 4128 /examples/e11/code 11 4129 /examples/e11/line 2 4130 /examples/e12/mode error 4131 /examples/e12/code 12 4132 /examples/e12/line 18 4133 /examples/e13/mode error 4134 /examples/e13/code 13 4135 /examples/e13/line 2 4136 /examples/e14/mode error 4137 /examples/e14/code 14 4138 /examples/e14/line 1 4139 /examples/e15/mode error 4140 /examples/e15/code 15 4141 /examples/e15/line 3 4142 /examples/e16/mode error 4143 /examples/e16/code 16 4144 /examples/e16/line 1 4145 /examples/e17/mode error 4146 /examples/e17/code 17 4147 /examples/e17/line 3 4148 /examples/e18/mode error 4149 /examples/e18/code 18 4150 /examples/e18/line 3 4151 /examples/e19/mode error 4152 /examples/e19/code 19 4153 /examples/e19/line 5 4154 /examples/e20/mode error 4155 /examples/e20/code 20 4156 /examples/e20/line 3 4157 /examples/e21/mode error 4158 /examples/e21/code 21 4159 /examples/e21/line 3 4160 /examples/e22/mode error 4161 /examples/e22/code 22 4162 /examples/e22/line 1 4163 /examples/e23/mode error 4164 /examples/e23/code 23 4165 /examples/e23/line 2 4166 /examples/e25/mode error 4167 /examples/e25/code 25 4168 /examples/e25/line 1 4169 /examples/e27/mode error 4170 /examples/e27/code 27 4171 /examples/e27/line 3 4172 /examples/e28/mode error 4173 /examples/e28/code 28 4174 /examples/e28/line 4 4175 /examples/e29/mode error 4176 /examples/e29/code 29 4177 /examples/e29/line 3 4178 /examples/e30/mode error 4179 /examples/e30/code 30 4180 /examples/e30/line 3 4181 /examples/t01/mode trap 4182 /examples/t01/trap 1 4183 /examples/t02/mode trap 4184 /examples/t02/trap 2 4185 /examples/t03/mode trap 4186 /examples/t03/trap 3 4187 /examples/t04/mode trap 4188 /examples/t04/trap 4 4189 /examples/t05/mode trap 4190 /examples/t05/trap 5 4191 /examples/t06/mode trap 4192 /examples/t06/trap 6 4193 /examples/t07/mode trap 4194 /examples/t07/trap 7 4195 /examples/t08/mode trap 4196 /examples/t08/trap 8 4197 /examples/t11/mode trap 4198 /examples/t11/trap 11 4199 /examples/t12/mode trap 4200 /examples/t12/trap 12 4201 /examples/t13/mode trap 4202 /examples/t13/trap 13 4203 /examples/t14/mode trap 4204 /examples/t14/trap 14 4205 /examples/t10/mode trap 4206 /examples/t10/trap 10 4207 /examples/cpu_order/mode run 4208 /examples/cpu_order/exit 5 4209 /examples/qty/mode run 4210 /examples/qty/exit 42 4211 /examples/secrets/mode run 4212 /examples/secrets/exit 10 4213 /examples/peername/mode run 4214 /examples/peername/exit 9 4215 /examples/pools/mode run 4216 /examples/pools/exit 42 4217 /examples/pools/stdout