aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/_timeval.h
diff options
context:
space:
mode:
authorTom Rhodes <trhodes@FreeBSD.org>2005-12-24 22:22:17 +0000
committerTom Rhodes <trhodes@FreeBSD.org>2005-12-24 22:22:17 +0000
commit09c00166e46fe394db30efb6fc982761b2fb7b82 (patch)
tree99de98c38a690d4ece3fe809f6493bae7a25e39b /sys/sys/_timeval.h
parentaefc1eb3325e47d4ce73e14c085addd60aa2ef84 (diff)
downloadsrc-09c00166e46fe394db30efb6fc982761b2fb7b82.tar.gz
src-09c00166e46fe394db30efb6fc982761b2fb7b82.zip
Make tv_sec a time_t on all platforms but alpha. Brings us more in line with
POSIX. This also makes the struct correct we ever implement an i386-time64 architecture. Not that we need too. Reviewed by: imp, brooks Approved by: njl (acpica), des (no objects, touches procfs) Tested with: make universe
Notes
Notes: svn path=/head/; revision=153706
Diffstat (limited to 'sys/sys/_timeval.h')
-rw-r--r--sys/sys/_timeval.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/_timeval.h b/sys/sys/_timeval.h
index d9ea6f5edbdd..2a51d2fa944a 100644
--- a/sys/sys/_timeval.h
+++ b/sys/sys/_timeval.h
@@ -45,7 +45,11 @@ typedef __time_t time_t;
* Structure returned by gettimeofday(2) system call, and used in other calls.
*/
struct timeval {
- long tv_sec; /* seconds (XXX should be time_t) */
+#ifdef __alpha__
+ long tv_sec; /* seconds */
+#else
+ time_t tv_sec; /* seconds */
+#endif
suseconds_t tv_usec; /* and microseconds */
};