'\" t .TH "SD_JOURNAL_HAS_RUNTIME_FILES" "3" "" "systemd 232" "sd_journal_has_runtime_files" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" sd_journal_has_runtime_files, sd_journal_has_persistent_files \- Query availability of runtime or persistent journal files\&. .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP \w'int\ sd_journal_has_runtime_files('u .BI "int sd_journal_has_runtime_files(sd_journal\ *" "j" ");" .HP \w'int\ sd_journal_has_persistent_files('u .BI "int sd_journal_has_persistent_files(sd_journal\ *" "j" ");" .SH "DESCRIPTION" .PP \fBsd_journal_has_runtime_files()\fR returns a positive value if runtime journal files (present in /run/systemd/journal/) have been found\&. Otherwise returns 0\&. .PP \fBsd_journal_has_persistent_files()\fR returns a positive value if persistent journal files (present in /var/log/journal/) have been found\&. Otherwise returns 0\&. .SH "RETURN VALUE" .PP Both \fBsd_journal_has_runtime_files()\fR and \fBsd_journal_has_persistent_files()\fR return \-EINVAL if their argument is NULL\&. .SH "NOTES" .PP All functions listed here are thread\-agnostic and only a single thread may operate on a given sd_journal object\&. .PP Functions listed here are available as a shared library, which can be compiled and linked to with the \fBlibsystemd\fR\ \&\fBpkg-config\fR(1) file\&. .SH "SEE ALSO" .PP \fBsd-journal\fR(3)