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
32 specific thread may operate on a given object during its entire
33 lifetime. It's safe to allocate multiple independent objects and use
34 each from a specific thread in parallel. However, it's not safe to
35 allocate such an object in one thread, and operate or free it from any
36 other, even if locking is used to ensure these threads don't operate on
37 it at the very same time.
38
39 These APIs are implemented as a shared library, which can be compiled
40 and linked to with the libsystemd pkg-config(1) file.
41
43 sd-journal(3)
44
45
46
47systemd 250 SD_JOURNAL_HAS_RUNTIME_FILES(3)