[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 |
|
---|
[fdaae04] | 20 | <title>npth-&npth-version;</title>
|
---|
[439d67f] | 21 |
|
---|
| 22 | <indexterm zone="npth">
|
---|
| 23 | <primary sortas="a-NPth">NPth</primary>
|
---|
| 24 | </indexterm>
|
---|
| 25 |
|
---|
| 26 | <sect2 role="package">
|
---|
| 27 | <title>Introduction to NPth</title>
|
---|
| 28 |
|
---|
[d56e7df] | 29 | <para>
|
---|
| 30 | The <application>NPth</application> package contains a very portable
|
---|
| 31 | POSIX/ANSI-C based library for Unix platforms which provides
|
---|
| 32 | non-preemptive priority-based scheduling for multiple threads of
|
---|
| 33 | execution (multithreading) inside event-driven applications. All threads
|
---|
| 34 | run in the same address space of the server application, but each thread
|
---|
| 35 | has its own individual program-counter, run-time stack, signal mask and
|
---|
| 36 | errno variable.
|
---|
| 37 | </para>
|
---|
[439d67f] | 38 |
|
---|
[0ddf4e7] | 39 | &lfs112_checked;
|
---|
[439d67f] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[d56e7df] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&npth-download-http;"/>
|
---|
| 46 | </para>
|
---|
[439d67f] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[d56e7df] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&npth-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[439d67f] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[d56e7df] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &npth-md5sum;
|
---|
| 56 | </para>
|
---|
[439d67f] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[d56e7df] | 59 | <para>
|
---|
| 60 | Download size: &npth-size;
|
---|
| 61 | </para>
|
---|
[439d67f] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[d56e7df] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &npth-buildsize;
|
---|
| 66 | </para>
|
---|
[439d67f] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[d56e7df] | 69 | <para>
|
---|
| 70 | Estimated build time: &npth-time;
|
---|
| 71 | </para>
|
---|
[439d67f] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
| 75 | <para condition="html" role="usernotes">User Notes:
|
---|
| 76 | <ulink url="&blfs-wiki;/npth"/></para>
|
---|
| 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2 role="installation">
|
---|
| 80 | <title>Installation of NPth</title>
|
---|
| 81 |
|
---|
[d56e7df] | 82 | <para>
|
---|
| 83 | Install <application>NPth</application> by running the
|
---|
| 84 | following commands:
|
---|
| 85 | </para>
|
---|
[439d67f] | 86 |
|
---|
| 87 | <screen><userinput>./configure --prefix=/usr &&
|
---|
| 88 | make</userinput></screen>
|
---|
| 89 |
|
---|
[d56e7df] | 90 | <para>
|
---|
| 91 | To test the results, issue: <command>make check</command>.
|
---|
| 92 | </para>
|
---|
[439d67f] | 93 |
|
---|
[d56e7df] | 94 | <para>
|
---|
| 95 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 96 | </para>
|
---|
[439d67f] | 97 |
|
---|
| 98 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 99 | </sect2>
|
---|
| 100 | <!--
|
---|
| 101 | <sect2 role="commands">
|
---|
| 102 | <title>Command Explanations</title>
|
---|
| 103 |
|
---|
[d56e7df] | 104 | <para>
|
---|
| 105 | <command>sed -i 's#$(LOBJS) ...</command>: This <command>sed</command>
|
---|
| 106 | fixes a race condition in the <filename>Makefile</filename>. It allows
|
---|
| 107 | running <command>make</command> with multiple jobs (e.g., <command>make
|
---|
| 108 | -j4</command>).
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <para>
|
---|
| 112 | <option>-\-disable-static</option>: This option stops it compiling a
|
---|
| 113 | static version of the library.
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
| 116 | <para>
|
---|
| 117 | <option>-\-mandir=/usr/share/man</option>: This option puts the man
|
---|
| 118 | pages in <filename class="directory">/usr/share/man</filename> and not
|
---|
| 119 | <filename class="directory">/usr/man</filename>.
|
---|
| 120 | </para>
|
---|
[439d67f] | 121 | </sect2>-->
|
---|
| 122 |
|
---|
| 123 | <sect2 role="content">
|
---|
| 124 | <title>Contents</title>
|
---|
| 125 |
|
---|
| 126 | <segmentedlist>
|
---|
| 127 | <segtitle>Installed Program</segtitle>
|
---|
| 128 | <segtitle>Installed Library</segtitle>
|
---|
| 129 | <segtitle>Installed Directory</segtitle>
|
---|
| 130 |
|
---|
| 131 | <seglistitem>
|
---|
| 132 | <seg>npth-config</seg>
|
---|
| 133 | <seg>libnpth.so</seg>
|
---|
| 134 | <seg>None</seg>
|
---|
| 135 | </seglistitem>
|
---|
| 136 | </segmentedlist>
|
---|
| 137 |
|
---|
| 138 | <variablelist>
|
---|
| 139 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 140 | <?dbfo list-presentation="list"?>
|
---|
| 141 | <?dbhtml list-presentation="table"?>
|
---|
| 142 |
|
---|
| 143 | <varlistentry id="npth-config">
|
---|
| 144 | <term><command>npth-config</command></term>
|
---|
| 145 | <listitem>
|
---|
[d56e7df] | 146 | <para>
|
---|
| 147 | is a utility used to configure and build applications based on
|
---|
| 148 | the npth library. It can be used to query the C compiler and
|
---|
| 149 | linker flags which are required to correctly compile and link the
|
---|
[4c24eb0a] | 150 | application against the npth library
|
---|
[d56e7df] | 151 | </para>
|
---|
[439d67f] | 152 | <indexterm zone="npth npth-config">
|
---|
| 153 | <primary sortas="b-npth-config">npth-config</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="libnpth">
|
---|
| 159 | <term><filename class="libraryfile">libnpth.so</filename></term>
|
---|
| 160 | <listitem>
|
---|
[d56e7df] | 161 | <para>
|
---|
| 162 | contains the API functions used by the New Portable Threads
|
---|
[4c24eb0a] | 163 | Library
|
---|
[d56e7df] | 164 | </para>
|
---|
[439d67f] | 165 | <indexterm zone="npth libnpth">
|
---|
| 166 | <primary sortas="c-libnpth">libnpth.so</primary>
|
---|
| 167 | </indexterm>
|
---|
| 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
| 170 | </variablelist>
|
---|
| 171 | </sect2>
|
---|
[4c24eb0a] | 172 |
|
---|
[439d67f] | 173 | </sect1>
|
---|