times(2) DG/UX 4.30 times(2)
NAME
times - Get process and child process times.
SYNOPSIS
#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:
EFAULT <Buffer> points to an illegal address.
SEE ALSO
The related system calls: exec, fork, time, wait.
Licensed material--property of copyright holder(s) Page 1