X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/378393581903b274cb7a4d18e0d978071a6b592d..0c530ab8987f0ae6a1a3d9284f40182b88852816:/bsd/sys/signal.h diff --git a/bsd/sys/signal.h b/bsd/sys/signal.h index 0fa8fb1cb..27914af93 100644 --- a/bsd/sys/signal.h +++ b/bsd/sys/signal.h @@ -204,10 +204,6 @@ struct sigevent { // LP64todo - should this move? #ifdef BSD_KERNEL_PRIVATE -#if __DARWIN_ALIGN_NATURAL -#pragma options align=natural -#endif - union user_sigval { struct { int pad; /* assumes Motorolla byte order */ @@ -224,10 +220,6 @@ struct user_sigevent { user_addr_t sigev_notify_attributes; /* Notify attributes */ }; -#if __DARWIN_ALIGN_NATURAL -#pragma options align=reset -#endif - #endif /* BSD_KERNEL_PRIVATE */ typedef struct __siginfo { @@ -245,10 +237,6 @@ typedef struct __siginfo { #ifdef BSD_KERNEL_PRIVATE -#if __DARWIN_ALIGN_NATURAL -#pragma options align=natural -#endif - typedef struct __user_siginfo { int si_signo; /* signal number */ int si_errno; /* errno association */ @@ -262,10 +250,6 @@ typedef struct __user_siginfo { user_ulong_t pad[7]; /* Reserved for Future Use */ } user_siginfo_t; -#if __DARWIN_ALIGN_NATURAL -#pragma options align=reset -#endif - #endif /* BSD_KERNEL_PRIVATE */ /* @@ -371,10 +355,6 @@ struct sigaction { #ifdef BSD_KERNEL_PRIVATE #include -#if __DARWIN_ALIGN_NATURAL -#pragma options align=natural -#endif - union __user_sigaction_u { user_addr_t __sa_handler; user_addr_t __sa_sigaction; @@ -393,10 +373,6 @@ struct __user_sigaction { int sa_flags; /* see signal options below */ }; -#if __DARWIN_ALIGN_NATURAL -#pragma options align=reset -#endif - #undef SIG_DFL #undef SIG_IGN #undef SIG_ERR @@ -448,20 +424,12 @@ typedef void (*sig_t)(int); /* type of signal function */ */ #ifdef BSD_KERNEL_PRIVATE -#if __DARWIN_ALIGN_NATURAL -#pragma options align=natural -#endif - struct user_sigaltstack { user_addr_t ss_sp; /* signal stack base */ user_size_t ss_size; /* signal stack length */ - int ss_flags; /* SA_DISABLE and/or SA_ONSTACK */ + int ss_flags __attribute((aligned(8))); /* SA_DISABLE and/or SA_ONSTACK */ }; -#if __DARWIN_ALIGN_NATURAL -#pragma options align=reset -#endif - #endif /* BSD_KERNEL_PRIVATE */ #ifndef _STACK_T