Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLK_TCK sur MacOS X #3756

Closed
vicuna opened this issue Aug 13, 2005 · 3 comments
Closed

CLK_TCK sur MacOS X #3756

vicuna opened this issue Aug 13, 2005 · 3 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 13, 2005

Original bug ID: 3756
Reporter: administrator
Status: closed (set by @damiendoligez on 2005-12-02T10:11:07Z)
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Related to: #3960

Bug description

Full_Name: Paul Guyot
Version: 3.08.3
OS: MacOS X 10.4.2
Submission from: p2983db.tkyoac00.ap.so-net.ne.jp (218.41.131.219)

Il y a un bogue dans MacOS X 10.4.2: time.h ne définit pas CLK_TCK.

Je suggère de rajouter:
#include <machine/limits.h>

dans otherlibs/unix/times.c

@vicuna
Copy link
Author

vicuna commented Aug 26, 2005

Comment author: administrator

This is clearly a bug in Mac OS X; should we pollute our code with a workaround?

@vicuna
Copy link
Author

vicuna commented Dec 2, 2005

Comment author: anonymous

It's not a bug in MacOS X.
time.h shouldn't define CLK_TCK:
http://www.opengroup.org/onlinepubs/009695399/basedefs/time.h.html

CLK_TCK should be obtained through sysconf(). Ocaml uses a default value which is different from MacOS X's value.

@vicuna
Copy link
Author

vicuna commented Dec 2, 2005

Comment author: @damiendoligez

fixed in 3.09.0 by using getrusage() instead of times()
Note: this was fixed in byterun/sys.c but not in otherlibs/unix/times.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant