]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/signal.h
xnu-3789.1.32.tar.gz
[apple/xnu.git] / bsd / sys / signal.h
index 49deff2317889abbf1d3bd818932ffbc889becc3..2483e8db30e4b64b1dcee2bc6fab3a0d881a3991 100644 (file)
@@ -71,6 +71,7 @@
 
 #include <sys/cdefs.h>
 #include <sys/appleapiopts.h>
+#include <Availability.h>
 
 #define __DARWIN_NSIG  32      /* counting 0; could be 33 (mask is 1-32) */
 
 #include <sys/_types.h>
 
 #include <machine/_mcontext.h>
+
+#ifndef KERNEL
+#include <sys/_pthread/_pthread_attr_t.h>
+#endif /* KERNEL */
+
 #include <sys/_types/_sigaltstack.h>
 #include <sys/_types/_ucontext.h>
 
 #include <sys/_types/_pid_t.h>
-#include <sys/_types/_pthread_attr_t.h>
 #include <sys/_types/_sigset_t.h>
 #include <sys/_types/_size_t.h>
 #include <sys/_types/_uid_t.h>
@@ -162,6 +167,7 @@ union sigval {
 #define        SIGEV_SIGNAL    1       /* aio - completion notification */
 #define        SIGEV_THREAD    3       /* [NOTIMP] [RTS] call notification function */
 
+#ifndef KERNEL
 struct sigevent {
        int                             sigev_notify;                           /* Notification type */
        int                             sigev_signo;                            /* Signal number */
@@ -169,6 +175,7 @@ struct sigevent {
        void                    (*sigev_notify_function)(union sigval);   /* Notification function */
        pthread_attr_t  *sigev_notify_attributes;       /* Notification attributes */
 };
+#endif /* KERNEL */
 
 #ifdef BSD_KERNEL_PRIVATE
 
@@ -564,9 +571,9 @@ struct      sigstack {
                    sigmask(SIGIOT)|sigmask(SIGEMT)|\
                    sigmask(SIGFPE)|sigmask(SIGBUS)|\
                    sigmask(SIGSEGV)|sigmask(SIGSYS)|\
-                   sigmask(SIGPIPE))
+                   sigmask(SIGPIPE)|sigmask(SIGKILL))
 
-#define workq_threadmask (threadmask | sigcantmask)
+#define workq_threadmask (threadmask | sigcantmask | sigmask(SIGPROF))
 
 /*
  * Signals carried across exec.