public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sysconf - exposing constants to userspace
@ 2004-02-19 20:48 Tim Hockin
  2004-02-19 21:30 ` Jeff Sipek
  0 siblings, 1 reply; 8+ messages in thread
From: Tim Hockin @ 2004-02-19 20:48 UTC (permalink / raw)
  To: Linux Kernel mailing list

What is the preferred way to expose "constants" to userland?  I quoty-finger
"constants" because they may be defined as constants to any given kernel,
they are not necessarily constant over time.

There are things which can be changed as constants which would currently
require a libc recompile.  For example NGROUPS_MAX :).  Since it just got
merged, anyone who wants to use it will have to recompile their libc to get
the new value of NGROUPS_MAX.

I found an old old patch to do this via read-only sysctl() entries.  Should
I resurrect that patch?  Or maybe just do a sys_sysconf() entry?  Or should
I just shut up and tell users to cope with recompiling libc?

-- 
Tim Hockin
Sun Microsystems, Linux Software Engineering
thockin@sun.com
All opinions are my own, not Sun's

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-02-20  0:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-19 20:48 sysconf - exposing constants to userspace Tim Hockin
2004-02-19 21:30 ` Jeff Sipek
2004-02-20  0:20   ` Jamie Lokier
2004-02-20  0:21     ` Tim Hockin
2004-02-20  0:35       ` Chris Wright
2004-02-20  0:29     ` Jeff Sipek
2004-02-20  0:34       ` Tim Hockin
2004-02-20  0:52       ` Chris Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox