~ubuntu-branches/ubuntu/trusty/systemd/trusty

« back to all changes in this revision

Viewing changes to man/sd_journal_get_cutoff_realtime_usec.html

Tags: upstream-202
Import upstream version 202

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
  <a href="systemd.directives.html">Directives </a>·
3
3
  <a href="../python-systemd/index.html">Python </a>·
4
4
  <a href="../libudev/index.html">libudev </a>·
5
 
  <a href="../libudev/index.html">gudev </a><hr><div class="refentry"><a name="sd_journal_get_cutoff_realtime_usec"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_cutoff_realtime_usec, sd_journal_get_cutoff_monotonic_usec — Read cut-off timestamps from the current journal entry</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_cutoff_realtime_usec</b>(</code></td><td>sd_journal* <var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">from</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">to</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_cutoff_monotonic_usec</b>(</code></td><td>sd_journal* <var class="pdparam">j</var>, </td></tr><tr><td> </td><td>sd_id128_t <var class="pdparam">boot_id</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">from</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">to</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1650464"></a><h2>Description</h2><p><code class="function">sd_journal_get_cutoff_realtime_usec()</code>
 
5
  <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 202</span><hr><div class="refentry"><a name="sd_journal_get_cutoff_realtime_usec"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_cutoff_realtime_usec, sd_journal_get_cutoff_monotonic_usec — Read cut-off timestamps from the current journal entry</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-journal.h&gt;</pre><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_cutoff_realtime_usec</b>(</code></td><td>sd_journal* <var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">from</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">to</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">sd_journal_get_cutoff_monotonic_usec</b>(</code></td><td>sd_journal* <var class="pdparam">j</var>, </td></tr><tr><td> </td><td>sd_id128_t <var class="pdparam">boot_id</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">from</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">to</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp3923808"></a><h2>Description</h2><p><code class="function">sd_journal_get_cutoff_realtime_usec()</code>
6
6
                gets the realtime (wallclock) timestamps of the first
7
7
                and last entries accessible in the journal.  It takes
8
8
                three arguments: the journal context object and two
26
26
                timestamps for the boot identified by the passed boot
27
27
                ID. Either one of the two timestamp arguments may be
28
28
                passed as NULL in case the timestamp is not needed,
29
 
                but not both.</p></div><div class="refsect1"><a name="idp1829824"></a><h2>Return Value</h2><p><code class="function">sd_journal_get_cutoff_realtime_usec()</code>
 
29
                but not both.</p></div><div class="refsect1"><a name="idp23744"></a><h2>Return Value</h2><p><code class="function">sd_journal_get_cutoff_realtime_usec()</code>
30
30
                and
31
31
                <code class="function">sd_journal_get_cutoff_monotonic_usec()</code>
32
32
                return 1 on success, 0 if not suitable entries are in
33
 
                the journal or a negative errno-style error code.</p></div><div class="refsect1"><a name="idp2901856"></a><h2>Notes</h2><p>The
 
33
                the journal or a negative errno-style error code.</p></div><div class="refsect1"><a name="idp26416"></a><h2>Notes</h2><p>The
34
34
                <code class="function">sd_journal_get_cutoff_realtime_usec()</code>
35
35
                and
36
36
                <code class="function">sd_journal_get_cutoff_monotonic_usec()</code>
38
38
                be compiled and linked to with the
39
39
                <code class="literal">libsystemd-journal</code>
40
40
                <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
41
 
                file.</p></div><div class="refsect1"><a name="idp3843216"></a><h2>See Also</h2><p>
 
41
                file.</p></div><div class="refsect1"><a name="idp30768"></a><h2>See Also</h2><p>
42
42
                        <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
43
43
                        <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
44
44
                        <a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>,