not identical to barsoom's patch, but I think it's an easier patch. Check out compile/KERN/ioconf.c to see the effect. (On e kernel with wd and/or fd of course)
the max. number of fd's a user is limited to.