[Fedora-ia64-list] [FYI] glibc-kernheades don't include /usr/include/linux/threads, linux/config.
Doug Chapman
dchapman at redhat.com
Mon Jun 12 14:38:32 UTC 2006
Akio,
Can you send me the BZ number for the missing header files issue?
- Doug
On Mon, 2006-06-12 at 10:55 +0900, Akio Takebe wrote:
> Hi,
>
> glibc-kernheades don't include /usr/include/linux/threads, linux/config.
>
> I use version is the follow
> FC5.89(rawhide) on IA64
> kernel-2.6.16-1.2255_FC6
> glibc-kernheaders-3.0-39
>
> I reported this bug to bugzilla.
> I make the following header.
> And I success ltp's compilation.
>
> ----------------------/usr/include/linux/threads.h---------------
> #ifndef _LINUX_THREADS_H
> #define _LINUX_THREADS_H
>
> #include <linux/config.h>
>
> /*
> * The default limit for the nr of threads is now in
> * /proc/sys/kernel/threads-max.
> */
>
> /*
> * Maximum supported processors that can run under SMP. This value is
> * set via configure setting. The maximum is equal to the size of the
> * bitmasks used on that platform, i.e. 32 or 64. Setting this smaller
> * saves quite a bit of memory.
> */
> #ifdef CONFIG_SMP
> #define NR_CPUS 1024
> #else
> #define NR_CPUS 1
> #endif
>
> #define MIN_THREADS_LEFT_FOR_ROOT 4
>
> #define CONFIG_BASE_SMALL 0
> /*
> * This controls the default maximum pid allocated to a process
> */
> #define PID_MAX_DEFAULT (CONFIG_BASE_SMALL ? 0x1000 : 0x8000)
>
> /*
> * A maximum of 4 million PIDs should be enough for a while.
> * [NOTE: PID/TIDs are limited to 2^29 ~= 500+ million, see futex.h.]
> */
> #define PID_MAX_LIMIT (CONFIG_BASE_SMALL ? PAGE_SIZE * 8 : \
> (sizeof(long) > 4 ? 4 * 1024 * 1024 : PID_MAX_DEFAULT))
>
> #endif
> -----------------------------------------------------------------------
>
> ----------------------/usr/include/linux/config.h---------------
> #ifndef _LINUX_CONFIG_H
> #define _LINUX_CONFIG_H
> /* This file is no longer in use and kept only for backward
> compatibility.
> * autoconf.h is now included via -imacros on the commandline
> */
> #include <linux/autoconf.h>
> #endif
> -----------------------------------------------------------------------
>
> And I use /usr/include/linux/autoconfig which is made by rpmbuild kernel
> -2.6.16-1.2255_FC6.
>
> Best Regards,
>
> Akio Takebe
>
> --
> Fedora-ia64-list mailing list
> Fedora-ia64-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-ia64-list
More information about the Fedora-ia64-list
mailing list