NGROUPS_MAX in linux 2.6.3+
Andreas Jaeger
aj@suse.de
Wed Feb 25 07:37:00 GMT 2004
Tim Hockin <thockin@sun.com> writes:
> Replying to my own mail.
>
> On Thu, Feb 19, 2004 at 01:20:25PM -0800, Tim Hockin wrote:
>> 1. Linux does not have a way to report these "constants" to libc. It is a
>> constant for a given kernel, but not necessarily across kernels. I am going
>> to try to find a good way to do that. Watch for a patch, unless Linus tells
>> me to buzz off.
>
> Patch is here. Linux will now expose a sysctl to read it's idea of
> NGROUPS_MAX.
>
> Can I get an ACK or NACK on this please, so I can rework it or mark it as
> done?
Let me reply to libc-alpha so that it has a chance to be seen.
The problem I see with your patch, is that there seems to be no
fallback for the case where you compile this with kernel headers that
define KERN_NGROUPS_MAX but do run it on an older kernel. Check how
we do this with kernel-features.h,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc-ngroups_max-1.diff
Type: text/x-patch
Size: 1071 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040225/bed5c66d/attachment.bin>
-------------- next part --------------
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Maxfeldstr. 5, 90409 N?rnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040225/bed5c66d/attachment.sig>
More information about the Libc-alpha
mailing list