1SD_JOURNAL_HAS_RUNTIME_FILsEdS_(j3o)urnal_has_runtime_SfDi_lJeOsURNAL_HAS_RUNTIME_FILES(3)
2
3
4
6 sd_journal_has_runtime_files, sd_journal_has_persistent_files - Query
7 availability of runtime or persistent journal files.
8
10 #include <systemd/sd-journal.h>
11
12 int sd_journal_has_runtime_files(sd_journal *j);
13
14 int sd_journal_has_persistent_files(sd_journal *j);
15
17 sd_journal_has_runtime_files() returns a positive value if runtime
18 journal files (present in /run/systemd/journal/) have been found.
19 Otherwise returns 0.
20
21 sd_journal_has_persistent_files() returns a positive value if
22 persistent journal files (present in /var/log/journal/) have been
23 found. Otherwise returns 0.
24
26 Both sd_journal_has_runtime_files() and
27 sd_journal_has_persistent_files() return -EINVAL if their argument is
28 NULL.
29
31 All functions listed here are thread-agnostic and only a single thread
32 may operate on a given sd_journal object.
33
34 These APIs are implemented as a shared library, which can be compiled
35 and linked to with the libsystemd pkg-config(1) file.
36
38 sd-journal(3)
39
40
41
42systemd 239 SD_JOURNAL_HAS_RUNTIME_FILES(3)