Hi,
I know what Linux does with the attached code, but for the *BSDs and
also for Solaris and other plaforms, could someone try this C code out
on each platform and let me know what the results are?
If you have to change it to compile, BY ALL MEANS send me those changes.
Thanks!
--
Alan Robertson <[EMAIL PROTECTED]>
"Openness is the foundation and preservative of friendship... Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
#include <stdio.h>
#include <errno.h>
#include <sys/times.h>
int
main(int argc, char ** argv)
{
clock_t foo;
errno = 0;
foo = times(NULL);
if (foo != (clock_t)-1) {
printf("times(NULL) OK (%lu)\n", (unsigned long)foo);
return 0;
}else{
perror("times(NULL) failure");
return 1;
}
}
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/