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