From 6c60db8ce99eabdbfcbe0f78a50817494142e39e Mon Sep 17 00:00:00 2001 From: "Timothy M. Jones" Date: Sat, 24 Oct 2009 10:53:57 -0700 Subject: syscall: Implementation of the times system call --- src/kern/linux/linux.hh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/kern/linux') diff --git a/src/kern/linux/linux.hh b/src/kern/linux/linux.hh index 7c16228ea..2df323712 100644 --- a/src/kern/linux/linux.hh +++ b/src/kern/linux/linux.hh @@ -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 * -- cgit v1.2.3