summaryrefslogtreecommitdiff
path: root/static/freebsd/man4/sem.4 3.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/freebsd/man4/sem.4 3.html')
-rw-r--r--static/freebsd/man4/sem.4 3.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/static/freebsd/man4/sem.4 3.html b/static/freebsd/man4/sem.4 3.html
new file mode 100644
index 00000000..d1861ce6
--- /dev/null
+++ b/static/freebsd/man4/sem.4 3.html
@@ -0,0 +1,60 @@
+<table class="head">
+ <tr>
+ <td class="head-ltitle">SEM(4)</td>
+ <td class="head-vol">Device Drivers Manual</td>
+ <td class="head-rtitle">SEM(4)</td>
+ </tr>
+</table>
+<div class="manual-text">
+<section class="Sh">
+<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<p class="Pp"><code class="Nm">sem</code> &#x2014; <span class="Nd">POSIX
+ semaphores</span></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<p class="Pp">To compile this driver into the kernel, place the following line
+ in your kernel configuration file:</p>
+<div class="Bd Pp Bd-indent"><code class="Cd">options
+ P1003_1B_SEMAPHORES</code></div>
+<p class="Pp">Alternatively, to load the driver as a module at boot time, place
+ the following line in <a class="Xr">loader.conf(5)</a>:</p>
+<div class="Bd Pp Bd-indent Li">
+<pre>sem_load=&quot;YES&quot;</pre>
+</div>
+<p class="Pp">To load the driver as a module at run-time, run the following
+ command as root:</p>
+<div class="Bd Pp Bd-indent">kldload sem</div>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<p class="Pp">The <code class="Nm">sem</code> facility provides system calls
+ used by the standard C library (<span class="Pa">libc</span>) to implement
+ POSIX semaphores. This facility offers support for such functions as
+ <a class="permalink" href="#sem_init"><code class="Fn" id="sem_init">sem_init</code></a>()
+ and
+ <a class="permalink" href="#sem_wait"><code class="Fn" id="sem_wait">sem_wait</code></a>().
+ It is available both as a kernel option for static inclusion and as a
+ dynamic kernel module.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+ ALSO</a></h1>
+<p class="Pp"><a class="Xr">sem_destroy(3)</a>,
+ <a class="Xr">sem_getvalue(3)</a>, <a class="Xr">sem_init(3)</a>,
+ <a class="Xr">sem_open(3)</a>, <a class="Xr">sem_post(3)</a>,
+ <a class="Xr">sem_wait(3)</a>, <a class="Xr">config(8)</a>,
+ <a class="Xr">kldload(8)</a>, <a class="Xr">kldunload(8)</a></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<p class="Pp">The <code class="Nm">sem</code> facility appeared in
+ <span class="Ux">FreeBSD 5.0</span>.</p>
+</section>
+</div>
+<table class="foot">
+ <tr>
+ <td class="foot-date">February 7, 2014</td>
+ <td class="foot-os">FreeBSD 15.0</td>
+ </tr>
+</table>