summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2005-10-15 02:40:10 +0000
committerps <ps@FreeBSD.org>2005-10-15 02:40:10 +0000
commitc7a8fca230f4610917e7a741a1a8067dc20c3295 (patch)
tree8764f3a63d953dd0bb9b755aeb60be147ae3d182 /sys
parent038296cec9ff2272c85065215b90073d5085819a (diff)
downloadFreeBSD-src-c7a8fca230f4610917e7a741a1a8067dc20c3295.zip
FreeBSD-src-c7a8fca230f4610917e7a741a1a8067dc20c3295.tar.gz
Correct the prototype for freebsd32_nanosleep and use the proper
size when copying struct timespec32 in and out.
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c4
-rw-r--r--sys/compat/freebsd32/syscalls.master4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index 4d44b6b..5fcfe58 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -1236,7 +1236,7 @@ freebsd32_nanosleep(struct thread *td, struct freebsd32_nanosleep_args *uap)
struct timespec rmt, rqt;
int error;
- error = copyin(uap->rqtp, &rqt32, sizeof(rqt));
+ error = copyin(uap->rqtp, &rqt32, sizeof(rqt32));
if (error)
return (error);
@@ -1253,7 +1253,7 @@ freebsd32_nanosleep(struct thread *td, struct freebsd32_nanosleep_args *uap)
CP(rmt, rmt32, tv_sec);
CP(rmt, rmt32, tv_nsec);
- error2 = copyout(&rmt32, uap->rmtp, sizeof(rmt));
+ error2 = copyout(&rmt32, uap->rmtp, sizeof(rmt32));
if (error2)
error = error2;
}
diff --git a/sys/compat/freebsd32/syscalls.master b/sys/compat/freebsd32/syscalls.master
index 8094be3..cab7077 100644
--- a/sys/compat/freebsd32/syscalls.master
+++ b/sys/compat/freebsd32/syscalls.master
@@ -424,8 +424,8 @@
238 AUE_NULL UNIMPL timer_gettime
239 AUE_NULL UNIMPL timer_getoverrun
240 AUE_NULL MSTD { int freebsd32_nanosleep( \
- const struct timespec *rqtp, \
- struct timespec *rmtp); }
+ const struct timespec32 *rqtp, \
+ struct timespec32 *rmtp); }
241 AUE_NULL UNIMPL nosys
242 AUE_NULL UNIMPL nosys
243 AUE_NULL UNIMPL nosys
OpenPOWER on IntegriCloud