[b779049] | 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 |
|
---|
[bed6dae2] | 7 | <!ENTITY libatomic_ops-download-http
|
---|
| 8 | "http://www.hpl.hp.com/research/linux/atomic_ops/download/libatomic_ops-&libatomic_ops-version;.tar.gz">
|
---|
[b779049] | 9 | <!ENTITY libatomic_ops-download-ftp " ">
|
---|
[9662c41] | 10 | <!ENTITY libatomic_ops-md5sum "890acdc83a7cd10e2e9536062d3741c8">
|
---|
| 11 | <!ENTITY libatomic_ops-size "228 KB">
|
---|
| 12 | <!ENTITY libatomic_ops-buildsize "4.5 MB">
|
---|
| 13 | <!ENTITY libatomic_ops-time "0.1 SBU">
|
---|
[b779049] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="libatomic_ops" xreflabel="libatomic_ops-&libatomic_ops-version;">
|
---|
| 17 | <?dbhtml filename="libatomic_ops.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>libatomic_ops-&libatomic_ops-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="libatomic_ops">
|
---|
| 27 | <primary sortas="a-libatomic_ops">libatomic_ops</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to libatomic_ops</title>
|
---|
| 32 |
|
---|
[bed6dae2] | 33 | <para>
|
---|
| 34 | <application>libatomic_ops</application> provides implementations for
|
---|
| 35 | atomic memory update operations on a number of architectures. This allows
|
---|
| 36 | direct use of these in reasonably portable code. Unlike earlier similar
|
---|
| 37 | packages, this one explicitly considers memory barrier semantics, and
|
---|
| 38 | allows the construction of code that involves minimum overhead across a
|
---|
| 39 | variety of architectures.
|
---|
| 40 | </para>
|
---|
| 41 |
|
---|
| 42 | &lfs71_checked;
|
---|
[b779049] | 43 |
|
---|
| 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (HTTP): <ulink url="&libatomic_ops-download-http;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download (FTP): <ulink url="&libatomic_ops-download-ftp;"/></para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download MD5 sum: &libatomic_ops-md5sum;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download size: &libatomic_ops-size;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated disk space required: &libatomic_ops-buildsize;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Estimated build time: &libatomic_ops-time;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | </itemizedlist>
|
---|
| 65 |
|
---|
[bed6dae2] | 66 | <para condition="html" role="usernotes">
|
---|
| 67 | User Notes: <ulink url="&blfs-wiki;/libatomic_ops"/>
|
---|
| 68 | </para>
|
---|
[b779049] | 69 | </sect2>
|
---|
| 70 |
|
---|
| 71 | <sect2 role="installation">
|
---|
| 72 | <title>Installation of libatomic_ops</title>
|
---|
| 73 |
|
---|
[bed6dae2] | 74 | <para>
|
---|
| 75 | Install <application>libatomic_ops</application> by running the following
|
---|
| 76 | commands:
|
---|
| 77 | </para>
|
---|
| 78 |
|
---|
| 79 | <screen><userinput>sed -i 's#AC_PROG_RANLIB#AC_LIBTOOL_DLOPEN\nAC_PROG_LIBTOOL#' configure.ac &&
|
---|
| 80 | sed -i 's#b_L#b_LTL#;s#\.a#.la#g;s#_a_#_la_#' src/Makefile.am &&
|
---|
| 81 | sed -i 's#\.a#.so#g;s#\.\./src/#../src/.libs/#g' tests/Makefile.am &&
|
---|
[b3bb56b] | 82 | sed -i 's#pkgdata#doc#' doc/Makefile.am &&
|
---|
[bed6dae2] | 83 | autoreconf -i &&
|
---|
| 84 | ./configure --prefix=/usr --disable-static \
|
---|
| 85 | --docdir=/usr/share/doc/libatomic_ops-&libatomic_ops-version; &&
|
---|
[b779049] | 86 | make</userinput></screen>
|
---|
| 87 |
|
---|
[cb59f46d] | 88 | <para>The checks for this package will fail until after
|
---|
| 89 | installation.</para>
|
---|
[b779049] | 90 |
|
---|
[bed6dae2] | 91 | <para>
|
---|
| 92 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 93 | </para>
|
---|
[b779049] | 94 |
|
---|
[852e5ac] | 95 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[cb59f46d] | 96 |
|
---|
| 97 | <para>To check the results, issue <command>make check</command>.</para>
|
---|
| 98 |
|
---|
[852e5ac] | 99 | </sect2>
|
---|
| 100 |
|
---|
| 101 | <sect2 role="commands">
|
---|
| 102 | <title>Command Explanations</title>
|
---|
| 103 |
|
---|
[bed6dae2] | 104 | <para>
|
---|
| 105 | <command>sed -i 's#AC_PROG_RANLIB ...</command>: These seds massage the
|
---|
[b3bb56b] | 106 | autotool files so that a shared library is built, the tests pass and the
|
---|
| 107 | docs are installed where we want.
|
---|
[bed6dae2] | 108 | </para>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
| 111 | <command>autoreconf -i</command>: This regenerates the configure script
|
---|
[9662c41] | 112 | and the Makefile.in files and installs a missing file.
|
---|
[bed6dae2] | 113 | </para>
|
---|
[b779049] | 114 |
|
---|
[bed6dae2] | 115 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 116 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 117 |
|
---|
| 118 | <para>
|
---|
| 119 | <option>--docdir=/usr/share/doc/libatomic_ops-&libatomic_ops-version;</option>:
|
---|
| 120 | This option installs the documentation in a versioned directory.
|
---|
| 121 | </para>
|
---|
[b779049] | 122 | </sect2>
|
---|
| 123 |
|
---|
| 124 | <sect2 role="content">
|
---|
| 125 | <title>Contents</title>
|
---|
| 126 |
|
---|
| 127 | <segmentedlist>
|
---|
| 128 | <segtitle>Installed Libraries</segtitle>
|
---|
| 129 | <segtitle>Installed Directory</segtitle>
|
---|
| 130 |
|
---|
| 131 | <seglistitem>
|
---|
[bed6dae2] | 132 | <seg>
|
---|
[9662c41] | 133 | libatomic_ops.so and
|
---|
| 134 | libatomic_ops_gpl.so
|
---|
[bed6dae2] | 135 | </seg>
|
---|
[b779049] | 136 | <seg>/usr/include/libatomic_ops</seg>
|
---|
| 137 | </seglistitem>
|
---|
| 138 | </segmentedlist>
|
---|
| 139 |
|
---|
| 140 | <variablelist>
|
---|
| 141 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 142 | <?dbfo list-presentation="list"?>
|
---|
| 143 | <?dbhtml list-presentation="table"?>
|
---|
| 144 |
|
---|
| 145 | <varlistentry id="libatomic_ops-lib">
|
---|
[bed6dae2] | 146 | <term><filename class='libraryfile'>libatomic_ops{,_gpl}.so</filename></term>
|
---|
[b779049] | 147 | <listitem>
|
---|
[bed6dae2] | 148 | <para>contain functions for atomic memory operations.</para>
|
---|
[b779049] | 149 | <indexterm zone="libatomic_ops libatomic_ops-lib">
|
---|
[bed6dae2] | 150 | <primary sortas="c-libatomic_ops">libatomic_ops.so</primary>
|
---|
[b779049] | 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
| 154 | </variablelist>
|
---|
| 155 | </sect2>
|
---|
| 156 | </sect1>
|
---|