source: general/genlib/npth.xml@ 20aab88

12.1 ken/TL2024 lazarus rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since 20aab88 was ab4fdfc, checked in by Pierre Labastie <pierre.labastie@…>, 5 months ago

Change all xml decl to encoding=utf-8

  • Property mode set to 100644
File size: 4.9 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[439d67f]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">
[14d673a2]8 <!ENTITY npth-download-ftp " ">
[03ac4194]9 <!ENTITY npth-md5sum "375d1a15ad969f32d25f1a7630929854">
[0e7f80e4]10 <!ENTITY npth-size "296 KB">
[03ac4194]11 <!ENTITY npth-buildsize "2.6 MB (with checks)">
[fdaae04]12 <!ENTITY npth-time "less than 0.1 SBU (with checks)">
[439d67f]13]>
14
[fdaae04]15<sect1 id="npth" xreflabel="npth-&npth-version;">
[439d67f]16 <?dbhtml filename="npth.html"?>
17
18
[fdaae04]19 <title>npth-&npth-version;</title>
[439d67f]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
[d56e7df]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>
[439d67f]37
[2967716c]38 &lfs120_checked;
[439d67f]39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
[d56e7df]43 <para>
44 Download (HTTP): <ulink url="&npth-download-http;"/>
45 </para>
[439d67f]46 </listitem>
47 <listitem>
[d56e7df]48 <para>
49 Download (FTP): <ulink url="&npth-download-ftp;"/>
50 </para>
[439d67f]51 </listitem>
52 <listitem>
[d56e7df]53 <para>
54 Download MD5 sum: &npth-md5sum;
55 </para>
[439d67f]56 </listitem>
57 <listitem>
[d56e7df]58 <para>
59 Download size: &npth-size;
60 </para>
[439d67f]61 </listitem>
62 <listitem>
[d56e7df]63 <para>
64 Estimated disk space required: &npth-buildsize;
65 </para>
[439d67f]66 </listitem>
67 <listitem>
[d56e7df]68 <para>
69 Estimated build time: &npth-time;
70 </para>
[439d67f]71 </listitem>
72 </itemizedlist>
73
74 </sect2>
75
76 <sect2 role="installation">
77 <title>Installation of NPth</title>
78
[d56e7df]79 <para>
80 Install <application>NPth</application> by running the
81 following commands:
82 </para>
[439d67f]83
84<screen><userinput>./configure --prefix=/usr &amp;&amp;
85make</userinput></screen>
86
[d56e7df]87 <para>
88 To test the results, issue: <command>make check</command>.
89 </para>
[439d67f]90
[d56e7df]91 <para>
92 Now, as the <systemitem class="username">root</systemitem> user:
93 </para>
[439d67f]94
95<screen role="root"><userinput>make install</userinput></screen>
96 </sect2>
97<!--
98 <sect2 role="commands">
99 <title>Command Explanations</title>
100
[d56e7df]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>
[439d67f]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>
[d56e7df]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
[4c24eb0a]147 application against the npth library
[d56e7df]148 </para>
[439d67f]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>
[d56e7df]158 <para>
159 contains the API functions used by the New Portable Threads
[4c24eb0a]160 Library
[d56e7df]161 </para>
[439d67f]162 <indexterm zone="npth libnpth">
163 <primary sortas="c-libnpth">libnpth.so</primary>
164 </indexterm>
165 </listitem>
166 </varlistentry>
167 </variablelist>
168 </sect2>
[4c24eb0a]169
[439d67f]170</sect1>
Note: See TracBrowser for help on using the repository browser.