From 5416cda82973bcbaa1882b11a260722885db33e5 Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Sat, 11 Nov 2006 16:49:29 +0000 Subject: [PATCH] Re-enable module build for POSIX semaphores. Update the manual page describe loading the sem module. Approved by: silence on -arch and -standards --- share/man/man4/sem.4 | 17 ++++++++++++++--- sys/modules/Makefile | 1 + 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/share/man/man4/sem.4 b/share/man/man4/sem.4 index 580f4136bad9..4a641dc646f3 100644 --- a/share/man/man4/sem.4 +++ b/share/man/man4/sem.4 @@ -24,19 +24,26 @@ .\" .\" $FreeBSD$ .\" -.Dd January 14, 2003 +.Dd November 11, 2006 .Dt SEM 4 .Os .Sh NAME .Nm sem .Nd POSIX semaphores .Sh SYNOPSIS -To link into the kernel: +To compile this driver into the kernel, +place the following lines in your +kernel configuration file: .Bd -ragged -offset indent .Cd "options P1003_1B_SEMAPHORES" .Ed .Pp -To load as a kernel loadable module: +Alternatively, to load the driver as a +module at boot time, place the following line in +.Xr loader.conf 5 : +.Bd -literal -offset indent +sem_load="YES" +.Ed .Pp .Dl "kldload sem" .Sh DESCRIPTION @@ -47,6 +54,10 @@ facility provides system calls used by the standard C library to implement .Tn POSIX semaphores. +This facility offers support for such functions as +.Fn sem_init +and +.Fn sem_wait . It is available both as a kernel option for static inclusion and as a dynamic kernel module. .Sh SEE ALSO diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 35434f9dba7f..0af49602d58f 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -219,6 +219,7 @@ SUBDIR= ${_3dfx} \ scc \ scd \ ${_scsi_low} \ + sem \ sf \ ${_sio} \ sis \