glfs/general/genlib/libatomic_ops.xml
2024-01-19 22:39:35 +01:00

158 lines
4.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY libatomic_ops-download-http "https://github.com/ivmai/libatomic_ops/releases/download/v&libatomic_ops-version;/libatomic_ops-&libatomic_ops-version;.tar.gz">
<!ENTITY libatomic_ops-download-ftp " ">
<!ENTITY libatomic_ops-md5sum "d07b3d8369d7f9efdca59f7501dd1117">
<!ENTITY libatomic_ops-size "516 KB">
<!ENTITY libatomic_ops-buildsize "6.8 MB (with tests)">
<!ENTITY libatomic_ops-time "0.2 SBU (with tests)">
]>
<sect1 id="libatomic_ops" xreflabel="libatomic_ops-&libatomic_ops-version;">
<?dbhtml filename="libatomic_ops.html"?>
<title>libatomic_ops-&libatomic_ops-version;</title>
<indexterm zone="libatomic_ops">
<primary sortas="a-libatomic_ops">libatomic_ops</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to libatomic_ops</title>
<para>
<application>libatomic_ops</application> provides implementations for
atomic memory update operations on a number of architectures. This allows
direct use of these in reasonably portable code. Unlike earlier similar
packages, this one explicitly considers memory barrier semantics, and
allows the construction of code that involves minimum overhead across a
variety of architectures.
</para>
&lfs120_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&libatomic_ops-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&libatomic_ops-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &libatomic_ops-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &libatomic_ops-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &libatomic_ops-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &libatomic_ops-time;
</para>
</listitem>
</itemizedlist>
</sect2>
<sect2 role="installation">
<title>Installation of libatomic_ops</title>
<para>
Install <application>libatomic_ops</application> by running the following
commands:
</para>
<screen><userinput>./configure --prefix=/usr \
--enable-shared \
--disable-static \
--docdir=/usr/share/doc/libatomic_ops-&libatomic_ops-version; &amp;&amp;
make</userinput></screen>
<para>
To check the results, issue <command>make check</command>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<parameter>--enable-shared</parameter>: This switch enables building of the
<filename class="libraryfile">libatomic_ops</filename> shared libraries.
</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/static-libraries.xml"/>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directory</segtitle>
<seglistitem>
<seg>
None
</seg>
<seg>
libatomic_ops.so and libatomic_ops_gpl.so
</seg>
<seg>
/usr/include/libatomic_ops and
/usr/share/doc/libatomic_ops-&libatomic_ops-version;
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libatomic_ops-lib">
<term><filename class="libraryfile">libatomic_ops.so</filename></term>
<listitem>
<para>
contains functions for atomic memory operations
</para>
<indexterm zone="libatomic_ops libatomic_ops-lib">
<primary sortas="c-libatomic_ops">libatomic_ops.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>