zig/lib/std
lithdew 2ab588049e x/os, x/net: layout tcp, ipv4/ipv6, and socket abstractions
The `Socket` abstraction was refactored to only comprise of methods that
can be generically used/applied to all socket domains and protocols.

A more comprehensive IPv4/IPv6 module derived from @LemonBoy's earlier
work was implemented under `std.x.os.IPv4` and `std.x.os.IPv6`. Using
this module, one can then combine them together into a union for example
in order to optimize memory usage when dealing with socket addresses.

A `TCP.Client` and `TCP.Listener` abstraction is introduced that is one
layer over the `Socket` abstraction, which isolates methods that can
only be applied to a "client socket" and a "listening socket". All prior
tests from the `Socket` abstraction, which all previously operated
assuming the socket is operating via. TCP/IP, were moved. All TCP socket
options were also moved into the `TCP.Client` and `TCP.Listener`
abstractions respectively away from the `Socket` abstraction.

Some additional socket options from @LemonBoy's prior PR for Darwin were
also moved in (i.e. SIGNOPIPE).
2021-05-03 14:49:10 +09:00
..
atomic std.atomic: load should take const pointer to Self 2021-04-23 22:39:49 +02:00
build std.build: if using a RunStep, show the command run on verbose (#8571) 2021-05-01 08:17:17 +02:00
c update haiku system constants 2021-04-23 23:40:42 -05:00
compress check for overflow when reading code lengths for a block with dynamic Huffman codes 2021-04-29 17:48:08 -04:00
crypto std.crypto: add support for the NIST P-256 curve (#8627) 2021-05-01 08:14:32 +02:00
event stage1: Require a block after suspend 2021-04-24 10:25:43 +02:00
fmt std: Add a parser for hexadecimal floating point numbers 2021-04-28 17:36:12 -04:00
fs Fixed error types for GetSeekPosError 2021-04-04 17:04:46 -07:00
hash Specify type in autoHash error message 2021-03-21 23:07:02 +02:00
heap std.GeneralPurposeAllocator: logging improvements 2021-01-30 20:15:26 -07:00
io Fixed error types for GetSeekPosError 2021-04-04 17:04:46 -07:00
json std.meta: add isError 2021-04-11 16:26:29 +02:00
math std: Implement isFinite for f128 2021-05-01 16:28:13 +02:00
mem std: Clear old memory on free 2021-02-25 22:20:30 +02:00
meta Add some enum utilities 2021-03-18 14:05:01 -07:00
net std: Swap arguments in Thread.spawn 2021-02-28 14:03:19 +01:00
os x/os, x/net: layout tcp, ipv4/ipv6, and socket abstractions 2021-05-03 14:49:10 +09:00
rand Add tests for the fill functions of the Isaac64, Pcg, Sfc64, and Xoroshiro128 PRNGs 2021-03-29 09:22:06 +02:00
special Merge pull request #8665 from LemonBoy/misc 2021-05-01 18:07:58 -04:00
target target: drop ppc32 and prefer ppc 2021-04-20 16:19:59 -04:00
testing
Thread std: Swap arguments in Thread.spawn 2021-02-28 14:03:19 +01:00
time
unicode
valgrind
x x/os, x/net: layout tcp, ipv4/ipv6, and socket abstractions 2021-05-03 14:49:10 +09:00
zig stage1: Implement CPU host detection for PowerPC targets 2021-04-27 13:11:39 -04:00
array_hash_map.zig array_hash_map: decrement entries slice len after popping from entries in pop() to prevent oob 2021-03-28 11:02:37 +02:00
array_list.zig
ascii.zig std.ascii: add lessThanIgnoreCase and orderIgnoreCase 2021-02-27 01:21:01 -07:00
atomic.zig
base64.zig Remove the base64 unsafe decoder 2021-03-28 14:32:34 +02:00
bit_set.zig Add some enum utilities 2021-03-18 14:05:01 -07:00
buf_map.zig
buf_set.zig HashMap.put returns !void, not a !bool 2021-02-27 13:11:47 +02:00
build.zig std/build: change default install prefix to zig-out 2021-04-29 23:58:45 +02:00
builtin.zig callconv: add SysV 2021-04-08 21:00:53 -07:00
c.zig std: support optional getaddrinfo arguments 2021-03-16 01:10:32 +01:00
child_process.zig support output collection for haiku 2021-04-23 23:39:13 -05:00
coff.zig zig fmt the std lib 2021-02-24 21:29:23 -07:00
compress.zig std: Update test "" to test where it makes sense 2021-01-22 15:46:58 +01:00
comptime_string_map.zig
crypto.zig std.crypto: add support for the NIST P-256 curve (#8627) 2021-05-01 08:14:32 +02:00
cstr.zig
debug.zig std: Fix backtraces on sparcv9 2021-04-25 19:10:11 +02:00
dwarf.zig dwarf: fix LineNumberProgram check 2021-04-12 17:18:56 -04:00
dwarf_bits.zig
dynamic_library.zig
elf.zig elf: make EM non-exhaustive 2021-03-11 10:09:51 +11:00
enums.zig stage2: make zir.Inst.Ref a non-exhaustive enum 2021-03-24 19:11:44 +01:00
event.zig
fifo.zig std.fifo.LinearFifo - Expose reader and writer type. 2021-02-22 00:22:46 +02:00
fmt.zig std: Add a parser for hexadecimal floating point numbers 2021-04-28 17:36:12 -04:00
fs.zig std/base64: cleanups & support url-safe and other non-padded variants 2021-03-28 14:32:34 +02:00
hash.zig
hash_map.zig lib/std: remove empty init from HashMapUnmanaged 2021-04-10 12:49:02 -07:00
heap.zig
io.zig std: remove io.AutoIndentingStream 2021-02-16 23:20:46 +01:00
json.zig Switch std.json to use an ordered hashmap 2021-04-04 10:16:59 +02:00
leb128.zig
linked_list.zig
log.zig zig fmt the std lib 2021-02-24 21:29:23 -07:00
macho.zig macho: fix typos in consts defs 2021-04-21 06:49:34 +02:00
math.zig std: Remove unneeded workaround 2021-04-23 19:19:44 +02:00
mem.zig #8454 Fix for std.mem.replacementSize adjacent matches bug. (#8455) 2021-04-25 19:16:24 -04:00
meta.zig Merge pull request #8616 from LemonBoy/fn-align 2021-04-25 19:12:06 -04:00
multi_array_list.zig std: Handle empty MultiArrayList in items() 2021-03-12 00:17:35 +01:00
net.zig replace ArrayList.shrinkAndFree by ArrayList.shrinkRetainingCapacity 2021-02-21 11:56:14 +02:00
once.zig std: Swap arguments in Thread.spawn 2021-02-28 14:03:19 +01:00
os.zig rename doc refs to deprecated functions like openC (#8467) 2021-04-30 21:31:01 +02:00
packed_int_array.zig
pdb.zig Don't read more bytes than exist in MsfStream (#7839) 2021-02-01 15:27:39 -05:00
priority_dequeue.zig Change compareFn to fn (a: T, b: T) std.math.Order 2021-01-18 19:02:11 +00:00
priority_queue.zig Merge pull request #7792 from zanderxyz/zanderxyz/priority-dequeue 2021-04-02 10:52:23 -07:00
process.zig initial support for haiku continue clean up 2021-02-25 16:41:42 -07:00
Progress.zig std: Use more common escape sequences in Progress 2021-03-12 19:31:59 -05:00
rand.zig std: Update test "" to test where it makes sense 2021-01-22 15:46:58 +01:00
SemanticVersion.zig Move fmt.testFmt to testing.expectFmt 2021-01-12 18:13:29 -08:00
sort.zig
start.zig Initialize the ppc stack frame correctly 2021-04-10 22:47:22 -05:00
start_windows_tls.zig
std.zig x, x/os/Socket: initial work on new Socket abstraction 2021-04-25 21:15:02 +09:00
target.zig std.Target: bump freebsd known maximum version 2021-04-28 10:26:47 -07:00
testing.zig testing: Avoid @import-ing builtins module 2021-04-09 10:04:16 -07:00
Thread.zig std: Improve spinloop hint 2021-04-30 17:11:03 +02:00
time.zig test: fix std.time timing tests to skip on failure 2021-04-07 08:33:32 -04:00
unicode.zig std.meta: add isError 2021-04-11 16:26:29 +02:00
valgrind.zig std: Update test "" to test where it makes sense 2021-01-22 15:46:58 +01:00
wasm.zig Refactor link/wasm.zig to use offset table 2021-04-08 22:47:08 +02:00
x.zig x/os, x/net: layout tcp, ipv4/ipv6, and socket abstractions 2021-05-03 14:49:10 +09:00
zig.zig Merge pull request #8470 from ziglang/stage2-start 2021-04-09 10:15:46 -07:00