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