diff options
| author | 2013-08-13 05:52:02 +0000 | |
|---|---|---|
| committer | 2013-08-13 05:52:02 +0000 | |
| commit | 91a535ff42f6347677741774730dc5ddcf7d5b93 (patch) | |
| tree | bf11ae7a89610ba77e8820cdad3ce3fd293bc1f4 /sys/compat/linux/linux_misc.c | |
| parent | Add the TCP socket option TCP_NOPUSH to delay sending the stream. (diff) | |
| download | wireguard-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/compat/linux/linux_misc.c')
| -rw-r--r-- | sys/compat/linux/linux_misc.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 6b0f022f27d..d78c56f9989 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.c,v 1.80 2013/05/10 10:31:16 pirofti Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.81 2013/08/13 05:52:21 guenther Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /*- @@ -1049,7 +1049,7 @@ linux_sys_readdir(p, v, retval) * * Note that this doesn't handle union-mounted filesystems. */ -int linux_readdir_callback(void *, struct dirent *, off_t); +int linux_readdir_callback(void *, struct dirent *); struct linux_readdir_callback_args { caddr_t outp; @@ -1059,10 +1059,9 @@ struct linux_readdir_callback_args { }; int -linux_readdir_callback(arg, bdp, cookie) +linux_readdir_callback(arg, bdp) void *arg; struct dirent *bdp; - off_t cookie; { struct linux_dirent64 idb64; struct linux_dirent idb; @@ -1082,7 +1081,7 @@ linux_readdir_callback(arg, bdp, cookie) if (cb->is64bit) { idb64.d_ino = (linux_ino64_t)bdp->d_fileno; - idb64.d_off = (linux_off64_t)cookie; + idb64.d_off = (linux_off64_t)bdp->d_off; idb64.d_reclen = (u_short)linux_reclen; idb64.d_type = bdp->d_type; strlcpy(idb64.d_name, bdp->d_name, sizeof(idb64.d_name)); @@ -1099,7 +1098,7 @@ linux_readdir_callback(arg, bdp, cookie) idb.d_off = (linux_off_t)linux_reclen; idb.d_reclen = (u_short)bdp->d_namlen; } else { - idb.d_off = (linux_off_t)cookie; + idb.d_off = (linux_off_t)bdp->d_off; idb.d_reclen = (u_short)linux_reclen; } strlcpy(idb.d_name, bdp->d_name, sizeof(idb.d_name)); |
