nx_gunzip.nx
buildroot/runtime/nx_gunzip.nx
about
nx_gunzip.nx -- CLI for the sovereign decompressor: gzip / zlib / raw DEFLATE -> stdout or file.
The missing half of our compression story. nx_gzip COMPRESSES; nothing could decompress, so any
HTTP body with Content-Encoding: gzip was unreadable by the sovereign fetch path.
nx_gunzip <in.gz> [out] -- auto-detects gzip / zlib / raw by magic
nx_gunzip --crc <file> -- print the CRC32 of a file (the gzip integrity primitive)
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_inflate.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
| 13 | const GU_CAP: i64 = 268435456 |
| 14 | const GU_MODE: i64 = 0x1a4 |
functions
| 16 | func gu_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 17 | func gu_e(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(2, s, n); return 0 } |
| 18 | func gu_num(v: i64) -> i64 |
| 33 | func gu_reason(rc: i64) -> i64 |
| 49 | func main(argc: i64, argv: *i64) -> i64 |