| 1771 | } |
| 1772 | |
| 1773 | ssize_t |
| 1774 | lwip_writev(int s, const struct iovec *iov, int iovcnt) |
| 1775 | { |
| 1776 | struct msghdr msg; |
| 1777 | |
| 1778 | msg.msg_name = NULL; |
| 1779 | msg.msg_namelen = 0; |
| 1780 | /* Hack: we have to cast via number to cast from 'const' pointer to non-const. |
| 1781 | Blame the opengroup standard for this inconsistency. */ |
| 1782 | msg.msg_iov = LWIP_CONST_CAST(struct iovec *, iov); |
| 1783 | msg.msg_iovlen = iovcnt; |
| 1784 | msg.msg_control = NULL; |
| 1785 | msg.msg_controllen = 0; |
| 1786 | msg.msg_flags = 0; |
| 1787 | return lwip_sendmsg(s, &msg, 0); |
| 1788 | } |
| 1789 | |
| 1790 | #if LWIP_SOCKET_SELECT || LWIP_SOCKET_POLL |
| 1791 | /* Add select_cb to select_cb_list. */ |
nothing calls this directly
no test coverage detected