X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-ppc64%2Fsignal.h;h=fe5401adb41b338df8fc609318c53170441ebfb7;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=7cd1f9a09d7125f9cd7a2ceb2f7d6c95e827c71a;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/include/asm-ppc64/signal.h b/include/asm-ppc64/signal.h index 7cd1f9a09..fe5401adb 100644 --- a/include/asm-ppc64/signal.h +++ b/include/asm-ppc64/signal.h @@ -2,6 +2,7 @@ #define _ASMPPC64_SIGNAL_H #include +#include #include /* Avoid too many header ordering problems. */ @@ -114,7 +115,12 @@ typedef struct { #define SIG_SETMASK 2 /* for setting the signal mask */ /* Type of a signal handler. */ -typedef void (*__sighandler_t)(int); +typedef void __sigfunction(int); +typedef __sigfunction __user * __sighandler_t; + +/* Type of the restorer function */ +typedef void __sigrestorer(void); +typedef __sigrestorer __user * __sigrestorer_t; #define SIG_DFL ((__sighandler_t)0) /* default signal handling */ #define SIG_IGN ((__sighandler_t)1) /* ignore signal */ @@ -124,13 +130,13 @@ struct old_sigaction { __sighandler_t sa_handler; old_sigset_t sa_mask; unsigned long sa_flags; - void (*sa_restorer)(void); + __sigrestorer_t sa_restorer; }; struct sigaction { __sighandler_t sa_handler; unsigned long sa_flags; - void (*sa_restorer)(void); + __sigrestorer_t sa_restorer; sigset_t sa_mask; /* mask last for extensibility */ }; @@ -139,7 +145,7 @@ struct k_sigaction { }; typedef struct sigaltstack { - void *ss_sp; + void __user *ss_sp; int ss_flags; size_t ss_size; } stack_t;