]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/signal.h
xnu-4903.221.2.tar.gz
[apple/xnu.git] / bsd / sys / signal.h
index 2ff00560983fd1861542e9d478f4a4dba04f6a08..e7218b5669641f09bce0152f9471905f2ecb4129 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) */
 
@@ -472,6 +473,9 @@ struct      __kern_sigaction {
 /* This will provide 64bit register set in a 32bit user address space */
 #define        SA_64REGSET     0x0200  /* signal handler with SA_SIGINFO args with 64bit regs information */
 #endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
+#ifdef BSD_KERNEL_PRIVATE
+#define        SA_VALIDATE_SIGRETURN_FROM_SIGTRAMP     0x0400  /* use token to validate sigreturn was called from matching sigtramp */
+#endif /* BSD_KERNEL_PRIVATE */
 
 /* the following are the only bits we support from user space, the 
  * rest are for kernel use only.
@@ -567,12 +571,12 @@ struct    sigstack {
  *     signals delivered on a per-thread basis.
  */
 #define threadmask (sigmask(SIGILL)|sigmask(SIGTRAP)|\
-                   sigmask(SIGIOT)|sigmask(SIGEMT)|\
+                   sigmask(SIGABRT)|sigmask(SIGEMT)|\
                    sigmask(SIGFPE)|sigmask(SIGBUS)|\
                    sigmask(SIGSEGV)|sigmask(SIGSYS)|\
                    sigmask(SIGPIPE)|sigmask(SIGKILL))
 
-#define workq_threadmask (threadmask | sigcantmask)
+#define workq_threadmask ((threadmask | sigcantmask | sigmask(SIGPROF)) & ~sigmask(SIGABRT))
 
 /*
  * Signals carried across exec.