| 2771 | } |
| 2772 | |
| 2773 | int |
| 2774 | freebsd32_kmq_setattr(struct thread *td, struct freebsd32_kmq_setattr_args *uap) |
| 2775 | { |
| 2776 | struct mq_attr attr, oattr; |
| 2777 | struct mq_attr32 attr32, oattr32; |
| 2778 | int error; |
| 2779 | |
| 2780 | if (uap->attr != NULL) { |
| 2781 | error = copyin(uap->attr, &attr32, sizeof(attr32)); |
| 2782 | if (error != 0) |
| 2783 | return (error); |
| 2784 | mq_attr_from32(&attr32, &attr); |
| 2785 | } |
| 2786 | error = kern_kmq_setattr(td, uap->mqd, uap->attr != NULL ? &attr : NULL, |
| 2787 | &oattr); |
| 2788 | if (error == 0 && uap->oattr != NULL) { |
| 2789 | mq_attr_to32(&oattr, &oattr32); |
| 2790 | bzero(oattr32.__reserved, sizeof(oattr32.__reserved)); |
| 2791 | error = copyout(&oattr32, uap->oattr, sizeof(oattr32)); |
| 2792 | } |
| 2793 | return (error); |
| 2794 | } |
| 2795 | |
| 2796 | int |
| 2797 | freebsd32_kmq_timedsend(struct thread *td, |
nothing calls this directly
no test coverage detected