]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Support MSG_DONTWAIT in send*(2).
authorMark Johnston <markj@FreeBSD.org>
Fri, 4 Jan 2019 17:31:50 +0000 (17:31 +0000)
committerMark Johnston <markj@FreeBSD.org>
Fri, 4 Jan 2019 17:31:50 +0000 (17:31 +0000)
commit2f2ddd68a556157fef2a527b95414dd2bad00ded
tree6d2d3f31da09ca297ac344482341edb7cba33495
parentf0d85a5dc5eb237abb3dc444943e334518f4dc80
Support MSG_DONTWAIT in send*(2).

As it does for recv*(2), MSG_DONTWAIT indicates that the call should
not block, returning EAGAIN instead.  Linux and OpenBSD both implement
this, so the change makes porting easier, especially since we do not
return EINVAL or so when unrecognized flags are specified.

Submitted by: Greg V <greg@unrelenting.technology>
Reviewed by: tuexen
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18728
lib/libc/sys/send.2
sys/kern/uipc_socket.c
sys/netinet/sctp_output.c
sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c