Gentoo Archives: gentoo-user

From: Daniel Iliev <danny@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] where is PID_MAX_DEFAULT ?
Date: Thu, 04 Jan 2007 06:52:44
Message-Id: 459CA342.8010803@ilievnet.com
In Reply to: [gentoo-user] [OT] where is PID_MAX_DEFAULT ? by Iain Buchanan
1 Iain Buchanan wrote:
2 > Hi all,
3 >
4 > I was just trying to compile one of my programs that includes
5 > linux/threads.h for the #define PID_MAX_DEFAULT, however, threads.h
6 > isn't there anymore!
7 >
8 > I've just upgraded linux-headers to 2.6.19 - is this the problem? I
9 > can't find a replacement for PID_MAX_DEFAULT anywhere in the header
10 > files - has the name changed?
11 >
12 > google was also unhelpful AFAICT. I'd appreciate help!
13 >
14 > thanks,
15 >
16
17
18
19 grep -n PID_MAX_DEFAULT /usr/include/linux/threads.h
20 28:#define PID_MAX_DEFAULT 0x8000
21 33:#define PID_MAX_LIMIT (sizeof(long) > 4 ? 4*1024*1024 : PID_MAX_DEFAULT)
22
23 It comes with "sys-kernel/linux-headers". Since it s a system package
24 you should already have it. There is also another version of "threads.h"
25 which comes with the kernel source:
26 /usr/src/linux/include/linux/threads.h, but AFAIK it is recommended to
27 use the first one.
28
29 --
30 Best regards,
31 Daniel
32
33
34 --
35 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] [OT] where is PID_MAX_DEFAULT ? Iain Buchanan <iaindb@××××××××××××.au>