<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-10-02)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/main_time.c: Introduce PRIutime_t, SCNutime_t and
"utime_t" for 64bit-time_t support.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2932&r2=text&tr2=1.2933&diff_format=h">M</a></td><td width='1%'>1.2933</td><td width='100%'>cpukit/ChangeLog</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2932 rtems/cpukit/ChangeLog:1.2933
--- rtems/cpukit/ChangeLog:1.2932 Sun Oct 2 03:15:01 2011
+++ rtems/cpukit/ChangeLog Sun Oct 2 05:36:17 2011
</font><font color='#997700'>@@ -1,6 +1,12 @@
</font> 2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#880000'>- * libmisc/shell/main_time.c: Introduce PRIdtime_t.
</font><font color='#000088'>+ * libmisc/shell/main_time.c: Introduce PRIutime_t, SCNutime_t and
+ "utime_t" for 64bit-time_t support.
+
+2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
+
+ * libmisc/shell/main_time.c: Introduce PRIdtime_t for 64bit-time_t
+ support.
</font>
2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
<font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/uuid/gen_uuid.c: Introduce PRIutime_t, SCNutime_t and
"utime_t" for 64bit-time_t support.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2933&r2=text&tr2=1.2934&diff_format=h">M</a></td><td width='1%'>1.2934</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libmisc/uuid/gen_uuid.c.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>cpukit/libmisc/uuid/gen_uuid.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2933 rtems/cpukit/ChangeLog:1.2934
--- rtems/cpukit/ChangeLog:1.2933 Sun Oct 2 05:36:17 2011
+++ rtems/cpukit/ChangeLog Sun Oct 2 05:37:28 2011
</font><font color='#997700'>@@ -1,6 +1,6 @@
</font> 2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#880000'>- * libmisc/shell/main_time.c: Introduce PRIutime_t, SCNutime_t and
</font><font color='#000088'>+ * libmisc/uuid/gen_uuid.c: Introduce PRIutime_t, SCNutime_t and
</font> "utime_t" for 64bit-time_t support.
2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
<font color='#006600'>diff -u rtems/cpukit/libmisc/uuid/gen_uuid.c:1.4 rtems/cpukit/libmisc/uuid/gen_uuid.c:1.5
--- rtems/cpukit/libmisc/uuid/gen_uuid.c:1.4 Sun Nov 29 06:12:39 2009
+++ rtems/cpukit/libmisc/uuid/gen_uuid.c Sun Oct 2 05:37:28 2011
</font><font color='#997700'>@@ -95,6 +95,18 @@
</font> #include <sys/resource.h>
#endif
<font color='#000088'>+#if SIZEOF_TIME_T == 8
+#define PRIutime_t PRIu64
+#define SCNutime_t SCNu64
+#define utime_t uint64_t
+#elif SIZEOF_TIME_T == 4
+#define PRIutime_t PRIu32
+#define SCNutime_t SCNu32
+#define utime_t uint32_t
+#else
+#error "unsupport size of time_t"
+#endif
+
</font> #include "uuidP.h"
#include "uuidd.h"
<font color='#997700'>@@ -352,10 +364,11 @@
</font> }
if (state_fd >= 0) {
unsigned int cl;
<font color='#880000'>- unsigned long tv1, tv2;
</font><font color='#000088'>+ utime_t tv1;
+ unsigned long tv2;
</font> int a;
<font color='#880000'>- if (fscanf(state_f, "clock: %04x tv: %lu %lu adj: %d\n",
</font><font color='#000088'>+ if (fscanf(state_f, "clock: %04x tv: %" SCNutime_t " %lu adj: %d\n",
</font> &cl, &tv1, &tv2, &a) == 4) {
clock_seq = cl & 0x3FFF;
last.tv_sec = tv1;
<font color='#997700'>@@ -404,7 +417,7 @@
</font> if (state_fd > 0) {
rewind(state_f);
len = fprintf(state_f,
<font color='#880000'>- "clock: %04x tv: %016lu %08lu adj: %08d\n",
</font><font color='#000088'>+ "clock: %04x tv: %016" PRIutime_t " %08lu adj: %08d\n",
</font> clock_seq, last.tv_sec, last.tv_usec, adjustment);
fflush(state_f);
if (ftruncate(state_fd, len) < 0) {
</pre>
<p> </p>
<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>