diff --git a/man/rules/meson.build b/man/rules/meson.build index 5cff8ae320..9416c736c0 100644 --- a/man/rules/meson.build +++ b/man/rules/meson.build @@ -550,7 +550,9 @@ manpages = [ ''], ['sd_journal_open', '3', - ['SD_JOURNAL_CURRENT_USER', + ['SD_JOURNAL_ALL_NAMESPACES', + 'SD_JOURNAL_CURRENT_USER', + 'SD_JOURNAL_INCLUDE_DEFAULT_NAMESPACE', 'SD_JOURNAL_LOCAL_ONLY', 'SD_JOURNAL_OS_ROOT', 'SD_JOURNAL_RUNTIME_ONLY', diff --git a/man/sd_journal_open.xml b/man/sd_journal_open.xml index 47e57107cd..9884beae1a 100644 --- a/man/sd_journal_open.xml +++ b/man/sd_journal_open.xml @@ -29,6 +29,8 @@ SD_JOURNAL_SYSTEM SD_JOURNAL_CURRENT_USER SD_JOURNAL_OS_ROOT + SD_JOURNAL_ALL_NAMESPACES + SD_JOURNAL_INCLUDE_DEFAULT_NAMESPACE Open the system journal for reading @@ -42,6 +44,13 @@ int flags + + int sd_journal_open_namespace + sd_journal **ret + const char *namespace + int flags + + int sd_journal_open_directory sd_journal **ret @@ -101,6 +110,19 @@ SD_JOURNAL_CURRENT_USER are specified, all journal file types will be opened. + sd_journal_open_namespace() is similar to + sd_journal_open() but takes an additional namespace parameter + that specifies which journal namespace to operate on. If specified as NULL the call + is identical to sd_journal_open(). If non-NULL only data from + the namespace identified by the specified parameter is accessed. This call understands two additional + flags: if SD_JOURNAL_ALL_NAMESPACES is specified the + namespace parameter is ignored and all defined namespaces are accessed + simultaneously; if SD_JOURNAL_INCLUDE_DEFAULT_NAMESPACE the specified namespace and + the default namespace are accessed but no others (this flag has no effect when + namespace is passed as NULL). For details about journal + namespaces see + systemd-journald.service8. + sd_journal_open_directory() is similar to sd_journal_open() but takes an absolute directory path as argument. All journal files in this directory will be opened and interleaved automatically. This call also takes a flags argument. The flags parameters accepted by this call are