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 | <!ENTITY npth-download-ftp "&gnupg-ftp;/npth/npth-&npth-version;.tar.bz2">
|
---|
9 | <!ENTITY npth-download-ftp " ">
|
---|
10 | <!ENTITY npth-md5sum "375d1a15ad969f32d25f1a7630929854">
|
---|
11 | <!ENTITY npth-size "296 KB">
|
---|
12 | <!ENTITY npth-buildsize "2.6 MB (with checks)">
|
---|
13 | <!ENTITY npth-time "less than 0.1 SBU (with checks)">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="npth" xreflabel="npth-&npth-version;">
|
---|
17 | <?dbhtml filename="npth.html"?>
|
---|
18 |
|
---|
19 |
|
---|
20 | <title>npth-&npth-version;</title>
|
---|
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 |
|
---|
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>
|
---|
38 |
|
---|
39 | &lfs120_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&npth-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&npth-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &npth-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &npth-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &npth-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &npth-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | </sect2>
|
---|
76 |
|
---|
77 | <sect2 role="installation">
|
---|
78 | <title>Installation of NPth</title>
|
---|
79 |
|
---|
80 | <para>
|
---|
81 | Install <application>NPth</application> by running the
|
---|
82 | following commands:
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <screen><userinput>./configure --prefix=/usr &&
|
---|
86 | make</userinput></screen>
|
---|
87 |
|
---|
88 | <para>
|
---|
89 | To test the results, issue: <command>make check</command>.
|
---|
90 | </para>
|
---|
91 |
|
---|
92 | <para>
|
---|
93 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
94 | </para>
|
---|
95 |
|
---|
96 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
97 | </sect2>
|
---|
98 | <!--
|
---|
99 | <sect2 role="commands">
|
---|
100 | <title>Command Explanations</title>
|
---|
101 |
|
---|
102 | <para>
|
---|
103 | <command>sed -i 's#$(LOBJS) ...</command>: This <command>sed</command>
|
---|
104 | fixes a race condition in the <filename>Makefile</filename>. It allows
|
---|
105 | running <command>make</command> with multiple jobs (e.g., <command>make
|
---|
106 | -j4</command>).
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <para>
|
---|
110 | <option>-\-disable-static</option>: This option stops it compiling a
|
---|
111 | static version of the library.
|
---|
112 | </para>
|
---|
113 |
|
---|
114 | <para>
|
---|
115 | <option>-\-mandir=/usr/share/man</option>: This option puts the man
|
---|
116 | pages in <filename class="directory">/usr/share/man</filename> and not
|
---|
117 | <filename class="directory">/usr/man</filename>.
|
---|
118 | </para>
|
---|
119 | </sect2>-->
|
---|
120 |
|
---|
121 | <sect2 role="content">
|
---|
122 | <title>Contents</title>
|
---|
123 |
|
---|
124 | <segmentedlist>
|
---|
125 | <segtitle>Installed Program</segtitle>
|
---|
126 | <segtitle>Installed Library</segtitle>
|
---|
127 | <segtitle>Installed Directory</segtitle>
|
---|
128 |
|
---|
129 | <seglistitem>
|
---|
130 | <seg>npth-config</seg>
|
---|
131 | <seg>libnpth.so</seg>
|
---|
132 | <seg>None</seg>
|
---|
133 | </seglistitem>
|
---|
134 | </segmentedlist>
|
---|
135 |
|
---|
136 | <variablelist>
|
---|
137 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
138 | <?dbfo list-presentation="list"?>
|
---|
139 | <?dbhtml list-presentation="table"?>
|
---|
140 |
|
---|
141 | <varlistentry id="npth-config">
|
---|
142 | <term><command>npth-config</command></term>
|
---|
143 | <listitem>
|
---|
144 | <para>
|
---|
145 | is a utility used to configure and build applications based on
|
---|
146 | the npth library. It can be used to query the C compiler and
|
---|
147 | linker flags which are required to correctly compile and link the
|
---|
148 | application against the npth library
|
---|
149 | </para>
|
---|
150 | <indexterm zone="npth npth-config">
|
---|
151 | <primary sortas="b-npth-config">npth-config</primary>
|
---|
152 | </indexterm>
|
---|
153 | </listitem>
|
---|
154 | </varlistentry>
|
---|
155 |
|
---|
156 | <varlistentry id="libnpth">
|
---|
157 | <term><filename class="libraryfile">libnpth.so</filename></term>
|
---|
158 | <listitem>
|
---|
159 | <para>
|
---|
160 | contains the API functions used by the New Portable Threads
|
---|
161 | Library
|
---|
162 | </para>
|
---|
163 | <indexterm zone="npth libnpth">
|
---|
164 | <primary sortas="c-libnpth">libnpth.so</primary>
|
---|
165 | </indexterm>
|
---|
166 | </listitem>
|
---|
167 | </varlistentry>
|
---|
168 | </variablelist>
|
---|
169 | </sect2>
|
---|
170 |
|
---|
171 | </sect1>
|
---|