| 1673 | |
| 1674 | #ifdef COMPAT_FREEBSD32 |
| 1675 | int |
| 1676 | freebsd32_msgsys(struct thread *td, struct freebsd32_msgsys_args *uap) |
| 1677 | { |
| 1678 | |
| 1679 | #if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \ |
| 1680 | defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7) |
| 1681 | AUDIT_ARG_SVIPC_WHICH(uap->which); |
| 1682 | switch (uap->which) { |
| 1683 | case 0: |
| 1684 | return (freebsd7_freebsd32_msgctl(td, |
| 1685 | (struct freebsd7_freebsd32_msgctl_args *)&uap->a2)); |
| 1686 | case 2: |
| 1687 | return (freebsd32_msgsnd(td, |
| 1688 | (struct freebsd32_msgsnd_args *)&uap->a2)); |
| 1689 | case 3: |
| 1690 | return (freebsd32_msgrcv(td, |
| 1691 | (struct freebsd32_msgrcv_args *)&uap->a2)); |
| 1692 | default: |
| 1693 | return (sys_msgsys(td, (struct msgsys_args *)uap)); |
| 1694 | } |
| 1695 | #else |
| 1696 | return (nosys(td, NULL)); |
| 1697 | #endif |
| 1698 | } |
| 1699 | |
| 1700 | #if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \ |
| 1701 | defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7) |
nothing calls this directly
no test coverage detected