X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-sparc64%2Fsiginfo.h;h=c96e6c30f8b0580c1738b722ea441f3f69fd4a1f;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=94b272f5d1b3726ddce9fe6934e56c64d3cf162c;hpb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;p=linux-2.6.git diff --git a/include/asm-sparc64/siginfo.h b/include/asm-sparc64/siginfo.h index 94b272f5d..c96e6c30f 100644 --- a/include/asm-sparc64/siginfo.h +++ b/include/asm-sparc64/siginfo.h @@ -3,9 +3,6 @@ #define SI_PAD_SIZE32 ((SI_MAX_SIZE/sizeof(int)) - 3) -#define SIGEV_PAD_SIZE ((SIGEV_MAX_SIZE/sizeof(int)) - 4) -#define SIGEV_PAD_SIZE32 ((SIGEV_MAX_SIZE/sizeof(int)) - 3) - #define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) #define __ARCH_SI_TRAPNO #define __ARCH_SI_BAND_T int @@ -14,17 +11,11 @@ #ifdef __KERNEL__ -#include #include #ifdef CONFIG_COMPAT -typedef union sigval32 { - int sival_int; - u32 sival_ptr; -} sigval_t32; - -struct siginfo32; +struct compat_siginfo; #endif /* CONFIG_COMPAT */ @@ -38,29 +29,4 @@ struct siginfo32; #define EMT_TAGOVF (__SI_FAULT|1) /* tag overflow */ #define NSIGEMT 1 -#ifdef __KERNEL__ - -#ifdef CONFIG_COMPAT - -typedef struct sigevent32 { - sigval_t32 sigev_value; - int sigev_signo; - int sigev_notify; - union { - int _pad[SIGEV_PAD_SIZE32]; - - struct { - u32 _function; - u32 _attribute; /* really pthread_attr_t */ - } _sigev_thread; - } _sigev_un; -} sigevent_t32; - -extern int copy_siginfo_to_user32(struct siginfo32 __user *to, siginfo_t *from); -extern int copy_siginfo_to_kernel32(siginfo_t *to, struct siginfo32 __user *from); - -#endif /* CONFIG_COMPAT */ - -#endif /* __KERNEL__ */ - #endif