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.
2023-04-12 15:36:03 -04:00
..
2023-04-08 18:31:01 +03:00
2023-03-25 14:09:00 +02:00
2023-04-05 08:23:07 +02:00
2023-04-05 08:23:07 +02:00
2023-03-21 15:01:45 +02:00
2023-03-22 13:22:25 -05:00
2023-04-06 00:57:23 -04:00
2023-04-09 01:51:47 +02:00
2022-12-13 13:14:20 +02:00
2022-11-04 00:09:27 +03:30
2022-12-13 13:14:20 +02:00
2023-03-15 10:48:15 -07:00
2023-03-03 02:37:45 -05:00
2023-02-20 09:09:05 +11:00
2023-03-15 10:48:12 -07:00
2023-04-08 09:59:35 -05:00
2023-03-31 22:50:31 +02:00
2023-04-09 20:08:18 -04:00
2023-04-06 07:26:07 +02:00
2023-04-09 01:51:55 +02:00
2023-03-17 17:50:25 +01:00
2023-04-09 01:51:48 +02:00
2023-03-09 14:55:13 -06:00