PATCH: Add x32 dummy sysctl

Mike Frysinger vapier@gentoo.org
Sat May 19 03:33:00 GMT 2012


On Friday 18 May 2012 20:38:58 Chris Metcalf wrote:
> On 5/18/2012 6:49 PM, Roland McGrath wrote:
> >> In ports, the linux-generic port does have a definition of sysctl() that
> >> returns -1 with ENOSYS, and includes a stub_warning().  For now this
> >> avoids potential issues from older code that might try to call this API
> >> as a fallback if /proc/sys isn't available (for example).
> > 
> > Yet it bloats the ABI and the library, which will persist far longer than
> > the current state of any particular application source code.  It's far
> > better to require trivial fixes to crufty old code than to commit to
> > carrying cruft in the libc ABI forever.
> 
> Yes, this is probably fair.

i've seen very minor use of sysctl() in the wider ecosystem, and i've sent 
patches for the ones which didn't handle it missing (since x32 didn't provide 
it).  so not providing a sysctl() func is not a big deal.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120519/26e81f70/attachment.sig>


More information about the Libc-alpha mailing list