| 1806 | } |
| 1807 | |
| 1808 | int |
| 1809 | freebsd32_msgrcv(struct thread *td, struct freebsd32_msgrcv_args *uap) |
| 1810 | { |
| 1811 | void *msgp; |
| 1812 | long mtype; |
| 1813 | int32_t mtype32; |
| 1814 | int error; |
| 1815 | |
| 1816 | msgp = PTRIN(uap->msgp); |
| 1817 | if ((error = kern_msgrcv(td, uap->msqid, |
| 1818 | (char *)msgp + sizeof(mtype32), uap->msgsz, |
| 1819 | uap->msgtyp, uap->msgflg, &mtype)) != 0) |
| 1820 | return (error); |
| 1821 | mtype32 = (int32_t)mtype; |
| 1822 | return (copyout(&mtype32, msgp, sizeof(mtype32))); |
| 1823 | } |
| 1824 | #endif |
| 1825 | |
| 1826 | #if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \ |
no test coverage detected