Fix time syscall decoding for some personalities

* time.c (current_time_t_is_int32): Define.
(sys_time): Use it, printnum_int, and printnum_int64 instead
of printnum_long.
* tests/time.c: New file.
* tests/time.test: New test.
* tests/Makefile.am (check_PROGRAMS): Add time.
(TESTS): Add time.test.
* tests/.gitignore: Add time.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6b299d1..6fa46d3 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -50,6 +50,7 @@
 	stat \
 	stat32 \
 	statfs \
+	time \
 	uid \
 	uid16 \
 	uid32 \
@@ -115,6 +116,7 @@
 	pc.test \
 	ppoll.test \
 	sun_path.test \
+	time.test \
 	umovestr.test \
 	umovestr2.test \
 	unix-yy.test \