Re: sysconf (was Re: RLIM_INFINITY inconsistency between archs)

From: H. Peter Anvin (hpa@zytor.com)
Date: Sat Jul 29 2000 - 20:16:42 EST


Followup to: <20000729141700.A13656@gnu.org>
By author: Adam Sampson <azz@gnu.org>
In newsgroup: linux.dev.kernel
>
> On Sat, Jul 29, 2000 at 02:32:49PM +0200, Hildo Biersma wrote:
> > > Why not have /proc/sysconf?
> >
> > /proc/sysconf will never be able to handle non-kernel configuration
> > settings. Linus mentioned settings for 'bc' and 'expr' and I don't want
> > to teach these to a kernel.
>
> Yes, that's what I meant---have both. /proc/sysconf would contain the
> kernel-specific values; /etc/sysconf would contain the userspace-specific
> values. That way, you don't have to remember to edit /etc/sysconf if you
> make a kernel configuration change.
>

I believe I already mentioned that the sysctl (/proc/sys) mechanism is
the preferred way to export these kinds of data tokens from the
kernel. /etc/sysconf could refer the file entries in /proc/sys where
appropriate, or we could have /proc/sys/kernel/sysconf.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt

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



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:30 EST