]> granicus.if.org Git - strace/commit
mmsg.test: prefer direct sendmmsg/recvmmsg syscalls to libc wrappers
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 11 Jan 2016 00:16:39 +0000 (00:16 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 11 Jan 2016 01:03:19 +0000 (01:03 +0000)
commit6e815ce640200462cd29a106197dfc2feee7cc6a
treeb31afea985f891c8472d5662fb9ba797df59b922
parent8df07e10395552076ab1ebb9c806f0c47c5c7bed
mmsg.test: prefer direct sendmmsg/recvmmsg syscalls to libc wrappers

* tests/mmsg.c: Include <sys/syscall.h>.
Check for __NR_sendmmsg as an alternative to HAVE_SENDMMSG.
[!HAVE_STRUCT_MMSGHDR] (struct mmsghdr): Define.
(send_mmsg, recv_mmsg): New functions.
(main): Use them instead of sendmmsg and recvmmsg.

Reported-by: Szabolcs Nagy <nsz@port70.net>
tests/mmsg.c