summaryrefslogtreecommitdiff
path: root/static/freebsd/man3/pthread_main_np.3 4.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/freebsd/man3/pthread_main_np.3 4.html')
-rw-r--r--static/freebsd/man3/pthread_main_np.3 4.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/static/freebsd/man3/pthread_main_np.3 4.html b/static/freebsd/man3/pthread_main_np.3 4.html
new file mode 100644
index 00000000..4f3e6d1b
--- /dev/null
+++ b/static/freebsd/man3/pthread_main_np.3 4.html
@@ -0,0 +1,63 @@
+<table class="head">
+ <tr>
+ <td class="head-ltitle">PTHREAD_MAIN_NP(3)</td>
+ <td class="head-vol">Library Functions Manual</td>
+ <td class="head-rtitle">PTHREAD_MAIN_NP(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_main_np</code> &#x2014;
+ <span class="Nd">identify the initial 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_np.h</a>&gt;</code></p>
+<p class="Pp"><var class="Ft">int</var>
+ <br/>
+ <code class="Fn">pthread_main_np</code>(<var class="Fa" style="white-space: nowrap;">void</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_main_np"><code class="Fn" id="pthread_main_np">pthread_main_np</code></a>()
+ function is used in userland threads environment to identify the initial
+ thread. Its semantics is similar to the Solaris's
+ <a class="permalink" href="#thr_main"><code class="Fn" id="thr_main">thr_main</code></a>()
+ function.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+ VALUES</a></h1>
+<p class="Pp">The <code class="Fn">pthread_main_np</code>() function returns 1
+ if the calling thread is the initial thread, 0 if the calling thread is not
+ the initial thread, and -1 if the thread's initialization has not yet
+ completed.</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">pthread_create(3)</a>,
+ <a class="Xr">pthread_equal(3)</a>, <a class="Xr">pthread_np(3)</a>,
+ <a class="Xr">pthread_self(3)</a></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
+<p class="Pp">This manual page was written by <span class="An">Alexey
+ Zelkin</span>
+ &lt;<a class="Mt" href="mailto:phantom@FreeBSD.org">phantom@FreeBSD.org</a>&gt;.</p>
+</section>
+</div>
+<table class="foot">
+ <tr>
+ <td class="foot-date">October 12, 2021</td>
+ <td class="foot-os">FreeBSD 15.0</td>
+ </tr>
+</table>