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