diff options
Diffstat (limited to 'static/freebsd/man3/pthread_atfork.3 3.html')
| -rw-r--r-- | static/freebsd/man3/pthread_atfork.3 3.html | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/static/freebsd/man3/pthread_atfork.3 3.html b/static/freebsd/man3/pthread_atfork.3 3.html deleted file mode 100644 index b0774124..00000000 --- a/static/freebsd/man3/pthread_atfork.3 3.html +++ /dev/null @@ -1,95 +0,0 @@ -<table class="head"> - <tr> - <td class="head-ltitle">PTHREAD_ATFORK(3)</td> - <td class="head-vol">Library Functions Manual</td> - <td class="head-rtitle">PTHREAD_ATFORK(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_atfork</code> — - <span class="Nd">register fork handlers</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 - <<a class="In">pthread.h</a>></code></p> -<p class="Pp"><var class="Ft">int</var> - <br/> - <code class="Fn">pthread_atfork</code>(<var class="Fa">void - (*prepare)(void)</var>, <var class="Fa">void (*parent)(void)</var>, - <var class="Fa">void (*child)(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_atfork"><code class="Fn" id="pthread_atfork">pthread_atfork</code></a>() - function declares fork handlers to be called before and after - <a class="Xr">fork(2)</a>, in the context of the thread that called - <a class="Xr">fork(2)</a>.</p> -<p class="Pp" id="pthread_atfork~2">The handlers registered with - <a class="permalink" href="#pthread_atfork~2"><code class="Fn">pthread_atfork</code></a>() - are called at the moments in time described below:</p> -<dl class="Bl-tag"> - <dt><var class="Fa">prepare</var></dt> - <dd>Before <a class="Xr">fork(2)</a> processing commences in the parent - process. If more than one <var class="Fa">prepare</var> handler is - registered they will be called in the opposite order they were - registered.</dd> - <dt><var class="Fa">parent</var></dt> - <dd>After <a class="Xr">fork(2)</a> completes in the parent process. If more - than one <var class="Fa">parent</var> handler is registered they will be - called in the same order they were registered.</dd> - <dt><var class="Fa">child</var></dt> - <dd>After <a class="Xr">fork(2)</a> processing completes in the child process. - If more than one <var class="Fa">child</var> handler is registered they - will be called in the same order they were registered.</dd> -</dl> -<p class="Pp">If no handling is desired at one or more of these three points, a - null pointer may be passed as the corresponding fork handler.</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, the <code class="Fn">pthread_atfork</code>() - function will return zero. Otherwise an error number will be returned to - indicate the error.</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_atfork</code>() function will fail - if:</p> -<dl class="Bl-tag"> - <dt id="ENOMEM">[<a class="permalink" href="#ENOMEM"><code class="Er">ENOMEM</code></a>]</dt> - <dd>Insufficient table space exists to record the fork handler addresses.</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">fork(2)</a>, <a class="Xr">pthread(3)</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_atfork</code>() function is expected - to conform to <span class="St">IEEE Std 1003.1 - (“POSIX.1”)</span>.</p> -</section> -<section class="Sh"> -<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1> -<p class="Pp">This manpage was written by <span class="An">Alex Vasylenko</span> - <<a class="Mt" href="mailto:lxv@omut.org">lxv@omut.org</a>>.</p> -</section> -</div> -<table class="foot"> - <tr> - <td class="foot-date">June 21, 2004</td> - <td class="foot-os">FreeBSD 15.0</td> - </tr> -</table> |
