summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/pthread.h b/pthread.h
index 8f6fdc5..43b9594 100644
--- a/pthread.h
+++ b/pthread.h
@@ -22,6 +22,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef _PTHREADS_H
#define _PTHREADS_H
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#endif /* HAVE_SIGNAL_H */
+
+#ifndef SIG_BLOCK
+#define SIG_BLOCK 0
+#endif /* SIG_BLOCK */
+
+#ifndef SIG_UNBLOCK
+#define SIG_BLOCK 1
+#endif /* SIG_UNBLOCK */
+
+#ifndef SIG_SETMASK
+#define SIG_SETMASK 2
+#endif /* SIG_SETMASK */
+
#define PTHREAD_THREADS_MAX 128
#define PTHREAD_STACK_MIN 65535
@@ -72,6 +88,10 @@ typedef struct {
int canceltype; /* PTHREAD_CANCEL_ASYNCHRONOUS
PTHREAD_CANCEL_DEFERRED */
+#ifdef HAVE_SIGSET_T
+ sigset_t sigmask;
+#endif /* HAVE_SIGSET_T */
+
int priority;
} pthread_attr_t;
@@ -243,6 +263,12 @@ void *pthread_getspecific(pthread_key_t key);
int pthread_key_delete(pthread_key_t key);
+/* Signal handling. */
+
+int pthread_sigmask(int how,
+ const sigset_t *set,
+ sigset_t *oset);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */