svn commit: r217844 - stable/7/sys/kern
John Baldwin
jhb at FreeBSD.org
Tue Jan 25 20:49:25 UTC 2011
Author: jhb
Date: Tue Jan 25 20:49:24 2011
New Revision: 217844
URL: http://svn.freebsd.org/changeset/base/217844
Log:
MFC 215540:
Set various POSIX capability sysctls to the version of the API that is
supported rather than 1. They are supposed to return a suitable value
for sysconf(3). While here, make the fsync sysctl match <unistd.h>.
Modified:
stable/7/sys/kern/p1003_1b.c
stable/7/sys/kern/posix4_mib.c
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/kern/p1003_1b.c
==============================================================================
--- stable/7/sys/kern/p1003_1b.c Tue Jan 25 20:48:48 2011 (r217843)
+++ stable/7/sys/kern/p1003_1b.c Tue Jan 25 20:49:24 2011 (r217844)
@@ -102,7 +102,7 @@ sched_attach(void)
int ret = ksched_attach(&ksched);
if (ret == 0)
- p31b_setcfg(CTL_P1003_1B_PRIORITY_SCHEDULING, 1);
+ p31b_setcfg(CTL_P1003_1B_PRIORITY_SCHEDULING, 200112L);
return ret;
}
Modified: stable/7/sys/kern/posix4_mib.c
==============================================================================
--- stable/7/sys/kern/posix4_mib.c Tue Jan 25 20:48:48 2011 (r217843)
+++ stable/7/sys/kern/posix4_mib.c Tue Jan 25 20:49:24 2011 (r217844)
@@ -134,9 +134,10 @@ p31b_iscfg(int num)
static void
p31b_set_standard(void *dummy)
{
- /* ??? p31b_setcfg(CTL_P1003_1B_FSYNC, 1); */
- p31b_setcfg(CTL_P1003_1B_MAPPED_FILES, 1);
- p31b_setcfg(CTL_P1003_1B_SHARED_MEMORY_OBJECTS, 1);
+
+ p31b_setcfg(CTL_P1003_1B_FSYNC, 200112L);
+ p31b_setcfg(CTL_P1003_1B_MAPPED_FILES, 200112L);
+ p31b_setcfg(CTL_P1003_1B_SHARED_MEMORY_OBJECTS, 200112L);
p31b_setcfg(CTL_P1003_1B_PAGESIZE, PAGE_SIZE);
if (!p31b_iscfg(CTL_P1003_1B_AIO_LISTIO_MAX))
p31b_setcfg(CTL_P1003_1B_AIO_LISTIO_MAX, -1);
More information about the svn-src-stable-7
mailing list