Re: svn commit: r294543 - head/usr.sbin/ypldap

2016-01-22 Thread Marcelo Araujo
2016-01-22 15:57 GMT+08:00 Bruce Evans : > On Fri, 22 Jan 2016, Marcelo Araujo wrote: > > Log: >> Switch from FD_SETSIZE to getdtablesize(2) as it can make the FD to be >> tunable. Also it gets more close with the original implementation from >> OpenBSD. >> > > Modified:

Re: svn commit: r294543 - head/usr.sbin/ypldap

2016-01-22 Thread Marcelo Araujo
2016-01-22 19:37 GMT+08:00 Bruce Evans : > On Fri, 22 Jan 2016, Marcelo Araujo wrote: > > 2016-01-22 15:57 GMT+08:00 Bruce Evans : >> >>> ... >>> Unfortunately, getdtablesize() is still needed for arrays as used in yp*, >>> and for anything using

Re: svn commit: r294543 - head/usr.sbin/ypldap

2016-01-22 Thread Bruce Evans
On Fri, 22 Jan 2016, Marcelo Araujo wrote: 2016-01-22 15:57 GMT+08:00 Bruce Evans : ... Unfortunately, getdtablesize() is still needed for arrays as used in yp*, and for anything using select(). If getdtablesize() is large then the arrays should be sparse or large fd's

svn commit: r294543 - head/usr.sbin/ypldap

2016-01-21 Thread Marcelo Araujo
Author: araujo Date: Fri Jan 22 03:02:38 2016 New Revision: 294543 URL: https://svnweb.freebsd.org/changeset/base/294543 Log: Switch from FD_SETSIZE to getdtablesize(2) as it can make the FD to be tunable. Also it gets more close with the original implementation from OpenBSD. Requested

Re: svn commit: r294543 - head/usr.sbin/ypldap

2016-01-21 Thread Bruce Evans
On Fri, 22 Jan 2016, Marcelo Araujo wrote: Log: Switch from FD_SETSIZE to getdtablesize(2) as it can make the FD to be tunable. Also it gets more close with the original implementation from OpenBSD. Modified: head/usr.sbin/ypldap/yp.c