opnsense-src/usr.sbin/lpr/common_source
Konstantin Belousov 4176dd5267 Modernize scandir(3) and alphasort(3) interfaces according to the IEEE
Std 1003.1-2008. Both Linux and Solaris conforms to the new definitions,
so we better follow too (older glibc used old BSDish alphasort prototype
and corresponding type of the comparision function for scandir). While
there, change the definitions of the functions to ANSI C and fix several
style issues nearby.

Remove requirement for "sys/types.h" include for functions from manpage.

POSIX also requires that alphasort(3) sorts as if strcoll(3) was used,
but leave the strcmp(3) call in the function for now.

Adapt in-tree callers of scandir(3) to new declaration. The fact that
select_sections() from catman(1) could modify supplied struct dirent is
a bug.

PR:	standards/142255
MFC after:	2 weeks
2010-01-04 15:40:17 +00:00
..
common.c Fix so all parts of lpd, lpc, lpq, and lprm will use the same algorithm 2004-12-31 00:36:28 +00:00
ctlinfo.c Do more extensive checking of the userid field which is read in from the 2004-12-31 00:18:42 +00:00
ctlinfo.h
displayq.c Fix end-of-line issues that can come up when `lpq' reads information 2009-06-24 16:57:33 +00:00
lp.cdefs.h
lp.h Modernize scandir(3) and alphasort(3) interfaces according to the IEEE 2010-01-04 15:40:17 +00:00
lp.local.h Remove a 'From:' that snuck into an sccsid comment line as part of -v1.3 2003-08-01 00:06:41 +00:00
Makefile The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
matchjobs.c Fix so all parts of lpd, lpc, lpq, and lprm will use the same algorithm 2004-12-31 00:36:28 +00:00
matchjobs.h
net.c NI_WITHSCOPEID cleanup 2005-05-13 16:43:28 +00:00
pathnames.h
printcap.c Get the 'sccsid' for this to match the original lines you would 2003-07-14 20:17:55 +00:00
request.c Get the 'sccsid' lines even closer to correct style(9) form. The 2003-07-14 20:20:58 +00:00
rmjob.c Modernize scandir(3) and alphasort(3) interfaces according to the IEEE 2010-01-04 15:40:17 +00:00
startdaemon.c Get the 'sccsid' lines even closer to correct style(9) form. The 2003-07-14 20:20:58 +00:00