libbsd: add pthread_sigqueue()

* like sigqueue() but for threads. was added recently to FreeBSD, long before to glibc.
* also include features.h in gnu/pthread.h

Change-Id: I73bca666e2c67d7ff05f341bf85d71df9ccccbe5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7659
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
Jérôme Duval
2024-05-02 18:07:23 +00:00
committed by waddlesplash
parent 7866929cf9
commit f758e73fe6
6 changed files with 149 additions and 2 deletions
+1
View File
@@ -22,6 +22,7 @@ extern "C" {
int sigsetmask(int mask);
int sigblock(int mask);
int pthread_sigqueue(pthread_t thread, int sig, const union sigval value);
#ifdef __cplusplus
}
+1 -1
View File
@@ -7,7 +7,7 @@
#include_next <pthread.h>
#include <features.h>
#ifdef _GNU_SOURCE