mirror of
https://review.haiku-os.org/haiku
synced 2025-01-19 21:11:28 +01:00
f758e73fe6
* 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 <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
36 lines
510 B
C
36 lines
510 B
C
/*
|
|
* Copyright 2006-2010 Haiku Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _BSD_SIGNAL_H_
|
|
#define _BSD_SIGNAL_H_
|
|
|
|
|
|
#include_next <signal.h>
|
|
#include <features.h>
|
|
|
|
|
|
#ifdef _DEFAULT_SOURCE
|
|
|
|
|
|
#define sigmask(sig) (1 << ((sig) - 1))
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int sigsetmask(int mask);
|
|
int sigblock(int mask);
|
|
int pthread_sigqueue(pthread_t thread, int sig, const union sigval value);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif /* _BSD_SIGNAL_H_ */
|