I have been reading a lot of old mails in this list about hour adjustment. But I see thay are based on adjusting hardware-clock and system-clock and my problem is diferent. I have a C program that receives the hour from a gps device (connected through a serial port) and tries to adjust the system-clock to that gps-hour. This is possible with a C function called "adjtime". So, the only thing I get using adjtime function is the system-clock is more and more far away each time. Adjtime DOESN'T adjust anything!! I have tested it using "settimeofday" instead of adjtime. Settimeofday changes the time more abruptly and there are more problems with files date. So, is not a good option. My distro is Suse 9.0. I have tested it in Suse 9.1 and it doesn't work. But, I have tested the same program in RedHat 7.2 and 8.0 and adjtime works right!!. The only diference I have seen between Suse and RedHat machines is when I run the command "adjtimex --p". At Suse I got: TICK = 1000 FREQUENCY = 0
And RedHat: TICK = 10000 FREQUENCY = 0
I have tried to change the tick in Suse machines to 10000 but it doesn't let me (it says: "invalid argument") I hope somebody has any idea. In any case, thanks a lot.
______________________________________________ Renovamos el Correo Yahoo!: ¡100 MB GRATIS! Nuevos servicios, más seguridad http://correo.yahoo.es