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