| 1396 | } |
| 1397 | |
| 1398 | int |
| 1399 | sys_msgrcv(struct thread *td, struct msgrcv_args *uap) |
| 1400 | { |
| 1401 | int error; |
| 1402 | long mtype; |
| 1403 | |
| 1404 | DPRINTF(("call to msgrcv(%d, %p, %zu, %ld, %d)\n", uap->msqid, |
| 1405 | uap->msgp, uap->msgsz, uap->msgtyp, uap->msgflg)); |
| 1406 | |
| 1407 | if ((error = kern_msgrcv(td, uap->msqid, |
| 1408 | (char *)uap->msgp + sizeof(mtype), uap->msgsz, |
| 1409 | uap->msgtyp, uap->msgflg, &mtype)) != 0) |
| 1410 | return (error); |
| 1411 | if ((error = copyout(&mtype, uap->msgp, sizeof(mtype))) != 0) |
| 1412 | DPRINTF(("error %d copying the message type\n", error)); |
| 1413 | return (error); |
| 1414 | } |
| 1415 | |
| 1416 | static int |
| 1417 | sysctl_msqids(SYSCTL_HANDLER_ARGS) |
nothing calls this directly
no test coverage detected