zig/lib/std
Alex Rønne Petersen 6066e7bfd1
std.zig.target: Remove wasm32-freestanding-musl.
This is, at least today, a very broken target: It doesn't actually build either
musl or wasi-libc even if you use -lc. It does give you musl headers, but that's
it. Those headers are not terribly useful, however, without any implementation
code. You can sort of call some math functions because they just so happen to
have implementations in compiler-rt. But that's only true for a small subset,
and I don't think users should be relying on the ABI surface of a library that
is an implementation detail of the compiler.

Clearly, a freestanding-capable libc of sorts is a useful thing as evidenced by
newlib, picolibc, etc existing. However, calling it "musl" is misleading when it
isn't actually musl-compatible, nor can it ever be because the musl API surface
is inextricably tied to the Linux kernel. In the discussion on #20690, there was
agreement that once we split up the API and ABI components in the target string,
the API component should be about compatibility, not whether you literally get a
particular implementation of it. Also, we decided that Linux musl and wasi-libc
musl shouldn't use the same API tag precisely because they're not actually
compatible.

(And besides, how would any syscall even be implemented in freestanding? Who or
what would we be calling?)

So I think we should remove this triple for now. If we decide to reintroduce
something like this, especially once #2879 gets going, we should come up with a
bespoke name for it rather than using "musl".
2024-12-15 12:25:12 +01:00
..
Build Merge pull request #22035 from alexrp/unwind-fixes 2024-12-13 03:09:24 +01:00
c std.c.darwin: make os_log_t a pointer to opaque 2024-11-19 09:32:42 +00:00
compress Rewrite bit_reader and bit_writer to take advantage of current zig semantics and enhance readability (#21689) 2024-10-13 18:44:42 -07:00
crypto argon2: bail out if m < 8p (#22232) 2024-12-14 19:26:55 +00:00
debug defaultPanic: @trap on 'other' target 2024-11-29 15:30:05 -05:00
dwarf Dwarf: fix and test allowzero pointers 2024-08-17 05:57:45 -04:00
fmt std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
fs std.os.windows: Map PIPE_NOT_AVAILABLE from OpenFile() to error.NoDevice (#21938) 2024-11-27 22:33:29 +01:00
hash Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
heap Fix index calculation in WasmPageAllocator 2024-10-12 22:53:02 +02:00
http std.http.Client: change ssl key log creation permission bits 2024-11-07 20:56:33 -05:00
io Rewrite bit_reader and bit_writer to take advantage of current zig semantics and enhance readability (#21689) 2024-10-13 18:44:42 -07:00
json Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
math std.math: Disable isSignalNan test on mips32. 2024-11-26 18:29:13 +01:00
mem Allocator.free: document zero-length behavior 2024-11-24 18:19:11 -05:00
meta std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
net
os std.os.linux: Add unwinding protection in clone() implementations. 2024-12-11 00:10:17 +01:00
posix std.posix: Skip Stat struct comparison in fstatat test for s390x-linux. 2024-10-04 00:26:55 +02:00
process std.os.windows: Map PIPE_NOT_AVAILABLE from OpenFile() to error.NoDevice (#21938) 2024-11-27 22:33:29 +01:00
Random
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 Merge pull request #22067 from alexrp/pie-tests 2024-11-28 14:07:28 +01:00
testing
Thread std.Thread.Futex: Mark inline asm volatile in WasmImpl. 2024-11-27 23:24:37 +01:00
time
tz
unicode
valgrind std.valgrind: Fix some compile errors. 2024-11-04 10:56:32 +01:00
zig std.zig.target: Remove wasm32-freestanding-musl. 2024-12-15 12:25:12 +01:00
zip
array_hash_map.zig std.ArrayHashMap fix eql documentation 2024-12-11 15:21:56 -05:00
array_list.zig compiler: remove anonymous struct types, unify all tuples 2024-10-31 20:42:53 +00: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: add a function to get the cache line size for a particular cpu (#21956) 2024-11-13 05:35:05 +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 compiler: Improve the handling of unwind table levels. 2024-12-11 00:10:15 +01:00
builtin.zig compiler: Improve the handling of unwind table levels. 2024-12-11 00:10:15 +01:00
c.zig Also export mach_timebase_info_data from darwin 2024-12-14 03:16:34 +01:00
coff.zig std.{coff,elf}: Remove the {MachineType,EM}.toTargetCpuArch() functions. 2024-08-23 19:56:24 +02:00
compress.zig
crypto.zig Reinstantiates AEGIS-MAC with the final construction (#22205) 2024-12-11 18:52:43 +01:00
debug.zig defaultPanic: @trap on 'other' target 2024-11-29 15:30:05 -05:00
dwarf.zig Dwarf: cleanup emitted debug info 2024-08-22 08:44:08 +02:00
dynamic_library.zig std.dynamic_library: update to new elf API 2024-10-12 10:44:17 -07:00
elf.zig link.Elf: eliminate an O(N^2) algorithm in flush() 2024-10-12 10:44:17 -07:00
enums.zig std: avoid field/decl name conflicts 2024-08-29 20:39:11 +01:00
fifo.zig
fmt.zig std: Disable some vector-related tests on armeb. 2024-12-13 03:13:14 +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 add assertLocked to std.debug.SafetyLock 2024-11-22 18:39:17 -05:00
heap.zig Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
http.zig
io.zig std.io.Poller: handle EPIPE as EOF 2024-11-25 14:18:55 -08: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
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.mem: adjust semantics 2024-11-22 15:30:07 -08:00
meta.zig std.meta.eql: use == directly when comparing packed structs (#21982) 2024-11-24 14:29:44 -08:00
multi_array_list.zig compiler: allow files with AstGen errors to undergo semantic analysis 2024-12-05 19:58:38 +00:00
net.zig
once.zig compiler,lib,test,langref: migrate @setCold to @branchHint 2024-08-27 00:44:35 +01:00
os.zig
pdb.zig std.pdb: obey naming conventions 2024-08-29 23:43:52 +01:00
posix.zig std.Build.Cache.hit: work around macOS kernel bug 2024-12-11 11:56:44 -08:00
priority_dequeue.zig
priority_queue.zig
process.zig
Progress.zig std.Progress: fix data race 2024-10-23 13:47:44 -07:00
Random.zig add branchHint to std.Random.float 2024-12-13 13:24:38 +01: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 std: Disable some vector-related tests on armeb. 2024-12-13 03:13:14 +01:00
sort.zig std.equalRange: Compute lower and upper bounds simultaneously 2024-09-23 13:03:06 -07:00
start.zig start: Extend DWARF unwinding protection to more architectures. 2024-12-11 00:10:17 +01:00
static_string_map.zig
std.zig std.crypto.tls: improve debuggability of encrypted connections 2024-11-07 20:25:26 -05:00
tar.zig Remove old deprecated symbols in std (#21584) 2024-10-04 13:50:25 -07:00
Target.zig std.Target: Remove special case for wasm in Abi.default(). 2024-12-15 11:57:19 +01:00
testing.zig std.testing.expectError: fix error names 2024-11-12 14:35:14 +02:00
Thread.zig std.os.windows: Fix some incorrect callconv specifiers. 2024-11-02 10:44:18 +01:00
time.zig move std.time.sleep to std.Thread.sleep 2024-09-26 12:35:14 -07:00
treap.zig
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
zig.zig Provide a detailed message for invalid arch in target triple (#21921) 2024-11-06 03:38:01 +00:00
zip.zig