tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

{clock,pthread}_getcpuclockid return values



Hi,

Checking the Opengroup online specifications, i noticed that both
clock_getcpuclockid[1] and pthread_getcpuclockid[2] should return 0 on
success and an error number otherwise. But our implementation does not
follow that and returns -1 and set errno on failure. Both functions
are wrappers around clock_getcpuclockid2 syscall.

Unless there is a specific reason for this behaviour, we'll have to
fix them for follow the standard ... but where. Both wrappers, or the
underling syscall ?

Thanks.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getcpuclockid.html
[2] http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_getcpuclockid.html
-- 
Nicolas Joly

Cluster & Computing Group
Biology IT Center
Institut Pasteur, Paris.


Home | Main Index | Thread Index | Old Index