lib: Add msghdr_extract_fds
authorVolker Lendecke <vl@samba.org>
Wed, 31 Dec 2014 12:14:41 +0000 (13:14 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 5 Jan 2015 23:33:09 +0000 (00:33 +0100)
commitcd46f7685b47bb40e2f794ec7380b8078627d87f
treebc40f9b18baae780fa9b486d5b189274ce4f47e3
parent9bd7e52db0386b928a3d777e519ee23f2a0fedfb
lib: Add msghdr_extract_fds

This is a copy of the extract_fd_array_from_msghdr routine in unix_msg.c, with
a similar use pattern: First call it without an output array to get the length
and then call it a second time to actually fill in the array.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/msghdr.c
source3/lib/msghdr.h