Commit Graph
3 Commits
Author SHA1 Message Date
waozi dc2b2dc312 Give std's size_t libc parameters pointer-sized types
getcwd, readlink, read, write, bcopy, mempcpy, poll and curl_ws_recv took u64
or s64 for size_t, ssize_t and nfds_t values. On wasm32 that linked with a
function signature mismatch and trapped when called. A check now reads std's
bindings for these functions, and another builds file_tree_linux for wasm32.
2026-11-07 02:51:07 -03:00
waozi dc515999bf Return owned Text from the standard text producers
TextReplace, TextJoin, TextLower, TextHex, Float64Repr, the JsonWrite
family, JoinPath, ResolvePath, WorkingDirectory, CreateTemporaryDirectory,
CopyText, ReadStandardInput, DecodeReplace and the unicode case transforms
now return Text. Callers written for a string still get one; a caller that
keeps the result as Text frees it with its owner. 1000 rounds of four
producers leave 4000 allocations when used as strings and none as Text.
2026-11-06 13:41:28 -03:00
waozi 53113cac55 Write to standard error and read standard input from native std
std/stdio_linux gives native tools PrintError, WriteOutput and
ReadStandardInput instead of declaring write and read themselves.
2026-10-29 12:45:51 -03:00