| 1789 | } |
| 1790 | |
| 1791 | int |
| 1792 | freebsd32_msgsnd(struct thread *td, struct freebsd32_msgsnd_args *uap) |
| 1793 | { |
| 1794 | const void *msgp; |
| 1795 | long mtype; |
| 1796 | int32_t mtype32; |
| 1797 | int error; |
| 1798 | |
| 1799 | msgp = PTRIN(uap->msgp); |
| 1800 | if ((error = copyin(msgp, &mtype32, sizeof(mtype32))) != 0) |
| 1801 | return (error); |
| 1802 | mtype = mtype32; |
| 1803 | return (kern_msgsnd(td, uap->msqid, |
| 1804 | (const char *)msgp + sizeof(mtype32), |
| 1805 | uap->msgsz, uap->msgflg, mtype)); |
| 1806 | } |
| 1807 | |
| 1808 | int |
| 1809 | freebsd32_msgrcv(struct thread *td, struct freebsd32_msgrcv_args *uap) |
no test coverage detected