From f2b95a621a9fd41d222844eda237f607eb14d49c Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Tue, 13 Aug 2013 05:52:28 +0000 Subject: 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@ --- lib/libc/gen/rewinddir.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/libc/gen/rewinddir.c') diff --git a/lib/libc/gen/rewinddir.c b/lib/libc/gen/rewinddir.c index 2ac2554ba51..3844b63efdb 100644 --- a/lib/libc/gen/rewinddir.c +++ b/lib/libc/gen/rewinddir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rewinddir.c,v 1.9 2007/10/12 22:41:42 chl Exp $ */ +/* $OpenBSD: rewinddir.c,v 1.10 2013/08/13 05:52:12 guenther Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -38,7 +38,6 @@ void rewinddir(DIR *dirp) { _MUTEX_LOCK(&dirp->dd_lock); - __seekdir(dirp, dirp->dd_rewind); - dirp->dd_rewind = _telldir_unlocked(dirp); + __seekdir(dirp, 0); _MUTEX_UNLOCK(&dirp->dd_lock); } -- cgit v1.2.3