diff options
author | kib <kib@FreeBSD.org> | 2016-01-29 14:12:12 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-01-29 14:12:12 +0000 |
commit | 6c0e620fdbcd382232aa0d3be852301f2a75876d (patch) | |
tree | b9d4dee3351eed41dcee310929626964c05c16dd /sys/cddl | |
parent | 047ea0e83b66f348bad2128bff3bc3e763acb3c3 (diff) | |
download | FreeBSD-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