[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
|
---|
[9226ef4] | 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 " ">
|
---|
[5df6476] | 10 | <!ENTITY libatomic_ops-md5sum "7035692fec4db2659b06485040829e43">
|
---|
| 11 | <!ENTITY libatomic_ops-size "244 KB">
|
---|
| 12 | <!ENTITY libatomic_ops-buildsize "4.5 MB (additional 0.6 MB for tests)">
|
---|
| 13 | <!ENTITY libatomic_ops-time "Less than 0.1 SBU (additional less than
|
---|
| 14 | 0.1 SBU for tests)">
|
---|
[b779049] | 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="libatomic_ops" xreflabel="libatomic_ops-&libatomic_ops-version;">
|
---|
| 18 | <?dbhtml filename="libatomic_ops.html"?>
|
---|
| 19 |
|
---|
| 20 | <sect1info>
|
---|
| 21 | <othername>$LastChangedBy$</othername>
|
---|
| 22 | <date>$Date$</date>
|
---|
| 23 | </sect1info>
|
---|
| 24 |
|
---|
| 25 | <title>libatomic_ops-&libatomic_ops-version;</title>
|
---|
| 26 |
|
---|
| 27 | <indexterm zone="libatomic_ops">
|
---|
| 28 | <primary sortas="a-libatomic_ops">libatomic_ops</primary>
|
---|
| 29 | </indexterm>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="package">
|
---|
| 32 | <title>Introduction to libatomic_ops</title>
|
---|
| 33 |
|
---|
[bed6dae2] | 34 | <para>
|
---|
| 35 | <application>libatomic_ops</application> provides implementations for
|
---|
| 36 | atomic memory update operations on a number of architectures. This allows
|
---|
| 37 | direct use of these in reasonably portable code. Unlike earlier similar
|
---|
| 38 | packages, this one explicitly considers memory barrier semantics, and
|
---|
| 39 | allows the construction of code that involves minimum overhead across a
|
---|
| 40 | variety of architectures.
|
---|
| 41 | </para>
|
---|
| 42 |
|
---|
[f6068507] | 43 | &lfs74_checked;
|
---|
[b779049] | 44 |
|
---|
| 45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 46 | <itemizedlist spacing="compact">
|
---|
| 47 | <listitem>
|
---|
[9226ef4] | 48 | <para>
|
---|
| 49 | Download (HTTP): <ulink url="&libatomic_ops-download-http;"/>
|
---|
| 50 | </para>
|
---|
[b779049] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[9226ef4] | 53 | <para>
|
---|
| 54 | Download (FTP): <ulink url="&libatomic_ops-download-ftp;"/>
|
---|
| 55 | </para>
|
---|
[b779049] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[9226ef4] | 58 | <para>
|
---|
| 59 | Download MD5 sum: &libatomic_ops-md5sum;
|
---|
| 60 | </para>
|
---|
[b779049] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[9226ef4] | 63 | <para>
|
---|
| 64 | Download size: &libatomic_ops-size;
|
---|
| 65 | </para>
|
---|
[b779049] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[9226ef4] | 68 | <para>
|
---|
| 69 | Estimated disk space required: &libatomic_ops-buildsize;
|
---|
| 70 | </para>
|
---|
[b779049] | 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
[9226ef4] | 73 | <para>
|
---|
| 74 | Estimated build time: &libatomic_ops-time;
|
---|
| 75 | </para>
|
---|
[b779049] | 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
| 78 |
|
---|
[bed6dae2] | 79 | <para condition="html" role="usernotes">
|
---|
| 80 | User Notes: <ulink url="&blfs-wiki;/libatomic_ops"/>
|
---|
| 81 | </para>
|
---|
[b779049] | 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | <sect2 role="installation">
|
---|
| 85 | <title>Installation of libatomic_ops</title>
|
---|
| 86 |
|
---|
[bed6dae2] | 87 | <para>
|
---|
| 88 | Install <application>libatomic_ops</application> by running the following
|
---|
| 89 | commands:
|
---|
| 90 | </para>
|
---|
| 91 |
|
---|
[9226ef4] | 92 | <screen><userinput>sed -i 's#AM_CONFIG_HEADER#AC_CONFIG_HEADERS#' configure.ac &&
|
---|
| 93 | sed -i 's#AC_PROG_RANLIB#AC_LIBTOOL_DLOPEN\nAC_PROG_LIBTOOL#' configure.ac &&
|
---|
[bed6dae2] | 94 | sed -i 's#b_L#b_LTL#;s#\.a#.la#g;s#_a_#_la_#' src/Makefile.am &&
|
---|
| 95 | sed -i 's#\.a#.so#g;s#\.\./src/#../src/.libs/#g' tests/Makefile.am &&
|
---|
[b3bb56b] | 96 | sed -i 's#pkgdata#doc#' doc/Makefile.am &&
|
---|
[9226ef4] | 97 | autoreconf -fi &&
|
---|
[4e143323] | 98 | ./configure --prefix=/usr \
|
---|
| 99 | --docdir=/usr/share/doc/libatomic_ops-&libatomic_ops-version; \
|
---|
| 100 | --disable-static &&
|
---|
[b779049] | 101 | make</userinput></screen>
|
---|
| 102 |
|
---|
[4e143323] | 103 | <para>
|
---|
[0d7900a] | 104 | To check the results, issue
|
---|
[4e143323] | 105 | <command>LD_LIBRARY_PATH=../src/.libs make check</command>.
|
---|
| 106 | </para>
|
---|
[b779049] | 107 |
|
---|
[bed6dae2] | 108 | <para>
|
---|
| 109 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 110 | </para>
|
---|
[b779049] | 111 |
|
---|
[852e5ac] | 112 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[0d7900a] | 113 |
|
---|
[852e5ac] | 114 | </sect2>
|
---|
| 115 |
|
---|
| 116 | <sect2 role="commands">
|
---|
| 117 | <title>Command Explanations</title>
|
---|
| 118 |
|
---|
[9226ef4] | 119 | <para>
|
---|
| 120 | <command>sed -i 's#AM_CONFIG_HEADER ...</command>: This
|
---|
| 121 | <command>sed</command> fixes building with
|
---|
| 122 | <application>Automake</application> 1.13.
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
[bed6dae2] | 125 | <para>
|
---|
[ec64d28] | 126 | <command>sed -i 's#AC_PROG_RANLIB ...</command>: These
|
---|
[0d7900a] | 127 | <command>sed</command>s massage the autotool files so that a shared
|
---|
[ec64d28] | 128 | library is built, the tests pass, and the docs are installed in an
|
---|
| 129 | appropriate directory.
|
---|
[bed6dae2] | 130 | </para>
|
---|
| 131 |
|
---|
| 132 | <para>
|
---|
[9226ef4] | 133 | <command>autoreconf -fi</command>: This regenerates the
|
---|
[ec64d28] | 134 | <command>configure</command> script and the <filename>Makefile.in</filename>
|
---|
| 135 | files and installs a missing file.
|
---|
[bed6dae2] | 136 | </para>
|
---|
[b779049] | 137 |
|
---|
[bed6dae2] | 138 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 139 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 140 |
|
---|
[b779049] | 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2 role="content">
|
---|
| 144 | <title>Contents</title>
|
---|
| 145 |
|
---|
| 146 | <segmentedlist>
|
---|
[c3c56b2] | 147 | <segtitle>Installed Programs</segtitle>
|
---|
[b779049] | 148 | <segtitle>Installed Libraries</segtitle>
|
---|
| 149 | <segtitle>Installed Directory</segtitle>
|
---|
| 150 |
|
---|
| 151 | <seglistitem>
|
---|
[c3c56b2] | 152 | <seg>
|
---|
| 153 | None
|
---|
| 154 | </seg>
|
---|
[bed6dae2] | 155 | <seg>
|
---|
[4e143323] | 156 | libatomic_ops.so and libatomic_ops_gpl.so
|
---|
| 157 | </seg>
|
---|
| 158 | <seg>
|
---|
[5df6476] | 159 | /usr/include/libatomic_ops and
|
---|
| 160 | /usr/share/doc/libatomic_ops-&libatomic_ops-version;
|
---|
[bed6dae2] | 161 | </seg>
|
---|
[b779049] | 162 | </seglistitem>
|
---|
| 163 | </segmentedlist>
|
---|
| 164 |
|
---|
| 165 | <variablelist>
|
---|
| 166 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 167 | <?dbfo list-presentation="list"?>
|
---|
| 168 | <?dbhtml list-presentation="table"?>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="libatomic_ops-lib">
|
---|
[9226ef4] | 171 | <term><filename class="libraryfile">libatomic_ops.so</filename></term>
|
---|
[b779049] | 172 | <listitem>
|
---|
[9226ef4] | 173 | <para>
|
---|
| 174 | contains functions for atomic memory operations.
|
---|
| 175 | </para>
|
---|
[b779049] | 176 | <indexterm zone="libatomic_ops libatomic_ops-lib">
|
---|
[bed6dae2] | 177 | <primary sortas="c-libatomic_ops">libatomic_ops.so</primary>
|
---|
[b779049] | 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
[4e143323] | 181 |
|
---|
[b779049] | 182 | </variablelist>
|
---|
[4e143323] | 183 |
|
---|
[b779049] | 184 | </sect2>
|
---|
[4e143323] | 185 |
|
---|
[b779049] | 186 | </sect1>
|
---|