asys: Allow multiple results to be received
authorVolker Lendecke <vl@samba.org>
Mon, 24 Mar 2014 14:36:34 +0000 (14:36 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 27 Mar 2014 05:06:12 +0000 (06:06 +0100)
commitc35fec883cf344a269e65670521e2580a91c24aa
tree17fbb77f4671ea8aaa94399de88471592ba6e436
parentc5d07df6abe657ff196266bbfbb376ca7db0968b
asys: Allow multiple results to be received

This makes use of C99 dynamic arrays. In this performance-sensitive code, I
would like to avoid malloc/free, and I think 15 years after the standard we
might be able to use this feature. Alternatively, we could use the "results"
memory area and store the jobids in the upper range, playing some cast-tricks.
Should work as well.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/asys/asys.c
source3/lib/asys/asys.h
source3/lib/asys/tests.c
source3/modules/vfs_default.c