nx_learnmine_gate.nx
buildroot/runtime/nx_learnmine_gate.nx
about
nx_learnmine_gate.nx -- THE LEARNING-MINING GATE (2026-09-06). An archive.org advancedsearch listing is assembled at runtime
under /tmp/nx_learnmine_gate/ from bytes the gate writes itself (quotes, escapes, a unicode escape, an array-valued
description and subject, a pipe and a newline inside a value, an item with no date and no downloads, a description longer
than the announced head) and digested through the lib: the item count, the census by media type, newest and oldest
dates, decoded and sanitised fields, the subject table ordered by count, the truncation announcement; then the refusals
by name (an unclosed object, a listing without docs, an absent file) and the command through the ladder.
usage: nx_learnmine_gate (no args)
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_gatekit_lib.nxnx_learnmine_lib.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 14 | const LG_DIR: *u8 = "/tmp/nx_learnmine_gate" |
| 15 | const LG_GOOD: *u8 = "/tmp/nx_learnmine_gate/listing.json" |
| 16 | const LG_BAD: *u8 = "/tmp/nx_learnmine_gate/unclosed.json" |
| 17 | const LG_NODOCS: *u8 = "/tmp/nx_learnmine_gate/nodocs.json" |
| 18 | const LG_ABSENT: *u8 = "/tmp/nx_learnmine_gate/absent.json" |
| 19 | const LG_ELF_LIVE: *u8 = "./nx_learnmine.elf" |
| 20 | const LG_ELF_STAGE: *u8 = "./nx_learnmine.sov.elf.new" |
| 21 | const LG_ELF_BUILD: *u8 = "buildroot/_build/nx_learnmine.sov.elf" |
| 22 | const LG_DIR_MODE: i64 = 493 |
| 23 | const LG_FILE_MODE: i64 = 420 |
| 24 | const LG_CAP: i64 = 65536 |
| 25 | const LG_ITEMS: i64 = 4 |
| 26 | const LG_LONG_DESC: i64 = 300 |
| 27 | const LG_Q: i64 = 34 |
| 28 | const LG_BS: i64 = 92 |
| 29 | const LG_ID1: *u8 = "anime-nyan-mmd-physics-2025" |
functions
| 31 | func lg_write_file(path: *u8, b: *u8, n: i64) -> i64 |
| 39 | func lg_exists(path: *u8) -> i64 { let fd: i64 = sys_openat_rd(path); if fd < 0 { return 0 } sys_close(fd); return 1 } |
| 41 | func lg_b(buf: *u8, o: i64, c: i64) -> i64 { buf[o] = c as u8; return o + 1 } |
| 42 | func lg_q(buf: *u8, o: i64, s: *u8) -> i64 { var p: i64 = lg_b(buf, o, LG_Q); p = lm_cat(buf, p, s); return lg_b(buf, p, LG_Q) } |
| 43 | func lg_k(buf: *u8, o: i64, key: *u8) -> i64 { var p: i64 = lg_q(buf, o, key); return lg_b(buf, p, 58) } |
| 44 | func lg_kv(buf: *u8, o: i64, key: *u8, val: *u8) -> i64 { var p: i64 = lg_k(buf, o, key); return lg_q(buf, p, val) } |
| 45 | func lg_comma(buf: *u8, o: i64) -> i64 { return lg_b(buf, o, 44) } |
| 47 | func lg_build_listing(buf: *u8, long: i64) -> i64 |
| 99 | func main(argc: i64, argv: *i64) -> i64 |