times(2)
_________________________________________________________________
times System Call
Get process and child process times.
_________________________________________________________________
SYNTAX
#include <sys/types.h>
#include <sys/times.h>
long times (buffer)
struct tms * buffer;
PARAMETERS
buffer The address of a structure into which the times are to
be put.
DESCRIPTION
This system call fills in the structure pointed to by <buffer>
with time accounting information for the calling process and each
of its terminated child processes for which it has executed a
wait.
ACCESS CONTROL
The argument <buffer> must point to an area of the calling
process's address space that is valid and has write access.
RETURN VALUE
Upon successful completion, times returns the elapsed real-time,
in [CLK_TCK]ths of a second, since an arbitrary point in the past
(e.g., system start-up time). This point does not change from
one invocation of times to another. Hence, a single value
returned from this call is not meaningful; only the difference
between values returned at different times is meaningful.
If an error occurs, -1 is returned and errno is set to indicate
the error.
EXCEPTIONS
Errno may be set to one of the following error codes:
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
times(2)
EFAULT <Buffer> points to an illegal address.
SEE ALSO
The related system calls: exec, fork, time, wait.
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)