[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MiNT 1.10 /dev/* time stamp patch



 Nice thing so far, but I would really recommend applying the following:

--- cut cut cut ---
diff -u4 orig/dos.c ./dos.c
--- orig/dos.c	Thu Feb 17 16:55:02 1994
+++ ./dos.c	Thu Feb 17 18:07:30 1994
@@ -478,10 +478,8 @@
 void
 init_dos()
 {
 /* miscellaneous initialization goes here */
-	timestamp = Tgettime();
-	datestamp = Tgetdate();
 
 /* dos table initialization */
 	dos_tab[0x00] = p_term0;
 	dos_tab[0x01] = c_conin;
diff -u4 orig/main.c ./main.c
--- orig/main.c	Thu Feb 17 16:55:12 1994
+++ ./main.c	Thu Feb 17 17:57:36 1994
@@ -757,8 +757,12 @@
  */
 		has_bconmap = (Bconmap(0) == 0);
 	}
 
+/* ts: init these here, so that filesystems can use them */
+	timestamp = Tgettime();
+	datestamp = Tgetdate();
+
 /* initialize memory */
 	init_mem();
 
 /* initialize the basic file systems */
--- cut cut cut ---

 Otherwise most of the /dev entires look a bit stupid, with 1980 as the year
of their creation and use and so...

 I seem to have somehow missed most parts of the repeated-keys-dont-generate-
interrupts story, so I'm a bit struck by surprise with MiNT 1.10's behaviour
with the console. Almost looks like a daemon is polling it. :-) Keys come in
chunks 4-5 times a second, not when they're actually pressed, but just 4-5
times a second. Looks extremely annoying when typing on the command line or
in an editor. :-( Anyone interested in me saying that I don't like this and
heavily prefer the original 1.09 behaviour?

cheers,
TeSche