Fix freebsd32_kmq_timedreceive() and freebsd32_kmq_timedsend() to use

getmq_read() and getmq_write() respectively, just like sys_kmq_timedreceive()
and sys_kmq_timedsend().

Sponsored by:	FreeBSD Foundation
MFC after:	2 weeks
This commit is contained in:
Pawel Jakub Dawidek 2012-09-25 22:15:59 +00:00
parent 869785b49c
commit 28f865b0b1

View File

@ -2717,7 +2717,7 @@ freebsd32_kmq_timedsend(struct thread *td,
int error;
int waitok;
error = getmq_read(td, uap->mqd, &fp, NULL, &mq);
error = getmq_write(td, uap->mqd, &fp, NULL, &mq);
if (error)
return (error);
if (uap->abs_timeout != NULL) {
@ -2746,7 +2746,7 @@ freebsd32_kmq_timedreceive(struct thread *td,
struct timespec *abs_timeout, ets;
int error, waitok;
error = getmq_write(td, uap->mqd, &fp, NULL, &mq);
error = getmq_read(td, uap->mqd, &fp, NULL, &mq);
if (error)
return (error);
if (uap->abs_timeout != NULL) {