autoconfigure FILE array using getdtablesize()