0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
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
..
compiler_rt compiler_rt: change the abi of f16 on mac to depend on the other type 2023-04-05 22:05:10 -07:00
docs Autodoc usingnamespace (#15216) 2023-04-12 01:14:02 +00:00
include update C headers to LLVM 16.0.0 2023-03-18 16:01:09 -07:00
init-exe init-exe/init-lib template: fix use of install() and run() 2023-04-10 18:35:14 -07:00
init-lib init-exe/init-lib template: fix use of install() and run() 2023-04-10 18:35:14 -07:00
libc Merge pull request #15101 from motiejus/glibc_compat 2023-04-06 17:15:58 -04:00
libcxx update libcxx to LLVM 16.0.1 2023-04-05 23:22:29 -07:00
libcxxabi update libcxxabi to llvm 16 2023-01-26 16:36:13 -07:00
libunwind update libunwind to llvm 16 2023-01-26 16:36:14 -07:00
std openbsd: fix thread name buffer size 2023-04-12 15:36:03 -04:00
tsan update libcxx, libcxxabi, libunwind, and tsan to llvm 13 rc1 2021-08-16 23:32:13 -07:00
build_runner.zig delete --prominent-compile-errors from help 2023-03-18 20:13:52 +02:00
c.zig Add support for mips64/mips64el 2023-02-04 15:19:53 -05:00
compiler_rt.zig compiler_rt: declutter int.zig, add mulXi3 tests (#14623) 2023-02-24 13:27:02 -05:00
ssp.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
test_runner.zig test runner: remove one superfluous stack frame 2023-03-15 10:48:14 -07:00
zig.h zig.h: fix typo for zig_trap definition 2023-04-08 09:54:32 -07:00