4 ms·
> * The twalk_r function has been added. It is similar to the existing twalk function, but it passes an additional caller-supplied argument to the callback
by fluffything 7y ago
> * The twalk_r function has been added. It is similar to the existing
twalk function, but it passes an additional caller-supplied argument
to the callback function.
I thought this was standard practice for designing C APIs taking callbacks.
> * The Linux-specific <sys/sysctl.h> header and the sysctl function have been
deprecated and will be removed from a future version of glibc.
Application should directly access /proc instead. For obtaining random
bits, the getentropy function can be used.
That's gonna break the world, a lot of code includes that header and uses the sysctl function.
- WillDaSilva 7y agoWell on the bright side it's perfectly reasonable for the function to exist in a perpetual state of deprecation. Let's hope they don't do anything rash.
- ronsor 7y agoIf they do, Linus will probably scream at them for breaking compatibility. (Even if this isn't the kernel)
- jabl 7y agoThis is a glibc wrapper for the sysctl system call, which has been deprecated since forever in the kernel, is compiled in only if an option is specified (major distros don't enable it), and is likely to be removed completely at some point. Currently trying to use it, even if enabled, generates a warning in the kernel log. http://man7.org/linux/man-pages/man2/sysctl.2.html http://man7.org/linux/man-pages/man2/sysctl.2.html
- kevin_thibedeau 7y ago> I thought this was standard practice for designing C APIs taking callbacks. This is to supplant non-reentrant shared state for node depth. Same as strtok() -> strtok_r(). Doing this with the generic closure arg is just a bonus since the callback is already present.