[PATCH] Decode recvmmsg syscall

Dmitry V. Levin ldv at altlinux.org
Fri Feb 12 21:28:26 UTC 2010


On Fri, Feb 12, 2010 at 09:39:12PM +0100, Andreas Schwab wrote:
[...]
> +int
> +sys_recvmmsg(struct tcb *tcp)
> +{
> +	if (entering(tcp)) {
> +		tprintf("%ld, ", tcp->u_arg[0]);
> +		printmmsghdr(tcp, tcp->u_arg[1]);
> +		tprintf(", %ld, ", tcp->u_arg[2]);
> +		/* flags */
> +		printflags(msg_flags, tcp->u_arg[3], "MSG_???");
> +		/* timeout */
> +		tprintf(", ");
> +		print_timespec(tcp, tcp->u_arg[4]);
> +	}
> +	return 0;
> +}

If recvmmsg semantics is similar to recvmsg, then only file descriptor
can be decoded on entrance to the syscall, while the mmsghdr structure
(and all the rest) -- on exit from the syscall.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20100213/bc849045/attachment.bin>


More information about the Strace-devel mailing list