ws2_32: sendmsg on OS/X and BSD returns EMSGSIZE error for size 0

Alexandre Julliard julliard at winehq.org
Fri Mar 4 10:47:20 CST 2011


Aric Stewart <aric at codeweavers.com> writes:

> @@ -1781,6 +1781,9 @@ static int WS2_send( int fd, struct ws2_async *wsa )
>              wsa->iovec[wsa->first_iovec].iov_len -= n;
>          }
>      }
> +    /* BSD and OS/X return EMSGSIZE if hdr.msg_iovlen is 0 */
> +    else if ( hdr.msg_iovlen == 0 && errno == EMSGSIZE)
> +        ret = 0;

This should never happen. We should always have at least one iov at that
point, the callers should make sure of that.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list