November 2023
-
On FreeBSD and OpenBSD use `pthread_get_name_np` spelling instead of `pthread_getname_np`
Show details
Annoyingly, these functions are spelt differently on different OSes.
-
Use strerror_r() on FreeBSD and OpenBSD
Show details
strerror_r has been available since FreeBSD 4.4 and OpenBSD 3.3 (both many years ago).
-
Fix -Wundef warning: check that _POSIX_C_SOURCE is defined before checking it
-
Fix possibly lossy truncation from uint64_t/long to unsigned
-
Use getthrid() on OpenBSD for fallback thread global thread id
Show details
This fixes a compiler error on that platform, because of the nearby assumption that pthread_t is an integer type, when it is in fact a pointer on OpenBSD (and macOS).
-
Fix minor warning about unused variable
Show details
In the final else, buff is not used, so duplicated into the branches where it is actually used.