summaryrefslogtreecommitdiff
path: root/static/freebsd/man3/pthread_sigqueue.3 3.html
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 19:55:43 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 19:55:43 -0400
commitac5e55f5f2af5b92794c2aded46c6bae85b5f5ed (patch)
tree9367490586c84cba28652e443e3166d66c33b0d9 /static/freebsd/man3/pthread_sigqueue.3 3.html
parent253e67c8b3a72b3a4757fdbc5845297628db0a4a (diff)
docs: Added All FreeBSD Manuals
Diffstat (limited to 'static/freebsd/man3/pthread_sigqueue.3 3.html')
-rw-r--r--static/freebsd/man3/pthread_sigqueue.3 3.html85
1 files changed, 85 insertions, 0 deletions
diff --git a/static/freebsd/man3/pthread_sigqueue.3 3.html b/static/freebsd/man3/pthread_sigqueue.3 3.html
new file mode 100644
index 00000000..b56d92a2
--- /dev/null
+++ b/static/freebsd/man3/pthread_sigqueue.3 3.html
@@ -0,0 +1,85 @@
+<table class="head">
+ <tr>
+ <td class="head-ltitle">PTHREAD_SIGQUEUE(3)</td>
+ <td class="head-vol">Library Functions Manual</td>
+ <td class="head-rtitle">PTHREAD_SIGQUEUE(3)</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">pthread_sigqueue</code> &#x2014;
+ <span class="Nd">queue a signal to a specified thread</span></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
+<p class="Pp"><span class="Lb">POSIX Threads Library (libpthread,
+ -lpthread)</span></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<p class="Pp"><code class="In">#include
+ &lt;<a class="In">pthread.h</a>&gt;</code>
+ <br/>
+ <code class="In">#include &lt;<a class="In">signal.h</a>&gt;</code></p>
+<p class="Pp"><var class="Ft">int</var>
+ <br/>
+ <code class="Fn">pthread_sigqueue</code>(<var class="Fa" style="white-space: nowrap;">pthread_t
+ thread</var>, <var class="Fa" style="white-space: nowrap;">int sig</var>,
+ <var class="Fa" style="white-space: nowrap;">const union sigval
+ value</var>);</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<p class="Pp">The
+ <a class="permalink" href="#pthread_queue"><code class="Fn" id="pthread_queue">pthread_queue</code></a>()
+ function queues a signal, specified by <var class="Fa">sig</var>, to a
+ thread, specified by <var class="Fa">thread</var>. If
+ <var class="Fa">sig</var> is 0, error checking is performed, but no signal
+ is actually sent. The <var class="Fa">value</var> is queued together with
+ the signal, and becomes available in <var class="Vt">siginfo_t</var> data
+ passed to the signal handler.</p>
+<p class="Pp">The <code class="Nm">pthread_sigqueue</code> function is similar
+ to <a class="Xr">sigqueue(2)</a>, but targets a thread in the current
+ process instead of a process. See <a class="Xr">sigqueue(2)</a> for details
+ about signal queueing and delivery selection.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+ VALUES</a></h1>
+<p class="Pp">If successful, <code class="Fn">pthread_sigqueue</code>() returns
+ 0. Otherwise, an error number is returned.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<p class="Pp">The <code class="Fn">pthread_sigqueue</code>() function will fail
+ if:</p>
+<dl class="Bl-tag">
+ <dt id="EAGAIN">[<a class="permalink" href="#EAGAIN"><code class="Er">EAGAIN</code></a>]</dt>
+ <dd>No resources are available to queue the signal. The current process has
+ already queued {<code class="Dv">SIGQUEUE_MAX</code>} signals that are
+ still pending, or a system-wide resource limit has been exceeded.</dd>
+ <dt id="ESRCH">[<a class="permalink" href="#ESRCH"><code class="Er">ESRCH</code></a>]</dt>
+ <dd><var class="Fa">thread</var> is an invalid thread ID.</dd>
+ <dt id="EINVAL">[<a class="permalink" href="#EINVAL"><code class="Er">EINVAL</code></a>]</dt>
+ <dd><var class="Fa">sig</var> is an invalid or unsupported signal number.</dd>
+</dl>
+</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">sigqueue(2)</a></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="STANDARDS"><a class="permalink" href="#STANDARDS">STANDARDS</a></h1>
+<p class="Pp">The <code class="Fn">pthread_sigqueue</code>() function is a
+ <span class="Ux">FreeBSD</span> extension. An identical function with the
+ same semantic is available in other operating systems.</p>
+</section>
+</div>
+<table class="foot">
+ <tr>
+ <td class="foot-date">April 21, 2024</td>
+ <td class="foot-os">FreeBSD 15.0</td>
+ </tr>
+</table>