16018N/A<!
DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
16018N/A<!--ArborText, Inc., 1988-1999, v.4002-->
16018N/A<!
ENTITY suncopy "Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.">
16018N/A<
refmeta><
refentrytitle>&cmd;</
refentrytitle><
manvolnum>3</
manvolnum>
16018N/A<
refmiscinfo class="date">27 Feb 2009</
refmiscinfo>
16018N/A<
refmiscinfo class="sectdesc">&man3;</
refmiscinfo>
16018N/A<
refmiscinfo class="software">&release;</
refmiscinfo>
16018N/A<
refmiscinfo class="arch">generic</
refmiscinfo>
16018N/A<
refmiscinfo class="copyright">&suncopy;</
refmiscinfo>
16018N/A<
indexterm><
primary>&cmd;</
primary></
indexterm><
indexterm><
primary>A library for writing a single instance applications</
primary></
indexterm>
16018N/A<
refnamediv id="libunique-10-3-name"><
refname>&cmd;</
refname>
16018N/A<
refpurpose>A library for writing single instance applications</
refpurpose></
refnamediv>
16018N/A<
refsect1 id="libunique-10-3-desc"><
title>&desc-tt;</
title>
16021N/A<
command>&cmd;</
command> is a library for writing single instance applications.
16021N/AIf you launch a single instance application twice, the second instance will
16021N/Aexit quietly or will send a message to the running instance.
16021N/A<
command>&cmd;</
command> makes it easy to write these kind of applications, by
16021N/Aproviding a base class, taking care of all the IPC machinery needed to send
16021N/Amessages to a running instance, and also handling startup notification.
16021N/A<
command>&cmd;</
command> supports two IPC backends: bacon and dbus. When dbus
16021N/Ais used, the messages are transmitted through a D\-Bus private channel. When
16021N/Abacon is used, <
command>&cmd;</
command> uses PF_UNIX family
16021N/A<
citerefentry><
refentrytitle>socket</
refentrytitle><
manvolnum>3head</
manvolnum></
citerefentry>
16021N/Ato allow communications between processes on the same machine.
16018N/A<
refsect1 id="pkg-config-1-envr"><
title>&envr-tt;</
title>
16018N/A<
para>See <
citerefentry><
refentrytitle>environ</
refentrytitle><
manvolnum>
16018N/A5</
manvolnum></
citerefentry> for descriptions of environment variables.</
para>
16018N/A<
variablelist termlength="narrow">
16018N/A<
term><
envar>UNIQUE_BACKEND</
envar></
term>
16021N/AThe default backend is dbus. User can override the default backend by setting
16021N/Athe UNIQUE_BACKEND environment variable with the name of the desired backend.
16018N/A<
refsect1 id="libunique-10-3-file"><
title>&file-tt;</
title>
16018N/A<
para>The following files are used by this library:</
para>
16018N/A<
variablelist termlength="wholepage">
16018N/A<
varlistentry><
term><
filename>/
usr/
lib/&cmd;.so</
filename></
term><
listitem>
16018N/A<
para>API shared library</
para></
listitem></
varlistentry>
16018N/A<
para>Location of developer documentation</
para></
listitem></
varlistentry>
16018N/A<
refsect1 id="libunique-10-3-attr"><
title>&attr-tt;</
title>
16018N/A<
para>See <
olink targetdocent="REFMAN5" localinfo="attributes-5"><
citerefentry>
16018N/A<
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry></
olink>
16018N/Afor descriptions of the following attributes:</
para>
16018N/A<
tgroup cols="2" colsep="1" rowsep="1"><
colspec colname="COLSPEC0" colwidth="1*">
16018N/A<
colspec colname="COLSPEC1" colwidth="1*">
16018N/A<
entry align="center" valign="middle">ATTRIBUTE TYPE</
entry>
16018N/A<
entry align="center" valign="middle">ATTRIBUTE VALUE</
entry></
row>
16018N/A<
row><
entry><
para>Availability</
para></
entry><
entry><
para>SUNWlibunique</
para></
entry></
row>
16018N/A<
row><
entry colname="COLSPEC0"><
para>Interface stability</
para></
entry><
entry colname="COLSPEC1"><
para>Volatile</
para></
entry></
row>
16018N/A<
refsect1 id="libunique-10-3-also"><
title>&also-tt;</
title>
16018N/A<!--Reference to another man page--> 16018N/A<!--Reference to a Help manual--> 16021N/A<
citerefentry><
refentrytitle>socket</
refentrytitle><
manvolnum>3head</
manvolnum></
citerefentry>,
16018N/A<
citerefentry><
refentrytitle>attributes</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry>,
16018N/A<
citerefentry><
refentrytitle>environ</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry>,
16021N/A<
citerefentry><
refentrytitle>gnome-interfaces</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry>
16018N/A<
refsect1 id="libunique-10-3-note"><
title>¬e-tt;</
title>
16018N/A<
para>Written by Halton Huo, Sun Microsystems Inc., 2009.