Introduce a separate function to copy from msghdr32 to msghdr
Introduce a separate function to copy from msghdr32 to msghdr

This patch is an initial step for supporting "-e write=set" and
"-e read=set" option for sendmmsg and recvmmsg system calls.

Coverting a data of msghdr32 to msghdr is needed both for
{send,recv}msg and {send,recv}mmsg to decode parameters.
To share the copying code in both decoders, a separate
function named copy_from_msghdr32 is introduced.

* net.c [SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4]
(copy_from_msghdr32): New function.
(extractmsghdr) [SUPPORTED_PERSONALITIES > 1 && SIZEOF_LONG > 4]: Use it.

Signed-off-by: Masatake YAMATO <bdfff7006d3a5967c7c741d652a74f5445442e11@redhat.com>

MonkeyZZZZ/platform_external_strace,Infinitive-OS/platform_external_strace,AOSP-YU/platform_external_strace,geofft/strace,Yu-AndroidM/android_external_strace,TeamExodus/external_strace,TeamExodus/external_strace,AOSP-YU/platform_external_strace,MonkeyZZZZ/platform_external_strace,bnoordhuis/strace,kapdop/android_external_strace,kapdop/android_external_strace,Infinitive-OS/platform_external_strace,TeamExodus/external_strace,geofft/strace,AOSP-YU/platform_external_strace,MonkeyZZZZ/platform_external_strace,Distrotech/strace,bigzz/strace_android,Yu-AndroidM/android_external_strace,geofft/strace,geekboxzone/mmallow_external_strace,Infinitive-OS/platform_external_strace,Distrotech/strace,Saruta/strace,geofft/strace,YUPlayGodDev/platform_external_strace,Saruta/strace,MonkeyZZZZ/platform_external_strace,Saruta/strace,bigzz/strace_android,Distrotech/strace,bigzz/strace_android,bigzz/strace_android,vrastogi/strace,vrastogi/strace,Infinitive-OS/platform_external_strace,YUPlayGodDev/platform_external_strace,Saruta/strace,Distrotech/strace,kapdop/android_external_strace,kapdop/android_external_strace,vrastogi/strace,Yu-AndroidM/android_external_strace,AOSP-YU/platform_external_strace,geofft/strace,kapdop/android_external_strace,MonkeyZZZZ/platform_external_strace,Yu-AndroidM/android_external_strace,Yu-AndroidM/android_external_strace,Saruta/strace,cuviper/strace,cuviper/strace,vrastogi/strace,Infinitive-OS/platform_external_strace,YUPlayGodDev/platform_external_strace,TeamExodus/external_strace,cuviper/strace,vrastogi/strace,Distrotech/strace,bnoordhuis/strace,bnoordhuis/strace,TeamExodus/external_strace,geekboxzone/mmallow_external_strace,geekboxzone/mmallow_external_strace,geekboxzone/mmallow_external_strace,AOSP-YU/platform_external_strace,geekboxzone/mmallow_external_strace,bigzz/strace_android,cuviper/strace,cuviper/strace,bnoordhuis/strace,YUPlayGodDev/platform_external_strace,YUPlayGodDev/platform_external_strace