X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/39236c6e673c41db228275375ab7fdb0f837b292..3903760236c30e3b5ace7a4eefac3a269d68957c:/bsd/sys/signal.h diff --git a/bsd/sys/signal.h b/bsd/sys/signal.h index 49deff231..2483e8db3 100644 --- a/bsd/sys/signal.h +++ b/bsd/sys/signal.h @@ -71,6 +71,7 @@ #include #include +#include #define __DARWIN_NSIG 32 /* counting 0; could be 33 (mask is 1-32) */ @@ -143,11 +144,15 @@ #include #include + +#ifndef KERNEL +#include +#endif /* KERNEL */ + #include #include #include -#include #include #include #include @@ -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.