summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-01-29 14:12:12 +0000
committerkib <kib@FreeBSD.org>2016-01-29 14:12:12 +0000
commit6c0e620fdbcd382232aa0d3be852301f2a75876d (patch)
treeb9d4dee3351eed41dcee310929626964c05c16dd /sys/cddl
parent047ea0e83b66f348bad2128bff3bc3e763acb3c3 (diff)
downloadFreeBSD-src-6c0e620fdbcd382232aa0d3be852301f2a75876d.zip
FreeBSD-src-6c0e620fdbcd382232aa0d3be852301f2a75876d.tar.gz
Add implementations of sendmmsg(3) and recvmmsg(3) functions which
wraps sendmsg(2) and recvmsg(2) into batch send and receive operation. The goal of this implementation is only to provide API compatibility with Linux. The cancellation behaviour of the functions is not quite right, but due to relative rare use of cancellation it is considered acceptable comparing with the complexity of the correct implementation. If functions are reimplemented as syscalls, the fix would come almost trivial. The direct use of the syscall trampolines instead of libc wrappers for sendmsg(2) and recvmsg(2) is to avoid data loss on cancellation. Submitted by: Boris Astardzhiev <boris.astardzhiev@gmail.com> Discussed with: jilles (cancellation behaviour) MFC after: 1 month
Diffstat (limited to 'sys/cddl')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud