[Bug 6327] New: [PATCH] TIME_ClockTimeToFileTime calculation incorrect on FC5

Wine Bugs wine-bugs at winehq.org
Sat Sep 30 11:18:53 CDT 2006


http://bugs.winehq.org/show_bug.cgi?id=6327

           Summary: [PATCH] TIME_ClockTimeToFileTime calculation incorrect
                    on FC5
           Product: Wine
           Version: 0.9.21.
          Platform: PC
        OS/Version: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-kernel
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: sveit at earthlink.net


The TIME_ClockTimeToFileTime function incorrectly divides the clock ticks by
1000000 on Fedora Core 5. The calculation is correct on Fedora Core 3. The
problem is that the code uses the obsolete CLK_TCK macro, which doesn't exist on
FC5. On FC3 the is set to 100. The code defines CLK_TCK as CLOCKS_PER_SEC
(defined as 1000000) on FC5. According to the times(2):

       The number of clock ticks per second can be obtained using
              sysconf(_SC_CLK_TCK);
       In POSIX-1996 the symbol CLK_TCK (defined in <time.h>) is mentioned as
       obsolescent. It is obsolete now.

The attached patch fixes this problem.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list