libc/sysctl: Fix the user.* branch.
authorSascha Wildner <saw@online.de>
Thu, 24 Sep 2015 12:54:00 +0000 (14:54 +0200)
committerSascha Wildner <saw@online.de>
Thu, 24 Sep 2015 12:54:00 +0000 (14:54 +0200)
commitf780b8d2bf0bb6a756fbbf17f13fb8c6c613d2f7
tree515e9f50f5fc3450bfbe518065b428dd468e9e58
parent8b400d087bb2a62d892b93802bae1119af304bb2
libc/sysctl: Fix the user.* branch.

This is a combination of FreeBSD's r285188 and more work by myself.
After r285188, FreeBSD still has issues with most user.posix2_* values
(due to a leading _ missing in the define names; they also need to be
checked for being > 0).

Partially-taken-from: FreeBSD
lib/libc/gen/sysctl.c
sys/sys/sysctl.h