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>.

MFC after:	1 week
This commit is contained in:
John Baldwin 2010-11-19 17:56:16 +00:00
parent 00f8bffc22
commit 34c1c5992f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215540
2 changed files with 5 additions and 4 deletions

View File

@ -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;
}

View File

@ -164,9 +164,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);