summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_clock.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-08-13 05:52:02 +0000
committerguenther <guenther@openbsd.org>2013-08-13 05:52:02 +0000
commit91a535ff42f6347677741774730dc5ddcf7d5b93 (patch)
treebf11ae7a89610ba77e8820cdad3ce3fd293bc1f4 /sys/kern/kern_clock.c
parentAdd the TCP socket option TCP_NOPUSH to delay sending the stream. (diff)
downloadwireguard-openbsd-91a535ff42f6347677741774730dc5ddcf7d5b93.tar.xz
wireguard-openbsd-91a535ff42f6347677741774730dc5ddcf7d5b93.zip
Switch time_t, ino_t, clock_t, and struct kevent's ident and data
members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
Diffstat (limited to 'sys/kern/kern_clock.c')
-rw-r--r--sys/kern/kern_clock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index 9fc529c7270..3d517b0c11b 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_clock.c,v 1.81 2013/04/24 17:29:02 matthew Exp $ */
+/* $OpenBSD: kern_clock.c,v 1.82 2013/08/13 05:52:23 guenther Exp $ */
/* $NetBSD: kern_clock.c,v 1.34 1996/06/09 04:51:03 briggs Exp $ */
/*-
@@ -290,7 +290,8 @@ int
tvtohz(const struct timeval *tv)
{
unsigned long ticks;
- long sec, usec;
+ time_t sec;
+ long usec;
/*
* If the number of usecs in the whole seconds part of the time