freebsd-dev/usr.sbin/lpr/common_source
Garance A Drosehn 137076c5f7 Change the closeallfds() routine to use closefrom() when it is
available (closefrom() was added to FreeBSD in 8.0-release).
The selection is made at compile-time, as I still compile a
FreeBSD-based version of lpr&friends on other platforms.

While testing I out that (at least on my system) lpd has been
closing 11095 fd's, when there are only 6 fd's open.  The old
code took 120 times more clocktime than calling closefrom().
(although that was still less than 2/1000-ths of a second!)

Reviewed by:	jilles
MFC after:	2 weeks
2013-05-27 22:19:01 +00:00
..
common.c Change the closeallfds() routine to use closefrom() when it is 2013-05-27 22:19:01 +00:00
ctlinfo.c - Fix the code that matches userids in match_jobspec(). It needs to check 2011-04-13 00:36:19 +00:00
ctlinfo.h - Fix the code that matches userids in match_jobspec(). It needs to check 2011-04-13 00:36:19 +00:00
displayq.c Let lpr build with -Wmissing-variable-declarations. 2012-10-25 20:16:38 +00:00
lp.cdefs.h Change the closeallfds() routine to use closefrom() when it is 2013-05-27 22:19:01 +00:00
lp.h Let lpr build with -Wmissing-variable-declarations. 2012-10-25 20:16:38 +00:00
lp.local.h Remove the advertising clause from UCB copyrighted files in usr.sbin. This 2010-12-11 09:38:12 +00:00
Makefile
matchjobs.c - Fix the code that matches userids in match_jobspec(). It needs to check 2011-04-13 00:36:19 +00:00
matchjobs.h
net.c Let lpr build with -Wmissing-variable-declarations. 2012-10-25 20:16:38 +00:00
pathnames.h Remove the advertising clause from UCB copyrighted files in usr.sbin. This 2010-12-11 09:38:12 +00:00
printcap.c
request.c
rmjob.c Let lpr build with -Wmissing-variable-declarations. 2012-10-25 20:16:38 +00:00
startdaemon.c Let lpr build with -Wmissing-variable-declarations. 2012-10-25 20:16:38 +00:00