Re: [PATCH] 32-bit UID support for 2.3.30pre6 (important update)

Richard Gooch (rgooch@ras.ucalgary.ca)
Sun, 5 Dec 1999 13:28:06 -0700


Chris Wing writes:
> Richard:
>
> > > The following names have been redefined or are new:
> > >
> > > uid_t, gid_t
> >
> > This will break compiling of libc5 programmes, because the definition
> > of uid_t is grabbed from the kernel includes, which you've just
> > changed.
>
> Hmm... well, this means that we will have to do something like the
> following in include/linux/types.h:
>
> /* libc5 pulls its definition of uid_t out of this file, so it can never
> change when included by non-kernel code */
> #ifdef __KERNEL__
> typedef __kernel_uid32_t uid_t;
> typedef __kernel_gid32_t gid_t;
> #else
> typedef __kernel_uid_t uid_t;
> typedef __kernel_gid_t gid_t;
> #endif /* __KERNEL__ */

OK, but, IIRC, your patch also went and changed __kernel_{u|g}id_t.
So you'd need something similar in the asm headers.

Regards,

Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/