[PATCH] compat: introduce compat_time_t
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 23 Jun 2005 07:10:14 +0000 (00:10 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 23 Jun 2005 16:45:32 +0000 (09:45 -0700)
This patch is based on work by Carlos O'Donell and Matthew Wilcox.  It
introduces/updates the compat_time_t type and uses it for compat siginfo
structures.  I have built this on ppc64 and x86_64.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ia64/ia32/ia32priv.h
arch/s390/kernel/compat_linux.h
arch/sparc64/kernel/signal32.c
include/asm-ia64/compat.h
include/asm-mips/compat.h
include/asm-parisc/compat.h
include/asm-ppc64/compat.h
include/asm-ppc64/ppc32.h
include/asm-sparc64/compat.h
include/asm-x86_64/ia32.h

index b2de948..e3e9290 100644 (file)
@@ -241,7 +241,7 @@ typedef struct compat_siginfo {
 
                /* POSIX.1b timers */
                struct {
-                       timer_t _tid;           /* timer id */
+                       compat_timer_t _tid;            /* timer id */
                        int _overrun;           /* overrun count */
                        char _pad[sizeof(unsigned int) - sizeof(int)];
                        compat_sigval_t _sigval;        /* same as below */
index bf33dcf..3898f66 100644 (file)
@@ -45,7 +45,7 @@ typedef struct compat_siginfo {
 
                /* POSIX.1b timers */
                struct {
-                       timer_t _tid;           /* timer id */
+                       compat_timer_t _tid;            /* timer id */
                        int _overrun;           /* overrun count */
                        compat_sigval_t _sigval;        /* same as below */
                        int _sys_private;       /* not to be passed to user */
index 9a375e9..f28428f 100644 (file)
@@ -102,7 +102,7 @@ typedef struct compat_siginfo{
 
                /* POSIX.1b timers */
                struct {
-                       timer_t _tid;                   /* timer id */
+                       compat_timer_t _tid;                    /* timer id */
                        int _overrun;                   /* overrun count */
                        compat_sigval_t _sigval;                /* same as below */
                        int _sys_private;               /* not to be passed to user */
index cc0ff0a..0c05e5b 100644 (file)
@@ -27,6 +27,7 @@ typedef u16           compat_ipc_pid_t;
 typedef s32            compat_daddr_t;
 typedef u32            compat_caddr_t;
 typedef __kernel_fsid_t        compat_fsid_t;
+typedef s32            compat_timer_t;
 
 typedef s32            compat_int_t;
 typedef s32            compat_long_t;
index dce9207..d78002a 100644 (file)
@@ -29,6 +29,7 @@ typedef s32           compat_caddr_t;
 typedef struct {
        s32     val[2];
 } compat_fsid_t;
+typedef s32            compat_timer_t;
 
 typedef s32            compat_int_t;
 typedef s32            compat_long_t;
index ca0eac6..7630d1a 100644 (file)
@@ -24,7 +24,7 @@ typedef u16   compat_nlink_t;
 typedef u16    compat_ipc_pid_t;
 typedef s32    compat_daddr_t;
 typedef u32    compat_caddr_t;
-typedef u32    compat_timer_t;
+typedef s32    compat_timer_t;
 
 typedef s32    compat_int_t;
 typedef s32    compat_long_t;
index 09c28d2..12414f5 100644 (file)
@@ -26,6 +26,7 @@ typedef s32           compat_daddr_t;
 typedef u32            compat_caddr_t;
 typedef __kernel_fsid_t        compat_fsid_t;
 typedef s32            compat_key_t;
+typedef s32            compat_timer_t;
 
 typedef s32            compat_int_t;
 typedef s32            compat_long_t;
index 1d04048..6b44a8c 100644 (file)
@@ -32,7 +32,7 @@ typedef struct compat_siginfo {
 
                /* POSIX.1b timers */
                struct {
-                       timer_t _tid;                   /* timer id */
+                       compat_timer_t _tid;                    /* timer id */
                        int _overrun;                   /* overrun count */
                        compat_sigval_t _sigval;                /* same as below */
                        int _sys_private;               /* not to be passed to user */
index 22f5805..b59122d 100644 (file)
@@ -25,6 +25,7 @@ typedef s32           compat_daddr_t;
 typedef u32            compat_caddr_t;
 typedef __kernel_fsid_t        compat_fsid_t;
 typedef s32            compat_key_t;
+typedef s32            compat_timer_t;
 
 typedef s32            compat_int_t;
 typedef s32            compat_long_t;
index c0a7717..6efa00f 100644 (file)
@@ -94,7 +94,7 @@ typedef struct compat_siginfo{
 
                /* POSIX.1b timers */
                struct {
-                       int _tid;               /* timer id */
+                       compat_timer_t _tid;    /* timer id */
                        int _overrun;           /* overrun count */
                        compat_sigval_t _sigval;        /* same as below */
                        int _sys_private;       /* not to be passed to user */