zig/lib/std
Matthew Lugg 74931fe25c
std.debug.lockStderrWriter: also return ttyconf
`std.Io.tty.Config.detect` may be an expensive check (e.g. involving
syscalls), and doing it every time we need to print isn't really
necessary; under normal usage, we can compute the value once and cache
it for the whole program's execution. Since anyone outputting to stderr
may reasonably want this information (in fact they are very likely to),
it makes sense to cache it and return it from `lockStderrWriter`. Call
sites who do not need it will experience no significant overhead, and
can just ignore the TTY config with a `const w, _` destructure.
2025-10-30 09:31:28 +00:00
..
Build std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
builtin feat: init x86_16 arch via CBE 2025-10-27 11:19:51 +01:00
c remove all Oracle Solaris support 2025-10-27 07:35:38 -07:00
compress add deflate compression, simplify decompression 2025-09-30 18:28:47 -07:00
crypto std.Io.Threaded: fix compilation failures on Windows 2025-10-29 06:20:50 -07:00
debug Merge pull request #25733 from GasInfinity-Forks/x86_16-cpu_context 2025-10-30 01:41:32 +01:00
dwarf fix compiler ftbfs from std.macho and std.dwarf changes 2025-09-30 13:44:51 +01:00
fmt std.fmt: breaking API changes 2025-07-07 22:43:51 -07:00
fs std.Io.Threaded: add ioBasic which disables networking 2025-10-29 06:20:51 -07:00
hash Remove usages of deprecatedWriter 2025-09-18 22:39:33 -07:00
heap std: fix compilation errors on Windows 2025-10-29 06:20:50 -07:00
http std.http: disable failing test on 32-bit arm 2025-10-29 13:50:04 -07:00
Io Merge pull request #25763 from mrjbq7/cancelled 2025-10-30 04:40:13 +00:00
json std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
math Coff: implement threadlocal variables 2025-10-10 22:47:47 -07:00
mem std.mem.Allocator: fix resize doc comment 2025-10-22 11:41:16 +02:00
meta
os Merge pull request #25763 from mrjbq7/cancelled 2025-10-30 04:40:13 +00:00
posix std: make signal numbers into an enum 2025-10-29 06:20:51 -07:00
process std.Io.Threaded: add ioBasic which disables networking 2025-10-29 06:20:51 -07:00
Random Remove usages of deprecatedWriter 2025-09-18 22:39:33 -07:00
sort std.sort.pdq: fix out-of-bounds access in partialInsertionSort (#25253) 2025-09-17 19:54:15 -07:00
tar compiler: update for introduction of std.Io 2025-10-29 06:20:49 -07:00
Target Merge pull request #25733 from GasInfinity-Forks/x86_16-cpu_context 2025-10-30 01:41:32 +01:00
testing fix compile errors and minor bugs 2025-09-30 13:44:54 +01:00
Thread Merge pull request #25763 from mrjbq7/cancelled 2025-10-30 04:40:13 +00:00
time
tz
unicode Remove usages of deprecatedWriter 2025-09-18 22:39:33 -07:00
valgrind Remove numerous things deprecated during the 0.14 release cycle 2025-07-11 08:17:43 +02:00
zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
zon coerce vectors to arrays rather than inline for 2025-09-20 18:33:00 -07:00
array_hash_map.zig Coff2: create a new linker from scratch 2025-10-02 17:44:52 -04:00
array_list.zig std.ArrayList: swapRemove set removed element to undefined (#25514) 2025-10-11 19:04:32 -07:00
ascii.zig std.fmt: delete deprecated APIs 2025-08-31 12:49:18 -07:00
atomic.zig std.atomic: define cache line size for alpha, hppa, microblaze, sh 2025-10-23 09:27:17 +02:00
base64.zig std.Io: delete GenericWriter 2025-08-28 18:30:57 -07:00
bit_set.zig std.bit_set: Disable IntegerBitSet decltest on RISC-V with vector support 2025-07-01 23:03:15 +02:00
BitStack.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
buf_map.zig
buf_set.zig
Build.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
builtin.zig Merge pull request #25592 from ziglang/init-std.Io 2025-10-29 13:51:37 -07:00
c.zig std.c: fix msghdr struct on big endian targets 2025-10-29 06:20:52 -07:00
coff.zig Coff: implement threadlocal variables 2025-10-10 22:47:47 -07:00
compress.zig std.compress: rework flate to new I/O API 2025-07-31 22:10:11 -07:00
crypto.zig std.crypto: add AES-CCM and CBC-MAC (#25526) 2025-10-14 12:00:44 +02:00
debug.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
deque.zig std: remove loop from growCapacity 2025-09-20 14:34:18 -07:00
DoublyLinkedList.zig *LinkedList.remove() assumes node is in the list 2025-10-25 21:10:02 -07:00
dwarf.zig
dynamic_library.zig std: fix seekBy unit test 2025-10-29 06:20:49 -07:00
elf.zig std: updating to std.Io interface 2025-10-29 06:20:48 -07:00
enums.zig std.enums: fix EnumIndexer branch quota 2025-07-31 22:10:22 +01:00
fmt.zig std.fmt: migrate bufPrintZ to bufPrintSentinel (#25260) 2025-09-19 05:02:22 +00:00
fs.zig std.Io.Threaded: add ioBasic which disables networking 2025-10-29 06:20:51 -07:00
gpu.zig spirv: error when execution mode is set more than once 2025-05-21 13:01:21 +03:30
hash.zig simplify std.hash.Adler32 2025-07-31 22:10:11 -07:00
hash_map.zig std.hash_map: tune slow unit tests 2025-10-29 06:20:52 -07:00
heap.zig remove all Oracle Solaris support 2025-10-27 07:35:38 -07:00
http.zig http.BodyWriter: improve clarity of chunked state machine 2025-08-17 14:42:57 +02:00
Io.zig std.Io: add unit test for select 2025-10-29 06:20:52 -07:00
json.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
leb128.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
log.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
macho.zig std: fixes 2025-09-30 13:44:51 +01:00
math.zig std: skip some failing tests on hexagon 2025-08-30 06:36:41 +02:00
mem.zig std.mem: improve containsAtLeastScalar implementation and rename 2025-10-29 06:20:49 -07:00
meta.zig std: disable a few failing tests on hexagon 2025-10-16 22:11:51 +02:00
multi_array_list.zig std: remove loop from growCapacity 2025-09-20 14:34:18 -07:00
once.zig
os.zig std.fs: use BadPathName rather than InvalidWtf8 on Windows 2025-10-29 06:20:50 -07:00
pdb.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
pie.zig std.pie: add sh support 2025-10-23 09:27:17 +02:00
posix.zig std.Io.Threaded: install and cleanup signal handlers 2025-10-29 06:20:52 -07:00
priority_dequeue.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
priority_queue.zig
process.zig remove all Oracle Solaris support 2025-10-27 07:35:38 -07:00
Progress.zig std: make signal numbers into an enum 2025-10-29 06:20:51 -07:00
Random.zig std.Io.net: progress towards DNS resolution 2025-10-29 06:20:48 -07:00
SemanticVersion.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
simd.zig std: disable a few failing tests on hexagon 2025-10-16 22:11:51 +02:00
SinglyLinkedList.zig SinglyLinkedList.remove docs: Assumes -> asserts 2025-10-25 21:28:54 -07:00
sort.zig
start.zig std.Io.Threaded: install and cleanup signal handlers 2025-10-29 06:20:52 -07:00
static_string_map.zig
std.zig std.Io.Threaded: install and cleanup signal handlers 2025-10-29 06:20:52 -07:00
tar.zig std.Io: add dirOpenDir and WASI impl 2025-10-29 06:20:50 -07:00
Target.zig remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
testing.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
Thread.zig std.Io.Threaded: add ioBasic which disables networking 2025-10-29 06:20:51 -07:00
time.zig std: fix some Io compilation errors 2025-10-29 06:20:49 -07:00
treap.zig std.ArrayList: make unmanaged the default 2025-08-11 15:52:49 -07:00
tz.zig std.tz: fix redundant endian handling 2025-08-28 18:30:57 -07:00
unicode.zig std: move some windows path checking logic 2025-10-29 06:20:50 -07:00
Uri.zig compiler: update for introduction of std.Io 2025-10-29 06:20:49 -07:00
valgrind.zig remove condition codes 2025-07-16 10:27:39 -07:00
wasm.zig
zig.zig std.debug.lockStderrWriter: also return ttyconf 2025-10-30 09:31:28 +00:00
zip.zig std.Io: delete GenericReader 2025-08-29 17:14:26 -07:00
zon.zig zon: Add anonymous struct literal in the example 2025-08-15 23:35:16 +02:00