]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: add libsystemd(3)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 May 2023 13:17:13 +0000 (15:17 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 15 May 2023 20:53:22 +0000 (22:53 +0200)
Before libsystemd-daemon, libsystemd-journal, libsystemd-id128, etc., were
merged into libsystemd, it was enough to have individual man pages for them.
But they have been delivered as one thing for many years, so it's better to
have a landing page for libsystemd. It mostly directs to individual pages
anyway.

man/libsystemd.xml [new file with mode: 0644]
man/rules/meson.build
man/sd-bus-errors.xml
man/sd-bus.xml
man/sd-daemon.xml
man/sd-device.xml
man/sd-event.xml
man/sd-hwdb.xml
man/sd-id128.xml
man/sd-journal.xml
man/sd-login.xml

diff --git a/man/libsystemd.xml b/man/libsystemd.xml
new file mode 100644 (file)
index 0000000..e9de64c
--- /dev/null
@@ -0,0 +1,89 @@
+<?xml version='1.0'?> <!--*-nxml-*-->
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
+<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
+
+<refentry id="libsystemd"
+  xmlns:xi="http://www.w3.org/2001/XInclude">
+
+  <refentryinfo>
+    <title>libsystemd</title>
+    <productname>systemd</productname>
+  </refentryinfo>
+
+  <refmeta>
+    <refentrytitle>libsystemd</refentrytitle>
+    <manvolnum>3</manvolnum>
+  </refmeta>
+
+  <refnamediv>
+    <refname>libsystemd</refname>
+    <refpurpose>Functions for implementing services and interacting with systemd</refpurpose>
+  </refnamediv>
+
+  <refsynopsisdiv>
+    <programlisting>
+#include &lt;systemd/sd-bus.h&gt;
+#include &lt;systemd/sd-bus-vtable.h&gt;
+#include &lt;systemd/sd-bus-protocol.h&gt;
+#include &lt;systemd/sd-daemon.h&gt;
+#include &lt;systemd/sd-device.h&gt;
+#include &lt;systemd/sd-event.h&gt;
+#include &lt;systemd/sd-gpt.h&gt;
+#include &lt;systemd/sd-hwdb.h&gt;
+#include &lt;systemd/sd-id128.h&gt;
+#include &lt;systemd/sd-journal.h&gt;
+#include &lt;systemd/sd-login.h&gt;
+#include &lt;systemd/sd-messages.h&gt;
+#include &lt;systemd/sd-path.h&gt;
+    </programlisting>
+
+    <cmdsynopsis>
+      <command>pkg-config --cflags --libs libsystemd</command>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+
+  <refsect1>
+    <title>Description</title>
+
+    <para>The <filename>libsystemd</filename> library provides functions that allow interacting with various
+    interfaces provided by the
+    <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry> service
+    manager, as well as various other functions and constants useful for implementing services in
+    general.</para>
+
+    <para>See
+    <citerefentry><refentrytitle>sd-bus</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
+    <citerefentry><refentrytitle>sd-bus-errors</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
+    <citerefentry><refentrytitle>sd-daemon</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
+    <citerefentry><refentrytitle>sd-device</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
+    <citerefentry><refentrytitle>sd-event</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
+    <citerefentry><refentrytitle>sd-hwdb</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
+    <citerefentry><refentrytitle>sd-id128</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
+    <citerefentry><refentrytitle>sd-journal</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
+    and
+    <citerefentry><refentrytitle>sd-login</refentrytitle><manvolnum>3</manvolnum></citerefentry>
+    for information about different parts of the library interface.</para>
+  </refsect1>
+
+  <refsect1>
+    <title>Interface stability</title>
+
+    <para>Strict backwards-compatibility is maintained for the API (application programming interface) and
+    ABI (application binary interface). Symbol versioning is used, with symbols only added and never removed.
+    </para>
+  </refsect1>
+
+  <xi:include href="libsystemd-pkgconfig.xml" />
+
+  <refsect1>
+    <title>See Also</title>
+    <para>
+      <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
+      <citerefentry><refentrytitle>libudev</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
+      <citerefentry project='die-net'><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
+      <ulink url="https://systemd.io/PORTABILITY_AND_STABILITY/">Interface Portability and Stability Promise</ulink>
+    </para>
+  </refsect1>
+
+</refentry>
index b5aa2bff8a3d25fa85be1b502c18fb624e39e1ac..6bd54739af38542ef03de02cf56de027caf5d2f1 100644 (file)
@@ -31,6 +31,7 @@ manpages = [
  ['journald.conf', '5', ['journald.conf.d', 'journald@.conf'], ''],
  ['kernel-command-line', '7', [], ''],
  ['kernel-install', '8', [], 'ENABLE_KERNEL_INSTALL'],
+ ['libsystemd', '3', [], ''],
  ['libudev', '3', [], ''],
  ['loader.conf', '5', [], 'ENABLE_BOOTLOADER'],
  ['locale.conf', '5', [], ''],
index dc9d9fc63b560589a8475051d3f3257993867247..cade523763b05f27dce2dd13cd2c093798937b29 100644 (file)
 
     <para>
       <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
+      <citerefentry><refentrytitle>libsystemd</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
       <citerefentry><refentrytitle>sd-bus</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
       <citerefentry><refentrytitle>sd_bus_error</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
       <citerefentry><refentrytitle>sd_bus_message_set_allow_interactive_authorization</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
index 36925ba8c4c07f8a8494ab89d3ed66f2b4360e69..4c9c00986a28b1861b4570460aac72a426767ecc 100644 (file)
   <refsect1>
     <title>Description</title>
 
-    <para><filename>sd-bus.h</filename> provides an implementation of a D-Bus IPC client. See
+    <para><filename>sd-bus.h</filename> is part of
+    <citerefentry><refentrytitle>libsystemd</refentrytitle><manvolnum>3</manvolnum></citerefentry> and
+    provides an implementation of a D-Bus IPC client. See
     <ulink url="https://www.freedesktop.org/software/dbus/" />
-    for more information about D-Bus IPC.
-    </para>
+    for more information about D-Bus IPC.</para>
 
     <para>See
     <literallayout><citerefentry><refentrytitle>sd_bus_add_match</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
index 5dee3e893c834e97b89645c2879ae3e1ff8eaaa1..6cd06a81e3ac56839dac371185c3234576265851 100644 (file)
   <refsect1>
     <title>Description</title>
 
-    <para><filename>sd-daemon.h</filename> provides APIs for new-style
-    daemons, as implemented by the
-    <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>
-    service manager.</para>
+    <para><filename>sd-daemon.h</filename> is part of
+    <citerefentry><refentrytitle>libsystemd</refentrytitle><manvolnum>3</manvolnum></citerefentry> and
+    provides APIs for new-style daemons, as implemented by the
+    <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry> service
+    manager.</para>
 
     <para>See
     <citerefentry><refentrytitle>sd_listen_fds</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
index 7af839b4bda00ed3d4bbd11ff3418900c14873e6..4950781f84b6828c39c543ee6ca4fbdcaf69c23b 100644 (file)
   <refsect1>
     <title>Description</title>
 
-    <para><filename>sd-device.h</filename> provides an API to introspect and enumerate devices on the local
-    system. It provides a programmatic interface to the database of devices and their properties mananaged by
+    <para><filename>sd-device.h</filename> is part of
+    <citerefentry><refentrytitle>libsystemd</refentrytitle><manvolnum>3</manvolnum></citerefentry> and
+    provides an API to introspect and enumerate devices on the local system. It provides a programmatic
+    interface to the database of devices and their properties mananaged by
     <citerefentry><refentrytitle>systemd-udevd.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
     This API is a replacement for
     <citerefentry><refentrytitle>libudev</refentrytitle><manvolnum>3</manvolnum></citerefentry> and
index cb3108aee6a7d53926790275f55828db3e4e7e82..2f17b89145d5b4c92cf926457246a2c85f696032 100644 (file)
@@ -34,8 +34,9 @@
   <refsect1>
     <title>Description</title>
 
-    <para><filename>sd-event.h</filename> provides a generic event
-    loop implementation, based on Linux <citerefentry
+    <para><filename>sd-event.h</filename> is part of
+    <citerefentry><refentrytitle>libsystemd</refentrytitle><manvolnum>3</manvolnum></citerefentry> and
+    provides a generic event loop implementation, based on Linux <citerefentry
     project='man-pages'><refentrytitle>epoll</refentrytitle><manvolnum>7</manvolnum></citerefentry>.
     </para>
 
index 254c218ac636bfc01a86fa16d893fc5de6bbc7d1..189fcd6b6c82d659ec4b1620d86f4b8cea8a9f55 100644 (file)
   <refsect1>
     <title>Description</title>
 
-    <para><filename>sd-hwdb.h</filename> allows read-only access the systemd database of hardware properties.
-    See <citerefentry><refentrytitle>hwdb</refentrytitle><manvolnum>7</manvolnum></citerefentry> and
+    <para><filename>sd-hwdb.h</filename> is part of
+    <citerefentry><refentrytitle>libsystemd</refentrytitle><manvolnum>3</manvolnum></citerefentry> and allows
+    read-only access the systemd database of hardware properties. See
+    <citerefentry><refentrytitle>hwdb</refentrytitle><manvolnum>7</manvolnum></citerefentry> and
     <citerefentry><refentrytitle>systemd-hwdb</refentrytitle><manvolnum>8</manvolnum></citerefentry> for more
     information about the database.</para>
 
index c869943ad721e1bb1a9f5aa6a7b41588eec99648..245bfbb4d39450532fd2f30c637cdffdceb6b465 100644 (file)
   <refsect1>
     <title>Description</title>
 
-    <para><filename>sd-id128.h</filename> provides APIs to generate, convert, and compare 128-bit ID values.
-    The 128-bit ID values processed and generated by these APIs are a generalization of OSF UUIDs as defined
-    by <ulink url="https://tools.ietf.org/html/rfc4122">RFC 4122</ulink> but use a simpler string format.
-    These functions impose no structure on the used IDs, much unlike OSF UUIDs or Microsoft GUIDs, but are
-    mostly compatible with those types of IDs.
+    <para><filename>sd-id128.h</filename> is part of
+    <citerefentry><refentrytitle>libsystemd</refentrytitle><manvolnum>3</manvolnum></citerefentry> and
+    provides APIs to generate, convert, and compare 128-bit ID values. The 128-bit ID values processed and
+    generated by these APIs are a generalization of OSF UUIDs as defined by <ulink
+    url="https://tools.ietf.org/html/rfc4122">RFC 4122</ulink> but use a simpler string format. These
+    functions impose no structure on the used IDs, much unlike OSF UUIDs or Microsoft GUIDs, but are mostly
+    compatible with those types of IDs.
     </para>
 
     <para>A 128-bit ID is implemented as the following
index 4609868c11354a96fac55d0e2a610bb076a24c5b..34debb4d36c3b0aafd92b1e87400641c0c3f8597 100644 (file)
@@ -36,8 +36,9 @@
   <refsect1>
     <title>Description</title>
 
-    <para><filename>sd-journal.h</filename> provides APIs to submit
-    and query log entries. The APIs exposed act both as client for the
+    <para><filename>sd-journal.h</filename> is part of
+    <citerefentry><refentrytitle>libsystemd</refentrytitle><manvolnum>3</manvolnum></citerefentry> and
+    provides APIs to submit and query log entries. The APIs exposed act both as client for the
     <citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
     journal service and as parser for the journal files on disk.
     </para>
index 0127b691f55311d1e53a719ee2871e036011db89..61b555a7ab71ca731e37518ed20e73cff0470e3a 100644 (file)
   <refsect1>
     <title>Description</title>
 
-    <para><filename>sd-login.h</filename> provides APIs to introspect
-    and monitor seat, login session and user status information on the
-    local system. </para>
+    <para><filename>sd-login.h</filename> is part of
+    <citerefentry><refentrytitle>libsystemd</refentrytitle><manvolnum>3</manvolnum></citerefentry> and
+    provides APIs to introspect and monitor seat, login session, and user status information on the local
+    system.</para>
 
     <para>Note that these APIs only allow purely passive access and
     monitoring of seats, sessions and users. To actively make changes