X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsd_journal_next.xml;h=4df6b4e6fd9ff75943c014ff5113d98490465c22;hp=90fcecb1070f635707c1e7239e5d470501fec86a;hb=edf2573743b25273bee020230a60f1a054b8ec60;hpb=4171a6676c74846c9c189f3a92b97bbcd4a11a13 diff --git a/man/sd_journal_next.xml b/man/sd_journal_next.xml index 90fcecb10..4df6b4e6f 100644 --- a/man/sd_journal_next.xml +++ b/man/sd_journal_next.xml @@ -58,34 +58,34 @@ int sd_journal_next - sd_journal* j + sd_journal *j int sd_journal_previous - sd_journal* j + sd_journal *j int sd_journal_next_skip - sd_journal* j + sd_journal *j uint64_t skip int sd_journal_previous_skip - sd_journal* j + sd_journal *j uint64_t skip SD_JOURNAL_FOREACH - sd_journal* j + sd_journal *j SD_JOURNAL_FOREACH_BACKWARDS - sd_journal* j + sd_journal *j @@ -102,7 +102,7 @@ functions such as sd_journal_get_data3. - Similar, sd_journal_previous() sets + Similarly, sd_journal_previous() sets the read pointer back one entry. sd_journal_next_skip() and @@ -128,8 +128,8 @@ as a wrapper around sd_journal_seek_head3 and sd_journal_next() in order to - make iteratring through the journal easier. See below - for an example. Similar, + make iterating through the journal easier. See below + for an example. Similarly, SD_JOURNAL_FOREACH_BACKWARDS() may be used for iterating the journal in reverse order. @@ -140,8 +140,8 @@ The four calls return the number of entries advanced/set back on success or a negative errno-style - error code. When the end (resp. beginning) of the journal - is reached a number smaller than requested is + error code. When the end or beginning of the journal + is reached, a number smaller than requested is returned. More specifically, if sd_journal_next() or sd_journal_previous() reach the @@ -156,10 +156,9 @@ The sd_journal_next(), sd_journal_previous(), sd_journal_next_skip() and sd_journal_previous_skip() interfaces are - available as shared library, which can be compiled and + available as a shared library, which can be compiled and linked to with the - libsystemd-journal - pkg-config1 + libsystemd pkg-config1 file. @@ -184,7 +183,7 @@ int main(int argc, char *argv[]) { const char *d; size_t l; - r = sd_journal_get_data(j, "MESSAGE", &d, &l); + r = sd_journal_get_data(j, "MESSAGE", (const void **)&d, &l); if (r < 0) { fprintf(stderr, "Failed to read message field: %s\n", strerror(-r)); continue; @@ -205,7 +204,9 @@ int main(int argc, char *argv[]) { systemd1, sd-journal3, sd_journal_open3, - sd_journal_get_data3 + sd_journal_get_data3, + sd_journal_get_realtime_usec3, + sd_journal_get_cursor3