freebsd-skq/usr.sbin/lpr
gad 92ccb9a78d 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
..
chkprintcap
common_source Change the closeallfds() routine to use closefrom() when it is 2013-05-27 22:19:01 +00:00
filters Let lpr build with -Wmissing-variable-declarations. 2012-10-25 20:16:38 +00:00
filters.ru The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
lp Fix using lp(1) without the new -t option after r194171. 2009-09-29 21:28:32 +00:00
lpc Check the return error of set[ug]id. While this can never fail in the 2012-10-22 03:31:22 +00:00
lpd Check the return error of set[ug]id. While this can never fail in the 2012-10-22 03:31:22 +00:00
lpq Check the return error of set[ug]id. While this can never fail in the 2012-10-22 03:31:22 +00:00
lpr Check the return error of set[ug]id. While this can never fail in the 2012-10-22 03:31:22 +00:00
lprm Check the return error of set[ug]id. While this can never fail in the 2012-10-22 03:31:22 +00:00
lptest Remove the advertising clause from UCB copyrighted files in usr.sbin. This 2010-12-11 09:38:12 +00:00
pac Spelling fixes for usr.sbin/ 2011-12-30 10:58:14 +00:00
Makefile Move most of the remaining USD/PSD/SMM papers into share/doc 2010-12-04 10:11:20 +00:00
Makefile.inc