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