syscall: Implementation of the times system call

This commit is contained in:
Timothy M. Jones
2009-10-24 10:53:57 -07:00
parent 56154cff5e
commit 6c60db8ce9
2 changed files with 35 additions and 0 deletions

View File

@@ -136,6 +136,17 @@ class Linux : public OperatingSystem
int64_t tv_usec; //!< microseconds
};
/// Clock ticks per second, for times().
static const int _SC_CLK_TCK = 100;
/// For times().
struct tms {
int64_t tms_utime; //!< user time
int64_t tms_stime; //!< system time
int64_t tms_cutime; //!< user time of children
int64_t tms_cstime; //!< system time of children
};
// For writev/readv
struct tgt_iovec {
uint64_t iov_base; // void *