0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/std
Michael Dusan 490a411fd4 openbsd: fix thread name buffer size
OpenBSD 7.3 changed its implementation of
pthread_get_name_np/pthread_set_name_np to wrap new libc functions
getthrname/setthrname and lowered the max buffer size from 32 to 24.

This is not a backwards-compatible change because if we were to put in
comptime version logic to use size 32 when target < 7.3 the binaries
would be undefined when running on >= 7.3. It also could simply be that
OpenBSD has a policy to not support older binaries running on newer
releases? Regardless, the safest course is to simply use the smallest
known buffer size.

As an aside, this bug manifested as a "hung" std.Thread test because 7.3
pthread API never checks for error result when wrapping getthrname/setthrname.
This is not a problem in std.Thread when we use the correct max buffer
size because ERANGE/EINVAL become unreachable.
History 2023-04-12 15:36:03 -04:00
..
atomic update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
Build Zir: implement explicit block_comptime instruction 2023-04-12 12:06:19 -04:00
c std: add FreeBSD's procctl api. 2023-04-08 18:31:01 +03:00
compress std.compress.zstandard: fix error sets for streaming API 2023-02-21 22:06:25 +11:00
crypto Zir: implement explicit block_comptime instruction 2023-04-12 12:06:19 -04:00
dwarf wasm: Implement debug info for parameters 2022-05-09 18:51:46 +02:00
event update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
fmt enable more float-parsing tests 2023-03-25 14:09:00 +02:00
fs std: fix memory bugs 2023-04-05 08:23:07 +02:00
hash std.hash: use std.math.rotl in Xxhash64 and Xxhash32 2023-02-21 12:09:27 +11:00
heap std: fix memory bugs 2023-04-05 08:23:07 +02:00
http std.http: reenable protocol read tests, add missing branch in findHeaders end 2023-04-08 09:59:37 -05:00
io std: restrict mem.span() and mem.len() to sentinel terminated pointers 2023-01-29 15:07:06 -05:00
json std.json: support tuples 2023-03-21 15:01:45 +02:00
math workaround bootstrapping limitations 2023-03-22 13:22:25 -05:00
mem split @qualCast into @constCast and @volatileCast 2023-02-15 01:43:57 +02:00
meta Zir: implement explicit block_comptime instruction 2023-04-12 12:06:19 -04:00
net Zir: implement explicit block_comptime instruction 2023-04-12 12:06:19 -04:00
os std.os: add mincore syscall 2023-04-06 00:57:23 -04:00
rand Remove Gimli and Xoodoo from the standard library (#14928) 2023-03-21 04:54:10 +00:00
target std: add generic target for spirv 2023-04-09 01:51:47 +02:00
testing std.mem.Allocator: allow shrink to fail 2022-11-29 23:30:38 -07:00
Thread zig build: add a -j<N> option for limiting concurrency 2023-03-15 10:48:12 -07:00
time std.time.epoch: fix issue in documentation 2021-12-16 19:08:58 -08:00
tz Support legacy TZ format, expose header struct to a potential writer 2022-01-01 12:47:08 +00:00
unicode update usages of @call 2022-12-13 13:14:20 +02:00
valgrind std.valgrind.callgrind: fix string type 2022-08-22 13:55:00 +03:00
zig Zir: implement explicit block_comptime instruction 2023-04-12 12:06:19 -04:00
array_hash_map.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
array_list.zig std: Add ArrayList.insertAssumeCapacity() 2023-03-12 11:02:53 +00:00
ascii.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
atomic.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
base64.zig std.base64: don't overflow dest with padding 2023-03-23 22:52:15 +02:00
bit_set.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
bounded_array.zig add BoundedArrayAligned (#14580) 2023-03-17 17:50:25 +01:00
buf_map.zig reverse some of the now unneeded changes from squeek 2022-05-11 18:41:23 -06:00
buf_set.zig std.BufSet.clone: fix key ownership 2022-03-01 13:28:47 -05:00
Build.zig fix build logic due to state mutations and break the API accordingly 2023-04-11 08:42:14 -07:00
builtin.zig amdgpu,nvptx: unify kernel calling conventions 2023-04-09 01:51:54 +02:00
c.zig std: child process API supports rusage data 2023-03-15 10:48:13 -07:00
child_process.zig std.process.Child: implement maxrss on Darwin 2023-03-25 03:20:50 +01:00
coff.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
compress.zig std.compress.zstd: renamed from std.compress.zstandard 2023-02-22 00:11:20 +11:00
comptime_string_map.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
crypto.zig Remove Gimli and Xoodoo from the standard library (#14928) 2023-03-21 04:54:10 +00:00
cstr.zig std: restrict mem.span() and mem.len() to sentinel terminated pointers 2023-01-29 15:07:06 -05:00
debug.zig std.debug: fix segfault/panic race condition 2023-04-09 14:09:52 -04:00
dwarf.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
dynamic_library.zig update usages of @call 2022-12-13 13:14:20 +02:00
elf.zig run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
enums.zig Zir: implement explicit block_comptime instruction 2023-04-12 12:06:19 -04:00
event.zig std, compiler-rt: remove test names where applicable 2021-09-01 17:54:06 -07:00
fifo.zig add std.LinearFifo.readableSliceOfLen 2023-03-15 10:48:15 -07:00
fmt.zig std: improve error for formatting a function body type 2023-03-20 17:29:43 +02:00
fs.zig std: add fchmodat 2023-03-03 02:37:45 -05:00
hash.zig std.hash: add XxHash64 and XxHash32 2023-02-20 09:09:05 +11:00
hash_map.zig tools: implement more lldb pretty printers 2023-02-27 05:37:03 -05:00
heap.zig add std.heap.ThreadSafeAllocator 2023-03-15 10:48:12 -07:00
http.zig std.http: add http server 2023-04-08 09:59:35 -05:00
Ini.zig add std.Ini for basic .ini file parsing 2023-01-11 15:39:48 -08:00
io.zig std: remove temporary workarounds for stage2_x86_64 2023-03-25 21:32:55 -04:00
json.zig std.json: allow returning custom errors from custom stringify 2023-04-07 15:01:09 +03:00
leb128.zig update uses of overflow arithmetic builtins 2022-12-27 15:13:14 +02:00
linked_list.zig chore: Remove unused constants 2022-09-11 23:18:43 -04:00
log.zig std: collect all options under one namespace 2023-01-05 02:31:29 -07:00
macho.zig macho: use TOOL=0x5 to mean ZIG as the build tool 2023-03-21 13:47:09 +01:00
math.zig Zir: implement explicit block_comptime instruction 2023-04-12 12:06:19 -04:00
mem.zig std.mem.reverseIterator: add nextPtr() 2023-03-31 22:50:31 +02:00
meta.zig Zir: implement explicit block_comptime instruction 2023-04-12 12:06:19 -04:00
multi_array_list.zig std.MultiArrayList: add support for tagged unions. 2023-04-10 12:15:05 -04:00
net.zig Enable IPv4 mapped address conversion in linux version getAddressList (#14916) 2023-03-17 15:58:02 -04:00
once.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
os.zig std.os.sendto: use ws2_32 on Windows 2023-04-09 20:08:18 -04:00
packed_int_array.zig Merge pull request #14671 from ziglang/multi-object-for 2023-02-19 10:10:59 -05:00
pdb.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
priority_dequeue.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
priority_queue.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
process.zig Fix crash on some Windows machines 2023-04-06 07:26:07 +02:00
Progress.zig std.Progress.Node: add a setName method 2023-03-15 10:48:14 -07:00
rand.zig Remove Gimli and Xoodoo from the standard library (#14928) 2023-03-21 04:54:10 +00:00
RingBuffer.zig std.RingBuffer: add (non-concurrent) RingBuffer implementation 2023-02-21 12:58:34 +11:00
segmented_list.zig behavior: add test coverage for slicing zero length array field of struct 2022-12-10 12:33:17 +01:00
SemanticVersion.zig api(std.ascii): remove deprecated decls 2022-12-09 21:57:17 +01:00
simd.zig add wasm-simd support for suggestVectorSizeForCpu (#14992) 2023-03-20 17:45:12 +01:00
sort.zig naming: mid for index and mid_item for item 2023-03-21 15:12:13 +02:00
start.zig spirv: minimal start code 2023-04-09 01:51:55 +02:00
start_windows_tls.zig cbe: fixes for tls, support for not linking libc, and enabling tests 2023-01-29 15:04:13 -05:00
std.zig add BoundedArrayAligned (#14580) 2023-03-17 17:50:25 +01:00
tar.zig zig build: add executable bit and file path to package hash 2023-02-01 18:42:29 -07:00
target.zig spirv: cannot build libc 2023-04-09 01:51:48 +02:00
testing.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
Thread.zig openbsd: fix thread name buffer size 2023-04-12 15:36:03 -04:00
time.zig std.time: add microTimestamp() (#13327) 2022-11-02 23:20:19 +01:00
treap.zig treap: zig fmt 2022-04-15 17:01:01 -05:00
tz.zig std.tz: fix function returning pointer to local variable 2022-06-17 21:04:21 +03:00
unicode.zig Zir: implement explicit block_comptime instruction 2023-04-12 12:06:19 -04:00
Uri.zig std.http: handle relative redirects 2023-03-09 14:55:13 -06:00
valgrind.zig LLVM: add valgrind integration for x86 and aarch64 2022-11-19 19:32:45 -07:00
wasm.zig wasm: add atomics opcodes and refactoring 2023-03-18 20:13:30 +01:00
zig.zig integrate the build runner and the compiler server 2023-03-15 10:48:13 -07:00