| 849 | |
| 850 | #ifdef COMPAT_OLDSOCK |
| 851 | int |
| 852 | osend(struct thread *td, struct osend_args *uap) |
| 853 | { |
| 854 | struct msghdr msg; |
| 855 | struct iovec aiov; |
| 856 | |
| 857 | msg.msg_name = 0; |
| 858 | msg.msg_namelen = 0; |
| 859 | msg.msg_iov = &aiov; |
| 860 | msg.msg_iovlen = 1; |
| 861 | aiov.iov_base = __DECONST(void *, uap->buf); |
| 862 | aiov.iov_len = uap->len; |
| 863 | msg.msg_control = 0; |
| 864 | msg.msg_flags = 0; |
| 865 | return (sendit(td, uap->s, &msg, uap->flags)); |
| 866 | } |
| 867 | |
| 868 | int |
| 869 | osendmsg(struct thread *td, struct osendmsg_args *uap) |