summaryrefslogtreecommitdiffstats
path: root/sys/kern/posix4_mib.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-11-19 17:56:16 +0000
committerjhb <jhb@FreeBSD.org>2010-11-19 17:56:16 +0000
commit047d1e801b183801b51b7f4b31b5ebc6281f2aa3 (patch)
treec54c924138033df988910cea019b315ae7e90336 /sys/kern/posix4_mib.c
parent40263c2648cf27fcb17000963ad7b3ec2348ca41 (diff)
downloadFreeBSD-src-047d1e801b183801b51b7f4b31b5ebc6281f2aa3.zip
FreeBSD-src-047d1e801b183801b51b7f4b31b5ebc6281f2aa3.tar.gz
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
Diffstat (limited to 'sys/kern/posix4_mib.c')
-rw-r--r--sys/kern/posix4_mib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/posix4_mib.c b/sys/kern/posix4_mib.c
index cbe140d..2fb926b 100644
--- a/sys/kern/posix4_mib.c
+++ b/sys/kern/posix4_mib.c
@@ -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);
OpenPOWER on IntegriCloud