summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2006-11-11 16:49:29 +0000
committertrhodes <trhodes@FreeBSD.org>2006-11-11 16:49:29 +0000
commitc51a2c2df9d95524e4fec5b0ec36ca0a9f503823 (patch)
treeadf9184119d0e0e52376ea9518d61118aa10d815 /share
parente4ae9746ecdeff4313c167c495d511de220a9975 (diff)
downloadFreeBSD-src-c51a2c2df9d95524e4fec5b0ec36ca0a9f503823.zip
FreeBSD-src-c51a2c2df9d95524e4fec5b0ec36ca0a9f503823.tar.gz
Re-enable module build for POSIX semaphores.
Update the manual page describe loading the sem module. Approved by: silence on -arch and -standards
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/sem.417
1 files changed, 14 insertions, 3 deletions
diff --git a/share/man/man4/sem.4 b/share/man/man4/sem.4
index 580f413..4a641dc 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
OpenPOWER on IntegriCloud