X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/316670eb35587141e969394ae8537d66b9211e80..3e170ce000f1506b7b5d2c5c7faec85ceabb573d:/bsd/sys/signal.h diff --git a/bsd/sys/signal.h b/bsd/sys/signal.h index 0ec175436..2d0fc43e8 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) */ @@ -142,35 +143,19 @@ #ifndef _ANSI_SOURCE #include -#define __need_mcontext_t -#define __need_stack_t -#define __need_ucontext_t -#include +#include -#ifndef _PID_T -#define _PID_T -typedef __darwin_pid_t pid_t; -#endif +#ifndef KERNEL +#include +#endif /* KERNEL */ -#ifndef _PTHREAD_ATTR_T -#define _PTHREAD_ATTR_T -typedef __darwin_pthread_attr_t pthread_attr_t; -#endif +#include +#include -#ifndef _SIGSET_T -#define _SIGSET_T -typedef __darwin_sigset_t sigset_t; -#endif - -#ifndef _SIZE_T -#define _SIZE_T -typedef __darwin_size_t size_t; -#endif - -#ifndef _UID_T -#define _UID_T -typedef __darwin_uid_t uid_t; -#endif +#include +#include +#include +#include union sigval { /* Members as suggested by Annex C of POSIX 1003.1b. */ @@ -182,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 */ @@ -189,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 @@ -576,7 +563,7 @@ struct sigstack { */ #define sigmask(m) (1 << ((m)-1)) -#ifdef BSD_KERNEL_PRIVATE +#ifdef KERNEL_PRIVATE /* * signals delivered on a per-thread basis. */ @@ -584,7 +571,7 @@ 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) @@ -598,7 +585,7 @@ struct sigstack { sigmask(SIGTTIN)|sigmask(SIGTTOU)|\ sigmask(SIGUSR1)|sigmask(SIGUSR2)) -#endif /* BSD_KERNEL_PRIVATE */ +#endif /* KERNEL_PRIVATE */ #define BADSIG SIG_ERR