summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/common_source
AgeCommit message (Expand)Author
2021-01-19Fix the embedded scope hack. They way this was written is buggy since theClaudio Jeker
2019-07-03snprintf/vsnprintf return < 0 on error, rather than -1.Theo de Raadt
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
2016-03-17Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.Anthony J. Bentley
2016-02-29Move ckqueue() to common_source/common.cJeremie Courreges-Anglas
2016-01-12Move prototypes of local functions from lp.h to the .c files and maketb
2015-10-28Remove support for lpd.pid file. OK deraadt@Todd C. Miller
2015-10-27Use AF_UNIX instead of AF_LOCAL.Todd C. Miller
2015-10-11Userspace doesn't need to use SUN_LEN(): connect() and bind() must acceptPhilip Guenther
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-11-02use nanosleep() instead of select(); ok jsingTheo de Raadt
2014-10-16reallocarray() obviouslyTheo de Raadt
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
2014-05-21stat(2) on the spool file needs privileges. Fixes file size reported byPascal Stumpf
2014-04-20Prevent lpd(8) from looking into hosts.equiv.Antoine Jacoutot
2013-12-10Remove the printcap fc, fs, xc, xs capabilities from lpd that were usedChristian Weisgerber
2013-11-24more ctype cleanupsTheo de Raadt
2013-10-27If a constant string needs a name, use a static const array instead of aPhilip Guenther
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
2012-11-29Change scandir()'s 'select' argument fromPhilip Guenthe
2012-03-04In preparation for getline and getdelim additions to libc, rename getline()Federico G. Schwindt
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2009-03-03spacesKevin Steves
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-01remove #ifndef SUN_LEN; ok millert@Kevin Steves
2007-05-01use warn() vs. perror() for consistency; ok millert@Kevin Steves
2007-04-08I have an HP LaserJet (P2015dn) whose LPR implementation may not endKevin Steves
2007-04-07trailing "\n" not needed in fatal(); ok millert@Kevin Steves
2007-03-16remove unused variable; ok millert@Kevin Steves
2007-03-13typos in comments; ok millert@Kevin Steves
2006-04-08Plug memory leak when nitems == 0.Ray Lai
2004-11-17NI_WITHSCOPEID is no more.Jun-ichiro itojun Hagino
2004-09-28Simpler loop to free queue items. OK otto@Todd C. Miller
2004-09-28Fix leaks in error paths. from Patrick Latifi. ok millert@Otto Moerbeek
2003-09-26realloc fixes; ok deraadt millertPeter Valchev
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
2003-05-13Don't reformat output beyond a minimum terminal width (60).Paul Janzen
2003-05-12Do vis()-cleaning when displaying the print queue.Paul Janzen
2003-04-07kill last strcpy; ok millertTheo de Raadt
2003-04-05trivial strlcat, tedu@ okAnil Madhavapeddy
2003-02-13Fix loop invariants in rmremote(). Reported by Arne Woerner in PRTodd C. Miller
2002-07-27merge if() and foo = snprintf checks better; millert okTheo de Raadt
2002-06-13Fixed some lpd bugs while on the plane from Calgary:Todd C. Miller
2002-06-09Better fix for correct queue printing when things have been moved around.Todd C. Miller
2002-06-09Don't print jobs in transit to a remote queue as being "active"Todd C. Miller
2002-06-09Convert remaining K&R function headers to ANSITodd C. Miller
2002-06-09o Kill "garbage" global (unused)Todd C. Miller
2002-06-08o Replace some hard-coded octal constants w/ S_I*Todd C. Miller
2002-06-08use the dirfd macro instead of reaching into the DIR and pulling out dd_fdTodd C. Miller