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

« back to all changes in this revision

Viewing changes to man/sd_journal_get_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_realtime_usec"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_realtime_usec, sd_journal_get_monotonic_usec — Read 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_realtime_usec</b>(</code></td><td>sd_journal* <var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">usec</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_monotonic_usec</b>(</code></td><td>sd_journal* <var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">usec</var>, </td></tr><tr><td> </td><td>sd_id128_t* <var class="pdparam">boot_id</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp3970288"></a><h2>Description</h2><p><code class="function">sd_journal_get_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_realtime_usec"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_journal_get_realtime_usec, sd_journal_get_monotonic_usec — Read 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_realtime_usec</b>(</code></td><td>sd_journal* <var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">usec</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_monotonic_usec</b>(</code></td><td>sd_journal* <var class="pdparam">j</var>, </td></tr><tr><td> </td><td>uint64_t* <var class="pdparam">usec</var>, </td></tr><tr><td> </td><td>sd_id128_t* <var class="pdparam">boot_id</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp124800"></a><h2>Description</h2><p><code class="function">sd_journal_get_realtime_usec()</code>
6
6
                gets the realtime (wallclock) timestamp of the
7
7
                current journal entry.  It takes two arguments: the
8
8
                journal context object and a pointer to a 64 Bit
26
26
                system boot.</p><p>Note that these functions will not work before
27
27
                <a href="sd_journal_next.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_next</span>(3)</span></a>
28
28
                (or related call) has been called at least
29
 
                once, in order to position the read pointer at a valid entry.</p></div><div class="refsect1"><a name="idp3977184"></a><h2>Return Value</h2><p><code class="function">sd_journal_get_realtime_usec()</code>
 
29
                once, in order to position the read pointer at a valid entry.</p></div><div class="refsect1"><a name="idp3963552"></a><h2>Return Value</h2><p><code class="function">sd_journal_get_realtime_usec()</code>
30
30
                and
31
31
                <code class="function">sd_journal_get_monotonic_usec()</code>
32
32
                returns 0 on success or a negative errno-style error
33
33
                code. If the boot ID parameter was passed NULL and the
34
34
                monotonic timestamp of the current journal entry is
35
 
                not of the current system boot, -ESTALE is returned by <code class="function">sd_journal_get_monotonic_usec()</code>.</p></div><div class="refsect1"><a name="idp26416"></a><h2>Notes</h2><p>The
 
35
                not of the current system boot, -ESTALE is returned by <code class="function">sd_journal_get_monotonic_usec()</code>.</p></div><div class="refsect1"><a name="idp3967072"></a><h2>Notes</h2><p>The
36
36
                <code class="function">sd_journal_get_realtime_usec()</code>
37
37
                and
38
38
                <code class="function">sd_journal_get_monotonic_usec()</code>
40
40
                be compiled and linked to with the
41
41
                <code class="literal">libsystemd-journal</code>
42
42
                <a href="pkg-config.html"><span class="citerefentry"><span class="refentrytitle">pkg-config</span>(1)</span></a>
43
 
                file.</p></div><div class="refsect1"><a name="idp30768"></a><h2>See Also</h2><p>
 
43
                file.</p></div><div class="refsect1"><a name="idp3971472"></a><h2>See Also</h2><p>
44
44
                        <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
45
45
                        <a href="sd-journal.html"><span class="citerefentry"><span class="refentrytitle">sd-journal</span>(3)</span></a>,
46
46
                        <a href="sd_journal_open.html"><span class="citerefentry"><span class="refentrytitle">sd_journal_open</span>(3)</span></a>,