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:
parent
869785b49c
commit
28f865b0b1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user