osdep: Introduce qemu_dup
commit761d1ddf25988eeb110a612b0a42945fa1b561a5
authorFam Zheng <famz@redhat.com>
Wed, 22 Jun 2016 12:53:19 +0000 (22 20:53 +0800)
committerKevin Wolf <kwolf@redhat.com>
Wed, 13 Jul 2016 11:26:02 +0000 (13 13:26 +0200)
tree6d6ebdcc35ff7e46b1625750d0c80b806acc9e37
parent6aae5be6a77e36968c0f6cc2ab147918904087b7
osdep: Introduce qemu_dup

And use it in qemu_dup_flags.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/qemu/osdep.h
util/osdep.c