]> granicus.if.org Git - strace/commit
Add functions for dumping iovecs in mmsghdr used in sendmmsg and recvmmsg
authorMasatake YAMATO <yamato@redhat.com>
Thu, 6 Nov 2014 16:23:26 +0000 (01:23 +0900)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 11 Nov 2014 15:44:24 +0000 (15:44 +0000)
commita807dceca5ccfaf283aedaca3d998f83db8fe1fa
treed24ad97da1405d2917490d225a5ab24b1339df9e
parentcaf6a438f9d97684c10da8a6453d1e0e151a9613
Add functions for dumping iovecs in mmsghdr used in sendmmsg and recvmmsg

This patch is similar to what I did in commit
02f9f6b386741a52f58e1b31ad4e7fff60781ef8.
That commit was for sendmsg and recvmsg system calls.
This one is for sendmmsg and recvmmsg system calls.

* defs.h (dumpiov_in_mmsghdr): New declaration.
* net.c (extractmmsghdr): New function derived from printmmsghdr.
(printmmsghdr): Use it.
(dumpiov_in_mmsghdr): New function.
* syscall.c (dumpio) [HAVE_SENDMSG]: Call dumpiov_in_mmsghdr
for recvmmsg and sendmmsg syscalls.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
defs.h
net.c
syscall.c