X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Fsd_journal_open.xml;h=0f4178274e3f87efb6b9709922944eff50a1b6a5;hb=3ae83f9896bff49679c8a60e6ff9520557df8b16;hp=dd2f32d81ad2586d826681b09b3df28c59407c9d;hpb=a688baa8b71f9c74500f7883dfb137194874266a;p=elogind.git diff --git a/man/sd_journal_open.xml b/man/sd_journal_open.xml index dd2f32d81..0f4178274 100644 --- a/man/sd_journal_open.xml +++ b/man/sd_journal_open.xml @@ -45,6 +45,7 @@ sd_journal_open sd_journal_open_directory + sd_journal_open_files sd_journal_close sd_journal SD_JOURNAL_LOCAL_ONLY @@ -71,6 +72,13 @@ int flags + + int sd_journal_open_files + sd_journal** ret + const char** paths + int flags + + void sd_journal_close sd_journal* j @@ -111,6 +119,18 @@ flags argument, but it must be passed as 0 as no flags are currently understood for this call. + sd_journal_open_files() + is similar to sd_journal_open() + but takes a NULL-terminated list + of file paths to open. All files will be opened and + interleaved automatically. This call also takes a + flags argument, but it must be passed as 0 as no flags + are currently understood for this call. Please note + that in case of a live journal, this function is only + useful for debugging, because individual journal files + can be rotated at any moment, and the opening of + specific files in inherently racy. + sd_journal_close() will close the journal context allocated with sd_journal_open() or @@ -155,8 +175,9 @@ Return Value - The sd_journal_open() and - sd_journal_open_directory() calls + The sd_journal_open(), + sd_journal_open_directory(), and + sd_journal_open_files() calls return 0 on success or a negative errno-style error code. sd_journal_close() returns nothing. @@ -188,9 +209,10 @@ sd_journal_open_directory() was added in systemd-187. - SD_JOURNAL_SYSTEM and - SD_JOURNAL_CURRENT_USER were added - in systemd-205. + SD_JOURNAL_SYSTEM, + SD_JOURNAL_CURRENT_USER, + and sd_journal_open_files() + were added in systemd-205. SD_JOURNAL_SYSTEM_ONLY was deprecated.