change log for rtems (2011-10-02)

rtems-vc at rtems.org rtems-vc at rtems.org
Sun Oct 2 11:12:12 UTC 2011


 *ralf*:
2011-10-02	Ralf Corsépius <ralf.corsepius at rtems.org>

	* libmisc/shell/main_time.c: Introduce PRIutime_t, SCNutime_t and
	"utime_t" for 64bit-time_t support.

M 1.2933  cpukit/ChangeLog

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
@@ -1,6 +1,12 @@
 2011-10-02	Ralf Corsépius <ralf.corsepius at rtems.org>
 
-	* libmisc/shell/main_time.c: Introduce PRIdtime_t.
+	* 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 at rtems.org>
+
+	* libmisc/shell/main_time.c: Introduce PRIdtime_t for 64bit-time_t
+	support.
 
 2011-10-02	Ralf Corsépius <ralf.corsepius at rtems.org>
 


 *ralf*:
2011-10-02	Ralf Corsépius <ralf.corsepius at rtems.org>

	* libmisc/uuid/gen_uuid.c: Introduce PRIutime_t, SCNutime_t and
	"utime_t" for 64bit-time_t support.

M 1.2934  cpukit/ChangeLog
M    1.5  cpukit/libmisc/uuid/gen_uuid.c

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
@@ -1,6 +1,6 @@
 2011-10-02	Ralf Corsépius <ralf.corsepius at rtems.org>
 
-	* libmisc/shell/main_time.c: Introduce PRIutime_t, SCNutime_t and
+	* libmisc/uuid/gen_uuid.c: Introduce PRIutime_t, SCNutime_t and
 	"utime_t" for 64bit-time_t support.
 
 2011-10-02	Ralf Corsépius <ralf.corsepius at rtems.org>

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
@@ -95,6 +95,18 @@
 #include <sys/resource.h>
 #endif
 
+#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
+
 #include "uuidP.h"
 #include "uuidd.h"
 
@@ -352,10 +364,11 @@
 	}
 	if (state_fd >= 0) {
 		unsigned int cl;
-		unsigned long tv1, tv2;
+		utime_t tv1;
+		unsigned long tv2;
 		int a;
 
-		if (fscanf(state_f, "clock: %04x tv: %lu %lu adj: %d\n",
+		if (fscanf(state_f, "clock: %04x tv: %" SCNutime_t " %lu adj: %d\n",
 			   &cl, &tv1, &tv2, &a) == 4) {
 			clock_seq = cl & 0x3FFF;
 			last.tv_sec = tv1;
@@ -404,7 +417,7 @@
 	if (state_fd > 0) {
 		rewind(state_f);
 		len = fprintf(state_f,
-			      "clock: %04x tv: %016lu %08lu adj: %08d\n",
+			      "clock: %04x tv: %016" PRIutime_t " %08lu adj: %08d\n",
 			      clock_seq, last.tv_sec, last.tv_usec, adjustment);
 		fflush(state_f);
 		if (ftruncate(state_fd, len) < 0) {



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111002/a5ae5687/attachment-0001.html>


More information about the vc mailing list