This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Use uname not sysctl to get the kernel revision
- From: ebiederm at xmission dot com (Eric W. Biederman)
- To: Theodore Tso <tytso at mit dot edu>
- Cc: Andi Kleen <ak at suse dot de>, Ulrich Drepper <drepper at redhat dot com>, Arjan van de Ven <arjan at infradead dot org>, "Randy.Dunlap" <rdunlap at xenotime dot net>, akpm at osdl dot org, linux-kernel at vger dot kernel dot org, libc-alpha at sourceware dot org
- Date: Wed, 12 Jul 2006 20:33:05 -0600
- Subject: Re: [PATCH] Use uname not sysctl to get the kernel revision
- References: <m1psgdkrt8.fsf@ebiederm.dsl.xmission.com> <m1hd1mafe0.fsf@ebiederm.dsl.xmission.com> <20060712232414.GI9040@thunk.org> <200607130131.46753.ak@suse.de> <20060713001222.GJ9040@thunk.org>
Theodore Tso <tytso@mit.edu> writes:
> That may be true, but it doesn't answer the question, what's the cost
> of leaving in sys_sysctl in there for now?
Among other things the implementation of all of:
CTL_KERN, {KERN_OSTYPE, KERN_OSRELEASE, KERN_OSREV, KERN_VERSION,
KERN_SECUREMASK,KERN_PROF,KERN_NODENAME,KERN_DOMAINNAME }
are broken in kernel/sysctl.c because the locking is missing.
Eric