lkml.org 
[lkml]   [2003]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:47    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site