Messages in this thread | | | Date | Mon, 21 Jul 2003 20:00:32 +0200 | From | Kurt Roeckx <> | Subject | Re: siginfo pad problem. |
| |
On Tue, Jul 22, 2003 at 02:24:24AM +1000, Stephen Rothwell wrote: > 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.
linux/types.h has: #ifdef __KERNEL__ typedef __kernel_uid32_t uid_t; #else typedef __kernel_uid_t uid_t; #endif /* __KERNEL__ */
And __kernel_uid_t is an "unsigned short"
Kurt
- 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/
| |