[439d67f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY npth-download-http "&gnupg-http;/npth/npth-&npth-version;.tar.bz2">
|
---|
[d4e8cd93] | 8 | <!ENTITY npth-download-ftp "&gnupg-ftp;/npth/npth-&npth-version;.tar.bz2">
|
---|
[14d673a2] | 9 | <!ENTITY npth-download-ftp " ">
|
---|
[03ac4194] | 10 | <!ENTITY npth-md5sum "375d1a15ad969f32d25f1a7630929854">
|
---|
[0e7f80e4] | 11 | <!ENTITY npth-size "296 KB">
|
---|
[03ac4194] | 12 | <!ENTITY npth-buildsize "2.6 MB (with checks)">
|
---|
[fdaae04] | 13 | <!ENTITY npth-time "less than 0.1 SBU (with checks)">
|
---|
[439d67f] | 14 | ]>
|
---|
| 15 |
|
---|
[fdaae04] | 16 | <sect1 id="npth" xreflabel="npth-&npth-version;">
|
---|
[439d67f] | 17 | <?dbhtml filename="npth.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
[fdaae04] | 24 | <title>npth-&npth-version;</title>
|
---|
[439d67f] | 25 |
|
---|
| 26 | <indexterm zone="npth">
|
---|
| 27 | <primary sortas="a-NPth">NPth</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to NPth</title>
|
---|
| 32 |
|
---|
| 33 | <para>The <application>NPth</application> package contains a very portable
|
---|
| 34 | POSIX/ANSI-C based library for Unix platforms which provides non-preemptive
|
---|
| 35 | priority-based scheduling for multiple threads of execution (multithreading)
|
---|
| 36 | inside event-driven applications. All threads run in the same address space
|
---|
| 37 | of the server application, but each thread has its own individual
|
---|
| 38 | program-counter, run-time stack, signal mask and errno variable. </para>
|
---|
| 39 |
|
---|
[7b20b74] | 40 | &lfs84_checked;
|
---|
[439d67f] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (HTTP): <ulink url="&npth-download-http;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download (FTP): <ulink url="&npth-download-ftp;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download MD5 sum: &npth-md5sum;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download size: &npth-size;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated disk space required: &npth-buildsize;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated build time: &npth-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
| 64 | <para condition="html" role="usernotes">User Notes:
|
---|
| 65 | <ulink url="&blfs-wiki;/npth"/></para>
|
---|
| 66 | </sect2>
|
---|
| 67 |
|
---|
| 68 | <sect2 role="installation">
|
---|
| 69 | <title>Installation of NPth</title>
|
---|
| 70 |
|
---|
| 71 | <para>Install <application>NPth</application> by running the
|
---|
| 72 | following commands:</para>
|
---|
| 73 |
|
---|
| 74 | <screen><userinput>./configure --prefix=/usr &&
|
---|
| 75 | make</userinput></screen>
|
---|
| 76 |
|
---|
| 77 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
| 78 |
|
---|
| 79 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 80 | user:</para>
|
---|
| 81 |
|
---|
| 82 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 83 | </sect2>
|
---|
| 84 | <!--
|
---|
| 85 | <sect2 role="commands">
|
---|
| 86 | <title>Command Explanations</title>
|
---|
| 87 |
|
---|
| 88 | <para><command>sed -i 's#$(LOBJS) ...</command>: This <command>sed</command>
|
---|
| 89 | fixes a race condition in the <filename>Makefile</filename>. It allows you
|
---|
| 90 | to run <command>make</command> with multiple jobs (e.g., <command>make -j4</command>).</para>
|
---|
| 91 |
|
---|
| 92 | <para><option>-\-disable-static</option>: This option stops it compiling a
|
---|
| 93 | static version of the library.</para>
|
---|
| 94 |
|
---|
| 95 | <para><option>-\-mandir=/usr/share/man</option>: This option puts the man
|
---|
| 96 | pages in <filename class="directory">/usr/share/man</filename> and not
|
---|
| 97 | <filename class="directory">/usr/man</filename>.</para>
|
---|
| 98 | </sect2>-->
|
---|
| 99 |
|
---|
| 100 | <sect2 role="content">
|
---|
| 101 | <title>Contents</title>
|
---|
| 102 |
|
---|
| 103 | <segmentedlist>
|
---|
| 104 | <segtitle>Installed Program</segtitle>
|
---|
| 105 | <segtitle>Installed Library</segtitle>
|
---|
| 106 | <segtitle>Installed Directory</segtitle>
|
---|
| 107 |
|
---|
| 108 | <seglistitem>
|
---|
| 109 | <seg>npth-config</seg>
|
---|
| 110 | <seg>libnpth.so</seg>
|
---|
| 111 | <seg>None</seg>
|
---|
| 112 | </seglistitem>
|
---|
| 113 | </segmentedlist>
|
---|
| 114 |
|
---|
| 115 | <variablelist>
|
---|
| 116 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 117 | <?dbfo list-presentation="list"?>
|
---|
| 118 | <?dbhtml list-presentation="table"?>
|
---|
| 119 |
|
---|
| 120 | <varlistentry id="npth-config">
|
---|
| 121 | <term><command>npth-config</command></term>
|
---|
| 122 | <listitem>
|
---|
| 123 | <para>is a utility used to configure and build applications based on
|
---|
| 124 | the npth library. It can be used to query the C compiler and
|
---|
| 125 | linker flags which are required to correctly compile and link the
|
---|
| 126 | application against the npth library.</para>
|
---|
| 127 | <indexterm zone="npth npth-config">
|
---|
| 128 | <primary sortas="b-npth-config">npth-config</primary>
|
---|
| 129 | </indexterm>
|
---|
| 130 | </listitem>
|
---|
| 131 | </varlistentry>
|
---|
| 132 |
|
---|
| 133 | <varlistentry id="libnpth">
|
---|
| 134 | <term><filename class="libraryfile">libnpth.so</filename></term>
|
---|
| 135 | <listitem>
|
---|
| 136 | <para>contains the API functions used by the New Portable Threads
|
---|
| 137 | Library.</para>
|
---|
| 138 | <indexterm zone="npth libnpth">
|
---|
| 139 | <primary sortas="c-libnpth">libnpth.so</primary>
|
---|
| 140 | </indexterm>
|
---|
| 141 | </listitem>
|
---|
| 142 | </varlistentry>
|
---|
| 143 | </variablelist>
|
---|
| 144 | </sect2>
|
---|
| 145 | </sect1>
|
---|