For a namespace clean function, implement
_times
, otherwise implement
times
. The implementation of this
functionality will be tightly bound to any operating
infrastructure for handling multiple processes.
A minimal implementation need not offer any timing information, so
should always fail with an appropriate value in
errno
.
#include <errno.h> #include <sys/times.h> #undef errno extern int errno; int _times (struct tms *buf) { errno = EACCES; return -1; } /* _times () */