<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libspl/timestamp.c, branch zfs-0.7.0-rc4</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>Fix `zpool iostat -T d 1` on musl</title>
<updated>2017-04-12T15:57:46+00:00</updated>
<author>
<name>Richard Yao</name>
<email>ryao@gentoo.org</email>
</author>
<published>2017-04-09T19:00:03+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=281f1fa30ac3558d0e5e1573bdb9113291815bcd'/>
<id>281f1fa30ac3558d0e5e1573bdb9113291815bcd</id>
<content type='text'>
When building on Gentoo against musl, GCC complains:

timestamp.c: In function ‘print_timestamp’:
timestamp.c:32:19: warning: passing argument 1 of ‘nl_langinfo’ makes
integer from pointer without a cast
 #define _DATE_FMT "%+"
                   ^
timestamp.c:47:21: note: in expansion of macro ‘_DATE_FMT’
   fmt = nl_langinfo(_DATE_FMT);
                     ^
The error was wrapped to meet comment style requirements.

This code is used by `zpool iostat -T d 1` to print a date and upon
testing it, I see no date printed. Lets use D_T_FMT so that something
gets printed and if D_T_FMT is not avaliable, then we can fall back to
"%+".

Reviewed-by: George Melikov &lt;mail@gmelikov.ru&gt;
Reviewed-by: loli10K &lt;ezomori.nozomu@gmail.com&gt;
Reviewed-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Reviewed-by: George Melikov &lt;mail@gmelikov.ru&gt;
Signed-off-by: Richard Yao &lt;ryao@gentoo.org&gt;
Closes #5993
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When building on Gentoo against musl, GCC complains:

timestamp.c: In function ‘print_timestamp’:
timestamp.c:32:19: warning: passing argument 1 of ‘nl_langinfo’ makes
integer from pointer without a cast
 #define _DATE_FMT "%+"
                   ^
timestamp.c:47:21: note: in expansion of macro ‘_DATE_FMT’
   fmt = nl_langinfo(_DATE_FMT);
                     ^
The error was wrapped to meet comment style requirements.

This code is used by `zpool iostat -T d 1` to print a date and upon
testing it, I see no date printed. Lets use D_T_FMT so that something
gets printed and if D_T_FMT is not avaliable, then we can fall back to
"%+".

Reviewed-by: George Melikov &lt;mail@gmelikov.ru&gt;
Reviewed-by: loli10K &lt;ezomori.nozomu@gmail.com&gt;
Reviewed-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Reviewed-by: George Melikov &lt;mail@gmelikov.ru&gt;
Signed-off-by: Richard Yao &lt;ryao@gentoo.org&gt;
Closes #5993
</pre>
</div>
</content>
</entry>
<entry>
<title>Set _DATE_FMT to '%+' if not defined in libspl/timestamp.c</title>
<updated>2016-03-30T01:33:17+00:00</updated>
<author>
<name>Carlo Landmeter</name>
<email>clandmeter@gmail.com</email>
</author>
<published>2016-03-01T15:23:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=43148eaef2819eeda68e6846c03f0bd4672245a7'/>
<id>43148eaef2819eeda68e6846c03f0bd4672245a7</id>
<content type='text'>
Signed-off-by: Carlo Landmeter &lt;clandmeter@gmail.com&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #4458
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Carlo Landmeter &lt;clandmeter@gmail.com&gt;
Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
Closes #4458
</pre>
</div>
</content>
</entry>
<entry>
<title>Add linux libspl support</title>
<updated>2010-08-31T20:41:59+00:00</updated>
<author>
<name>Brian Behlendorf</name>
<email>behlendorf1@llnl.gov</email>
</author>
<published>2010-08-26T18:50:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a26baf285f71eb95f1eace8c79d12d647a694488'/>
<id>a26baf285f71eb95f1eace8c79d12d647a694488</id>
<content type='text'>
All changes needed for the libspl layer.  This includes modifications
to files directly copied from OpenSolaris and the addition of new
files needed to fill in the gaps.

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All changes needed for the libspl layer.  This includes modifications
to files directly copied from OpenSolaris and the addition of new
files needed to fill in the gaps.

Signed-off-by: Brian Behlendorf &lt;behlendorf1@llnl.gov&gt;
</pre>
</div>
</content>
</entry>
</feed>
