Re: siginfo pad problem.

From: Stephen Rothwell (sfr@canb.auug.org.au)
Date: Mon Jul 21 2003 - 11:24:24 EST


On Mon, 21 Jul 2003 16:23:00 +0200 Kurt Roeckx <Q@ping.be> wrote:
>
> It seems the _timer part of siginfo is a little bit broken.
>
> It has:
> char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)];
>
> Where __ARCH_SI_UID_T can be a short.

Except __ARCH_SI_UID_T is defined to be uid_t everywhere except sparc
where it is "unsigned int". In include/linux/types.h, uid_t is typdef'ed
to be __kernel_uid32_t (in the kernel), so __ARCH_SI_UID_T is always (at
least) 32 bits.

I was worried about that the first time I saw it as well.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:43 EST