From 08fc2af97081039b29e8979adab62acd128edfc9 Mon Sep 17 00:00:00 2001 From: Stathis Kamperis Date: Mon, 21 Dec 2009 22:42:39 +0200 Subject: [PATCH] aio: Make sysconf() report correct value. Issue 6 says that _POSIX_ASYNCHRONOUS_IO shall be defined equal to -1, 0, or 200112L. But sysconf() shall report either -1 or 200112L. We provide headers, data types and functions for the AIO interface, but not any actual implementation. This means that the symbol _POSIX_ASYNCHRONOUS_IO shall be 0 (it is already) and sysconf() shall return -1 (it didn't until now). --- sys/kern/kern_p1003_1b.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/kern_p1003_1b.c b/sys/kern/kern_p1003_1b.c index 503b6562b9..df4a249392 100644 --- a/sys/kern/kern_p1003_1b.c +++ b/sys/kern/kern_p1003_1b.c @@ -327,6 +327,7 @@ p31binit(void *notused) { (void) sched_attach(); p31b_setcfg(CTL_P1003_1B_PAGESIZE, PAGE_SIZE); + p31b_setcfg(CTL_P1003_1B_ASYNCHRONOUS_IO, -1); p31b_setcfg(CTL_P1003_1B_MESSAGE_PASSING, _POSIX_MESSAGE_PASSING); } -- 2.41.0