From d063152de15b045caca51218d4f7046ceaf07fbe Mon Sep 17 00:00:00 2001 From: alfred Date: Thu, 19 Sep 2002 00:43:32 +0000 Subject: Add the rest of the kernel support for the sem_ API in kern/uipc_sem.c. Option 'P1003_1B_SEMAPHORES' to compile them in, or load the "sem" module to activate them. Have kern/makesyscalls.sh emit an include for sys/_semaphore.h into sysproto.h to pull in the typedef for semid_t. Add the syscalls to the syscall table as module stubs. --- sys/kern/posix4_mib.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'sys/kern/posix4_mib.c') diff --git a/sys/kern/posix4_mib.c b/sys/kern/posix4_mib.c index 09af27d..d368593 100644 --- a/sys/kern/posix4_mib.c +++ b/sys/kern/posix4_mib.c @@ -92,12 +92,23 @@ P1B_SYSCTL(CTL_P1003_1B_TIMER_MAX, timer_max); /* p31b_setcfg: Set the configuration */ -void p31b_setcfg(int num, int value) +void +p31b_setcfg(int num, int value) { + if (num >= 1 && num < CTL_P1003_1B_MAXID) facility[num - 1] = value; } +int +p31b_getcfg(int num) +{ + + if (num >= 1 && num < CTL_P1003_1B_MAXID) + return (facility[num - 1]); + return (0); +} + /* * Turn on indications for standard (non-configurable) kernel features. */ -- cgit v1.1