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

Chris Wing (wingc@engin.umich.edu)
Sun, 5 Dec 1999 15:20:35 -0500 (EST)


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__ */

Thanks for pointing this out,
Chris Wing
wingc@engin.umich.edu

-
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/