On Fri, Aug 08, 2008 at 10:14:33PM +0200, Tomasz Chmielewski wrote: > open("/dev/rtc", O_RDONLY|O_LARGEFILE) = 3 > ioctl(3, RTC_UIE_ON, 0) = -1 ENOTTY (Inappropriate ioctl for device) > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0 > (...) Yeah, our synchronize_to_clock_tick() :-) hwclock/rtc.c, busywait_for_rtc_clock_tick(): for (i = 0; (rc = do_rtc_read_ioctl(rtc_fd, &nowtime)) == 0 && start_time.tm_sec == nowtime.tm_sec; i++) if (i >= 1000000) { fprintf(stderr, _("Timed out waiting for time change.\n")); return 2; } Karel -- Karel Zak <kzak@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html