recvmmsg/sendmmsg: add recvmmsg sendmmsg support.
commit6e15fafa20066634a58d412b259b117a47ca46d1
authorGuo Ren <ren_guo@c-sky.com>
Wed, 27 Sep 2017 05:31:35 +0000 (27 13:31 +0800)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Sun, 1 Oct 2017 06:54:33 +0000 (1 08:54 +0200)
tree78e2bfabc8a9b13926c93bf12d1e35aba14abe78
parent7cfd2112acbc7a9dfcd9f8a23e550672934a2545
recvmmsg/sendmmsg: add recvmmsg sendmmsg support.

The recvmmsg and sendmmsg is very important for UDP stream application.

If we only use recvmsg for UDP stream, it will only copy one mtu size
of data in a syscall. And recvmmsg copy as many as you want in a syscall.

So recvmmsg is more efficient,and some applications will depends on the
recvmmsg and sendmmsg, eg: UDP media stream player.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
include/sys/socket.h
libc/inet/Makefile.in
libc/inet/recvmmsg.c [new file with mode: 0644]
libc/inet/sendmmsg.c [new file with mode: 0644]
libc/inet/socketcalls.c
libpthread/nptl/Makefile.in