zig/lib/std
Isaac Freund b78f3bf1f1
std: fix definition of SIG_IGN, SIG_DFL, etc.
POSIX specifies that the sa_handler field of the sigaction struct may
be set to SIG_IGN or SIG_DFL. However, the current constants in the
standard library use the function pointer signature corresponding to
the sa_sigaction field instead.

This may not cause issues in practice because the fields usually occupy
the same memory in a union, but this isn't required by POSIX and there
may be systems we do not yet support that do this differently.

Fixing this also makes the Zig interface less confusing to use after
reading the man page.
2022-08-11 12:09:34 +02:00
..
atomic
build macho: sync with zld 2022-08-03 21:19:41 +02:00
c std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
compress
crypto std: add workaround for stage2 bug 2022-08-09 16:19:55 +03:00
dwarf
event std.event: use .{} to initiate Lock to unlocked state 2022-07-01 00:09:36 +03:00
fmt std.fmt.parse_float: disable failing aarch64 test from LLVM 14 2022-07-06 16:23:42 -07:00
fs std.fs: Split Iterator.next on Linux and WASI to allow for handling platform-specific errors 2022-08-01 19:38:05 +03:00
hash disable std lib test failing with self-hosted ReleaseSafe 2022-07-20 12:50:58 -07:00
heap Move sys_can_stack_trace from GPA to std.debug so that it can be re-used as needed 2022-06-25 21:27:56 -07:00
http
io std: update test cases to reflect new packed struct semantics 2022-07-12 18:38:11 -07:00
json std.json: Fix parsing of large numbers 2022-07-23 13:52:16 +03:00
math Use Managed.len in sub, divFloor, and divTrunc too 2022-07-16 11:46:13 +09:00
mem Revert "std.mem.Allocator: add alignedCreate" 2022-07-23 15:30:12 +03:00
meta
net AstGen: fix loop control flow applying to wrong loop 2022-07-13 16:10:41 -07:00
os std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
rand crypto: add the Xoodoo permutation, prepare for Gimli deprecation (#11866) 2022-07-01 13:18:08 +02:00
target std: rename std.Target.systemz to .s390x 2022-07-28 23:22:44 -07:00
testing Move sys_can_stack_trace from GPA to std.debug so that it can be re-used as needed 2022-06-25 21:27:56 -07:00
Thread
time
tz
unicode
valgrind
x std.fmt: require specifier for unwrapping ?T and E!T 2022-07-26 11:25:49 -07:00
zig Merge pull request #12379 from ifreund/packed-struct-explicit-backing-int 2022-08-10 19:13:29 -04:00
array_hash_map.zig
array_list.zig
ascii.zig
atomic.zig
base64.zig
bit_set.zig
bounded_array.zig std: fix BoundedArray test checking wrong condition (#12372) 2022-08-08 18:13:35 -04:00
buf_map.zig
buf_set.zig
build.zig std.fmt: require specifier for unwrapping ?T and E!T 2022-07-26 11:25:49 -07:00
builtin.zig stage2: Implement explicit backing integers for packed structs 2022-08-10 19:54:45 +02:00
c.zig
child_process.zig
coff.zig
compress.zig
comptime_string_map.zig
crypto.zig crypto: add the Xoodoo permutation, prepare for Gimli deprecation (#11866) 2022-07-01 13:18:08 +02:00
cstr.zig
debug.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
dwarf.zig
dynamic_library.zig
elf.zig
enums.zig std.enums: make directEnumArrayLen public 2022-08-05 15:41:03 +03:00
event.zig
fifo.zig
fmt.zig std.fmt: add more invalid format string errors 2022-07-27 18:07:53 +03:00
fs.zig std.fs: Split Iterator.next on Linux and WASI to allow for handling platform-specific errors 2022-08-01 19:38:05 +03:00
hash.zig
hash_map.zig
heap.zig
http.zig
io.zig
json.zig std.json: expose encodeJsonString and encodeJsonStringChars 2022-07-24 11:51:59 +03:00
leb128.zig std.leb128: disable regressed test due to LLVM 14 2022-07-06 20:12:00 -07:00
linked_list.zig
log.zig std.log: deduplicate switch 2022-07-09 15:19:03 +03:00
macho.zig macho: add missing align cast in LoadCommandIterator 2022-08-03 21:19:41 +02:00
math.zig std.math: add degreesToRadians and radiansToDegrees 2022-07-11 16:40:05 +03:00
mem.zig std.mem.zeroes: Zero sized structs with uninitialized members (#12246) 2022-08-05 15:47:52 +03:00
meta.zig Makes std.meta.Tuple and std.meta.ArgsTuple generate a unique type instead of generating one per invocation. 2022-08-05 15:39:53 +03:00
multi_array_list.zig
net.zig std.mem: add first method to SplitIterator and SplitBackwardsIterator 2022-07-25 22:04:30 +03:00
once.zig
os.zig std: fix definition of SIG_IGN, SIG_DFL, etc. 2022-08-11 12:09:34 +02:00
packed_int_array.zig
pdb.zig
priority_dequeue.zig PriorityDequeue: use compareFn in update() method 2022-07-25 18:12:32 +03:00
priority_queue.zig PriorityQueue: use compareFn in update() 2022-07-22 19:25:38 +03:00
process.zig std.mem: add first method to SplitIterator and SplitBackwardsIterator 2022-07-25 22:04:30 +03:00
Progress.zig
rand.zig crypto: add the Xoodoo permutation, prepare for Gimli deprecation (#11866) 2022-07-01 13:18:08 +02:00
segmented_list.zig
SemanticVersion.zig std.mem: add first method to SplitIterator and SplitBackwardsIterator 2022-07-25 22:04:30 +03:00
simd.zig SIMD size suggestions: suggestions code now compiles, added more 2022-07-22 18:58:43 +03:00
sort.zig
start.zig remove 'builtin.stage2_arch', Sema is smart enough now 2022-08-07 16:07:08 -07:00
start_windows_tls.zig
std.zig
target.zig Type: adjust C type sizes 2022-08-06 14:42:05 -07:00
testing.zig std.testing: make the caret indicator line more helpful 2022-07-25 15:51:22 +03:00
Thread.zig std.Thread: fix mutable ref of temporary 2022-07-04 16:53:41 -07:00
time.zig
treap.zig
tz.zig
unicode.zig
valgrind.zig
wasm.zig
x.zig
zig.zig Compilation: do not repeat same source line for notes 2022-07-10 23:47:56 +03:00