History log of /src/usr.sbin/lpr/filters/lpf.c |
Revision | | Date | Author | Comments |
1.15 |
| 03-Feb-2019 |
mrg | - add or adjust /* FALLTHROUGH */ where appropriate - add __unreachable() after functions that can return but won't in this case, and thus can't be marked __dead easily
|
1.14 |
| 30-Aug-2011 |
joerg | branches: 1.14.42; static, __printflike, __dead
|
1.13 |
| 21-Jul-2008 |
lukem | Remove the \n and tabs from the __COPYRIGHT() strings. Tweak to use a consistent format.
|
1.12 |
| 07-May-2008 |
christos | branches: 1.12.2; patch from Dennis den Brok for foomatic
|
1.11 |
| 07-Aug-2003 |
agc | branches: 1.11.30; Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
|
1.10 |
| 14-Jul-2002 |
wiz | Unifdef __STDC__. Remove __P(). ANSIfy.
|
1.9 |
| 30-Apr-2000 |
thorpej | Need <string.h> for memset() prototype.
|
1.8 |
| 29-Apr-2000 |
abs | lpf used its own broken argv parsing (-h without an argument would dump core) Convert to getopt() and add a basic usage()
|
1.7 |
| 07-Dec-1999 |
mrg | - add timeouts to displayq(), rmremote(), sendfile() and response(), and use these timeout in the lpq, lpd and lprm programs.
these stop hung remote printers that accept tcp connections but do not process jobs from hanging the whole system and letting the sysadmin have a clue about what is going on with this rogue printer.
- add a -r flag to lpd to allow `of' filters for remote jobs.
i know there are ways around this, but i just don't care.
- add a -f flag to lpf to add missing carriage returns.
useful when printing UNIX files to an, eg, LaserWriter that wants CR's as well as LF's in raw text. stair-stepped text is no fun.
- implement child process accounting: we just have a limit on the number of children we can have (settable by the sysadmin), and we sleep when this number is reached. this can reduce malicious not-so-malicious attacks on the print server by a rogue remote client..
- use setproctitle() where appropriate so the sysadmin has a clue about what each of the lpd's here are doing.
this was useful to help diagnose a problem (that the above child process accounting change reduces the lossages of) where a rogue client was attempting "lpq" operations on one stuck queue in rapid succession, causing the lpd server to be extremely slow, due to the large number of lpd processes running.
i have been running these changes in production for about a year.
|
1.6 |
| 05-Oct-1997 |
mrg | branches: 1.6.8; - WARNS?=1 - be safe with unlinking files (from freebsd) - remove register - clean up $NetBSD$'s. - use inet_ntoa() in one place (from openbsd) - nul terminate after a bunch of strncpy()'s - #ifdef __STDC__ rather than #if (from freebsd) - be safe with a bunch of string operations (from freebsd) - use warn()/err() over home grown versions (some from freebsd) - rename warn() to nodaemon() to remove conflict with above - check errno from failed kill(2) against ESRCH (from freebsd) - use getopt() rather than home grown versions (from freebsd) - clean up a bunch of man pages (some from freebsd) - check for hostname spoof (from freebsd) - use POSIX wait() interfaces - use sysconf(_SC_OPEN_MAX) in preference to NOFILE (from freebsd) - deal with fork() failure - index/rindex -> strchr/strrchr (some from freebsd) - add B57600 and B115200 speeds (from freebsd) - some KNF - be safe with files passed in over the network (some from freebsd) - check return value of malloc(), calloc() and strdup()
|
1.5 |
| 10-Jul-1997 |
mikel | add parens (gcc -Wall)
|
1.4 |
| 15-Nov-1995 |
pk | Add RCSIDs
|
1.3 |
| 18-May-1994 |
cgd | clean up that import. no rcsids yet.
|
1.2 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 18-May-1994 |
cgd | lpr from 4.4-Lite
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.6.8.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.11.30.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.12.2.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.14.42.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|