aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/freebsd32
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2009-09-16 13:24:37 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2009-09-16 13:24:37 +0000
commit9f1fab50644f23b1885ec8ae0b875b824ce85bb4 (patch)
tree23f11b506d5b25b1fc4aff490cb6b985722fab23 /sys/compat/freebsd32
parente9667e8ff118a1ab0a9d36fce68a055e8d9aad7f (diff)
MFC r197049:
Calculate the amount of bytes to copy for select filedescriptor masks taking into account size of fd_set for the current process ABI. Approved by: re (kensmith)
Notes
Notes: svn path=/stable/8/; revision=197255
Diffstat (limited to 'sys/compat/freebsd32')
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index 466aab4ca28a..71b22aa11c2e 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -589,7 +589,8 @@ freebsd32_select(struct thread *td, struct freebsd32_select_args *uap)
* XXX big-endian needs to convert the fd_sets too.
* XXX Do pointers need PTRIN()?
*/
- return (kern_select(td, uap->nd, uap->in, uap->ou, uap->ex, tvp));
+ return (kern_select(td, uap->nd, uap->in, uap->ou, uap->ex, tvp,
+ sizeof(int32_t) * 8));
}
/*