This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, gvanrossum, maltehelmert, pitrou, rbp
Date 2008-02-23.21:15:11
SpamBayes Score 0.055104554
Marked as misclassified No
Message-id <1203801312.79.0.28588262573.issue1040026@psf.upfronthosting.co.za>
In-reply-to
Content
os_times3.PATCH works for me on Mac OS 10.4 and RHEL.  I have a few 
comments on the patch:

1. sysconf return type is long, not clock_t
2. If sysconf is present, but _SC_CLK_TCK is not supported, it will 
return -1.  In this case we should fall back to system HZ if available.
3. Use -1 instead of NULL as the invalid value. NULL has too strong 
connotation with pointers.
4. On systems where fixed HZ is correct calling sysconf(_SC_CLK_TCK) on 
every times call is an overkill.

I would suggest that instead of patching posixmodule.c an appropriate 
system-dependent value for HZ should be defined in configure.h.  
Unfortunately I am not familiar enough with autoconf to prepare a patch.
History
Date User Action Args
2008-02-23 21:15:13belopolskysetspambayes_score: 0.0551046 -> 0.055104554
recipients: + belopolsky, gvanrossum, maltehelmert, pitrou, rbp
2008-02-23 21:15:12belopolskysetspambayes_score: 0.0551046 -> 0.0551046
messageid: <1203801312.79.0.28588262573.issue1040026@psf.upfronthosting.co.za>
2008-02-23 21:15:12belopolskylinkissue1040026 messages
2008-02-23 21:15:11belopolskycreate