zig/lib/std
Pat Tullmann 138d30bb47 wasi: fix wasm-wasi-musl constants
Zig's copy of the `SYMLINK_{NO,}FOLLOW` constants from wasi-musl was
wrong, as were the `IFIFO` and `IFSOCK` file type flags.  Fix these up,
and add comments pointing to exactly where they come from (as the
wasi-musl source has lots of unused, different definitions of these
constants).

Add tests for the Zig convention that WASM preopen 3 is the current
working directory.   This is true for WASM with or without libc.

Enable several fs and posix tests that are now passing (not necessarily
because of this change) on wasm targets.

Fixes #20890.
2025-02-09 09:08:11 +01:00
..
Build std.ArrayHashMap: popOrNul() -> pop() 2025-02-07 17:52:19 -08:00
c runtime page size detection 2025-02-06 14:23:23 -08:00
compress std.compress.flate.Lookup: Replace invisible doc comments with top-level doc comments 2025-01-22 23:34:57 +09:00
crypto Read System.keychain as well as SystemRootCertificates.keychain for MacOS CA Bundle 2025-02-09 04:16:56 +01:00
debug adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
dwarf Dwarf: remove redundant debug info 2024-12-19 17:10:03 -05:00
fmt std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
fs wasi: fix wasm-wasi-musl constants 2025-02-09 09:08:11 +01:00
hash all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
heap std.heap.SmpAllocator: back to simple free 2025-02-08 16:46:56 -08:00
http Revert "std.http.Server: add Request.getHeader() function (#21625)" 2025-01-27 11:13:56 -08:00
io std.process: adding hasNonEmptyEnvVar() and using for NO_COLOR 2025-02-06 15:00:48 +01:00
json all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
math x86_64: rewrite scalar @truncate 2025-02-06 16:14:53 -05:00
mem std.mem.Allocator.VTable: improve doc comment wording 2025-02-06 14:50:20 -08:00
meta all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
net std.net.listen: no REUSEPORT with unix socket 2025-01-26 18:40:34 +01:00
os wasi: fix wasm-wasi-musl constants 2025-02-09 09:08:11 +01:00
posix wasi: fix wasm-wasi-musl constants 2025-02-09 09:08:11 +01:00
process process.Child.collectOutput: Switch to Allocator/ArrayListUnmanaged 2025-02-03 17:07:27 -08:00
Random add std.testing.random_seed 2024-07-23 11:43:12 -07:00
sort compiler,lib,test,langref: migrate @setCold to @branchHint 2024-08-27 00:44:35 +01:00
tar Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
Target wasm: Add a nontrapping_bulk_memory_len0 feature. 2025-01-22 20:56:28 +01:00
testing std.testing.FailingAllocator: flatten namespace 2025-02-06 14:23:23 -08:00
Thread std.posix: Use separate clock ID enums for clock_gettime() and timerfd_create() (#22627) 2025-02-01 06:53:57 +00:00
time std.time.epoch: Fix comments referring to epoch as 1970-10-01 2024-08-15 17:54:27 -07:00
tz
unicode
valgrind std.valgrind: Fix some compile errors. 2024-11-04 10:56:32 +01:00
zig compiler: provide result type to sentinel expression in slice operation 2025-02-05 19:36:14 +00:00
zip std.zip: Add ZIP64 support for local file header extra field 2025-01-17 22:55:55 +01:00
zon compiler,std: implement ZON support 2025-02-03 09:14:37 +00:00
array_hash_map.zig std.ArrayHashMap: popOrNul() -> pop() 2025-02-07 17:52:19 -08:00
array_list.zig std.mem.Allocator: introduce remap function to the interface 2025-02-06 14:23:23 -08:00
ascii.zig Updated ascii.zig's isWhitespace function to use switch instead of for loop. (#22094) 2024-11-29 12:26:23 -08:00
atomic.zig std.atomic: fix cache line size for RISC-V 2025-01-12 04:51:00 +01:00
base64.zig stdlib : base64 encode to writer (#20961) 2024-09-04 08:10:12 +00:00
bit_set.zig std.DynamicBitSet: remove wrong and useless comments (#21418) 2024-09-19 17:06:23 -07:00
BitStack.zig
bounded_array.zig Revert "Smaller memory footprint for BoundedArray (#16299)" 2024-08-23 22:30:10 -07:00
buf_map.zig
buf_set.zig
Build.zig std.Build: add more explicit error sets to some functions 2025-01-26 19:03:33 +01:00
builtin.zig std: remove old declarations now a zig1 update has happened 2025-01-24 22:33:23 +00:00
c.zig wasi: fix wasm-wasi-musl constants 2025-02-09 09:08:11 +01:00
coff.zig std.{coff,elf}: Remove the {MachineType,EM}.toTargetCpuArch() functions. 2024-08-23 19:56:24 +02:00
compress.zig fix typo of anytype to type 2025-02-05 13:58:15 +01:00
crypto.zig Reinstantiates AEGIS-MAC with the final construction (#22205) 2024-12-11 18:52:43 +01:00
debug.zig std.os.uefi: Adjust casing of remaining enum fields 2025-02-09 02:23:53 +00:00
dwarf.zig Dwarf: cleanup emitted debug info 2024-08-22 08:44:08 +02:00
dynamic_library.zig adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
elf.zig link.Elf: eliminate an O(N^2) algorithm in flush() 2024-10-12 10:44:17 -07:00
enums.zig all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
fifo.zig runtime page size detection 2025-02-06 14:23:23 -08:00
fmt.zig std: check max depth for vector type in formatType 2025-01-26 18:53:11 +01:00
fs.zig fix compilation errors for fs and fs.Dir (#21643) 2024-10-17 01:08:58 +02:00
gpu.zig std.gpu: add instanceIndex 2024-11-01 02:04:27 +03:30
hash.zig std.hash.int: avoid words like "easy" and "fast" in doc comments 2024-11-24 15:30:52 -08:00
hash_map.zig std.hash_map: placeholder for doc comments 2025-02-06 14:23:23 -08:00
heap.zig don't try to test SmpAllocator in single threaded mode 2025-02-07 15:36:00 -08:00
http.zig add std.http.WebSocket 2024-08-07 00:48:32 -07:00
io.zig all: update to std.builtin.Type.{Pointer,Array,StructField} field renames 2025-01-16 12:49:58 +00:00
json.zig
leb128.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
linked_list.zig
log.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
macho.zig remove hard tabs from source code 2024-07-31 16:57:42 -07:00
math.zig std.math: rename make_f80 to F80.toFloat and break_f80 to F80.fromFloat 2024-09-02 00:10:22 +03:00
mem.zig std: update to new Allocator API 2025-02-06 14:23:23 -08:00
meta.zig std.meta.FieldType: use builtin and deprecate 2025-02-04 16:12:10 +00:00
multi_array_list.zig std.MultiArrayList: popOrNull() -> pop() 2025-02-07 17:50:09 -08:00
net.zig std.net.listen: no REUSEPORT with unix socket 2025-01-26 18:40:34 +01:00
once.zig compiler,lib,test,langref: migrate @setCold to @branchHint 2024-08-27 00:44:35 +01:00
os.zig x86_64: implement switch jump tables 2025-01-16 20:42:08 -05:00
pdb.zig std.pdb: obey naming conventions 2024-08-29 23:43:52 +01:00
posix.zig wasi: fix wasm-wasi-musl constants 2025-02-09 09:08:11 +01:00
priority_dequeue.zig add std.testing.random_seed 2024-07-23 11:43:12 -07:00
priority_queue.zig std.priority_queue: add useful functions from ArrayList API 2025-02-01 19:02:39 +01:00
process.zig adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
Progress.zig all: update to std.builtin.Type.Pointer.Size field renames 2025-01-16 12:46:29 +00:00
Random.zig Allocator/Random: document that comparing ptr may result in illegal behavior 2025-02-03 17:07:28 -08:00
RingBuffer.zig
segmented_list.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
SemanticVersion.zig compiler: remove anonymous struct types, unify all tuples 2024-10-31 20:42:53 +00:00
simd.zig x86_64: implement switch jump tables 2025-01-16 20:42:08 -05:00
sort.zig std.equalRange: Compute lower and upper bounds simultaneously 2024-09-23 13:03:06 -07:00
start.zig adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
static_string_map.zig
std.zig adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
tar.zig Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
Target.zig std.Target: Bump UEFI max version to 2.11 2025-02-08 21:02:17 +00:00
testing.zig std.testing: don't ask wasm to stack trace 2025-02-06 14:46:16 -08:00
Thread.zig adjust runtime page size APIs 2025-02-06 14:23:23 -08:00
time.zig std.os.uefi: Adjust casing of remaining enum fields 2025-02-09 02:23:53 +00:00
treap.zig Condense and extend std.Treap's traversal functionalities. (#20002) 2024-07-28 19:47:55 -07:00
tz.zig
unicode.zig std: update eval branch quotas after bdbc485 2024-08-21 01:30:46 +01:00
Uri.zig
valgrind.zig std.valgrind: Port doClientRequest() to all archs supported by Valgrind. 2024-11-04 12:39:48 +01:00
wasm.zig wasm linker: implement @tagName for sparse enums 2025-01-15 15:11:36 -08:00
zig.zig std.process: adding hasNonEmptyEnvVar() and using for NO_COLOR 2025-02-06 15:00:48 +01:00
zip.zig runtime page size detection 2025-02-06 14:23:23 -08:00
zon.zig compiler,std: implement ZON support 2025-02-03 09:14:37 +00:00