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 sd-journal(3)
32
33
34
35systemd 219 SD_JOURNAL_HAS_RUNTIME_FILES(3)