Update a sysctl to use _POSIX_VERSION from <sys/unistd.h>, instead of

the kernel option _KPOSIX_VERSION.
This commit is contained in:
Mike Barcroft 2002-10-13 14:26:29 +00:00
parent d3d0ea18c2
commit eeea998c3c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105046

View File

@ -51,6 +51,7 @@
#include <sys/mutex.h>
#include <sys/jail.h>
#include <sys/smp.h>
#include <sys/unistd.h>
SYSCTL_NODE(, 0, sysctl, CTLFLAG_RW, 0,
"Sysctl internal magic");
@ -112,9 +113,8 @@ SYSCTL_INT(_kern, OID_AUTO, maxusers, CTLFLAG_RD,
SYSCTL_INT(_kern, KERN_ARGMAX, argmax, CTLFLAG_RD,
0, ARG_MAX, "Maximum bytes of argument to execve(2)");
#include <sys/_posix.h>
SYSCTL_INT(_kern, KERN_POSIX1, posix1version, CTLFLAG_RD,
0, _KPOSIX_VERSION, "Version of POSIX attempting to comply to");
0, _POSIX_VERSION, "Version of POSIX attempting to comply to");
SYSCTL_INT(_kern, KERN_NGROUPS, ngroups, CTLFLAG_RD,
0, NGROUPS_MAX, "Maximum number of groups a user can belong to");