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 /lib/libc/include/un-namespace.h | |
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 'lib/libc/include/un-namespace.h')
-rw-r--r-- | lib/libc/include/un-namespace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/include/un-namespace.h b/lib/libc/include/un-namespace.h index f31fa7a..0233348 100644 --- a/lib/libc/include/un-namespace.h +++ b/lib/libc/include/un-namespace.h @@ -189,6 +189,7 @@ #undef readv #undef recvfrom #undef recvmsg +#undef recvmmsg #undef select #undef sem_close #undef sem_destroy @@ -201,6 +202,7 @@ #undef sem_unlink #undef sem_wait #undef sendmsg +#undef sendmmsg #undef sendto #undef setsockopt #undef sigaction |