summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
Commit message (Collapse)AuthorAgeFilesLines
* Stop on write error.phk2004-09-271-2/+5
|
* Eliminated double whitespace.ru2004-07-033-12/+13
|
* Mechanically kill hard sentence breaks.ru2004-07-028-56/+110
|
* Fixed spelling of the document date.ru2004-07-021-1/+1
|
* Removed redundant mdoc(7) macro calls.ru2004-06-051-2/+2
|
* Clarify the "lp" description to mention port@host syntax.kientzle2004-02-191-1/+1
| | | | Suggested by: NetBSD man page
* Fix a warning about mismatched pointers. A pointer to "void *" is not thepeter2003-10-261-1/+1
| | | | same as a pointer to "char *". Tell the compiler this is ok.
* Fix two buffer overflows caused by off-by-one errors: avoid writing a nulltjr2003-10-131-2/+2
| | | | | | | character 1 byte past the end of cmdline[] when libedit is being used for input, and avoid writing a null pointer 1 element past the end of margv[]. Reviewed by: gad
* Minimal update to make it easier to increase the buffer-size lpd usesgad2003-08-212-10/+20
| | | | | | | | | | when reading/writing spool files. I intend to do a more elaborate version, but I want to get this much in before 4.9-release. As written, this results in no change to the object code. Submitted by: John-Mark Gurney Reviewed by: /sbin/md5 MFC after: 4 days
* Use STDIN_FILENO, STDOUT_FILENO, and STDERR_FILENO in a few moregad2003-08-133-17/+17
| | | | | | | | places (replacing constants 0, 1 & 2). Noticed by: Reviewed by: md5 MFC after: 4 days
* Remove a 'From:' that snuck into an sccsid comment line as part of -v1.3gad2003-08-011-1/+1
|
* Fix a grammar bogon and a typobrueffer2003-07-171-1/+1
| | | | | Submitted by: Warren Block <wblock@wonkity.com> MFC after: 3 days
* (Hopefully) Last set of changes so all of lpr uses __FBSDID() forgad2003-07-155-18/+20
| | | | | | | setting rcsids, and uses a consistent format for 'sccsid' lines. Reviewed by: discussed with bde and obrien MFC after: 15 days
* More changes to use __FBSDID() for setting rcsids, and fix thegad2003-07-152-4/+7
| | | | | | | | format of 'sccsid' lines so they consistently match style(9). A minor Makefile change is needed so lptest.c can find lp.cdefs.h. Reviewed by: discussed with bde and obrien MFC after: 15 days
* More changes to use __FBSDID() for setting rcsids, and fix thegad2003-07-151-5/+6
| | | | | | | | | | format of 'sccsid' lines so they consistently match style(9) Also the 'sccsid' line is formatted to match style(9), and a 'From:' is removed so the sccsid returns to what it was back in the days of '-r CSRG' (1996). Reviewed by: discussed with bde and obrien MFC after: 15 days
* More changes to use __FBSDID() for setting rcsids. For the filtergad2003-07-156-9/+18
| | | | | | | | | | programs, minor Makefile changes are needed to find lp.cdefs.h. For lpf.c, the 'sccsid' line is formatted to match style(9), and a 'From:' is removed so the sccsid returns to what it was back in the days of '-r CSRG' (1994). Reviewed by: discussed with bde and obrien MFC after: 15 days
* More changes to use __FBSDID() for setting rcsids, and fix thegad2003-07-145-18/+17
| | | | | | | | | | format of 'sccsid' lines so they consistently match style(9) guidelines. Note that this means you will have to add '-a' to the 'strings' command when searching for rcs ids, eg: strings -a /usr/sbin/lpc | grep '$FreeBSD' Reviewed by: discussed on cvs-src & with bde and obrien MFC after: 15 days
* Get the 'sccsid' lines even closer to correct style(9) form. Thegad2003-07-145-0/+13
| | | | | | | | '#ifdef lint/#endif' around the lines should not have been removed. Also add blank lines where one (per file) was missing. Reviewed by: First part noticed by bde, blank lines noticed by me MFC after: 15 days
* Get the 'sccsid' for this to match the original lines you wouldgad2003-07-141-2/+6
| | | | | | | | get from '-r CSRG', instead of having that sccsid as a comment. (this is the sccsid from 1996 -- there have been many changes to printcap.c since then!) MFC after: 15 days
* Get the 'sccsid' lines even closer to correct style(9) form. Thegad2003-07-145-0/+10
| | | | | | | '#ifdef lint/#endif' around the lines should not have been removed. Reviewed by: noticed by bde MFC after: 15 days
* More changes to use __FBSDID() for setting rcsids, and fix thegad2003-07-146-26/+19
| | | | | | | | format of 'sccsid' lines so they consistently match style(9) guidelines. Inspired by recent update to lpd.c by charnier. Reviewed by: discussed on cvs-src & with bde and obrien MFC after: 15 days
* Take advantage of the common_source/lp.cdefs.h file to change lprgad2003-07-1412-42/+26
| | | | | | | | source to use __FBSDID() for setting rcsids. Also fix the format of 'sccsid' lines to consistently match style(9) guidelines. Reviewed by: discussed with bde and obrien MFC after: 15 days
* Introduce a new lp.cdefs.h file, which will be used to make itgad2003-07-141-0/+107
| | | | | | | | | | | | | somewhat easier to build this lpr on other operating systems. This simply includes <sys/cdefs.h> when that is appropriate, and then checks for any cdefs-ish macros that lpr uses, and defines them if they don't already exist. This is only a start at making freebsd's lpr less of a hassle to port. It is mainly added so all of lpr can be changed to use the __FBSDID() macro, without making it *more* of a hassle to build on other OS's. Reviewed by: discussed with bde and obrien MFC after: 15 days
* add FBSDIDcharnier2003-07-061-4/+5
|
* We don't need two $FreeBSD$'s. Remove the older one.gad2003-06-211-2/+0
|
* Minor improvement to some debugging code that is probably used by no onegad2003-06-121-4/+15
| | | | | | but me (it's usually #ifdef-ed out). MFC after: 1 week
* Remove MAINTAINER= lines. That info is now in /usr/src/MAINTAINERSgad2003-06-121-3/+0
|
* When sanity-checking a variable, it's good to check the correct variable...gad2003-06-121-1/+1
| | | | MFC after: 1 week
* There is no need for this makefile to reference BDECFLAGS, particularlygad2003-06-111-1/+0
| | | | | | since that is no longer defined in the default system install. MFC after: 1 week
* Include stdlib.h for atoi declaration.imp2003-06-091-0/+3
| | | | Add $FreeBSD$ while I'm here.
* Include stdlib.h for atoi declarationimp2003-06-091-0/+3
| | | | Add $FreeBSD$ while I'm here.
* Add section number to .Xrcharnier2003-06-081-4/+4
|
* Change DEFMX to 0. This removes the size limit for print jobs by default.eivind2003-03-272-3/+4
| | | | Discussed with: gad (now), arch (a year ago)
* english(4) police.schweikh2002-12-271-1/+1
|
* mdoc(7) police: markup fixes.ru2002-11-271-13/+16
| | | | Approved by: re
* Use "deprecated" instead of "depreciated" where appropriate.sheldonh2002-10-301-1/+1
|
* Fix typos; each file has at least one s/seperat/separat/schweikh2002-08-111-1/+1
| | | | | | | | | | (I skipped those in contrib/, gnu/ and crypto/) While I was at it, fixed a lot more found by ispell that I could identify with certainty to be errors. All of these were in comments or text, not in actual code. Suggested by: bde MFC after: 3 days
* use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.ume2002-07-221-4/+2
| | | | Approved by: gad
* Changes which rewrite 'lpc topq', and which add 'lpc bottomq'. Thesegad2002-07-179-10/+1103
| | | | | | | | | | | | | reflect much valuable feedback from wollman. More details on the new 'lpc topq' are in the log message for revision 1.2 of lpc/movejobs.c. The previous implementation of 'lpc topq' is available as 'lpc xtopq', in case there are any problems noticed in the new implementation. If there are no problems with this version, a later update will remove the 'lpc xtopq' command. Reviewed by: freebsd-print@bostonradio.org MFC after: 6 days
* The .Nm utilitycharnier2002-07-144-16/+24
|
* Call routine to free everything obtained when filling in 'struct printer'.gad2002-07-121-0/+1
| | | | MFC after: 3 days
* Fix set_qstate() so it correctly checks for any error from chmod().gad2002-07-121-1/+1
| | | | | | Note that set_qstate() is only called from several 'lpc' commands. MFC after: 3 days
* Add a SQS_QCHANGED option to set_qstate(). This will soon be used by 'lpc'.gad2002-07-122-1/+11
| | | | | Reviewed by: freebsd-print@bostonradio.org MFC after: 3 days
* Add two variables to struct jobqueue, and change the way that getq()gad2002-07-122-3/+10
| | | | | | | calculates how much space to get for that struct, so it will get the right amount when new variables are added. MFC after: 3 days
* Move prototypes for ctl_readcf and ctl_freeinf from ctlinfo.c to ctlinfo.h,gad2002-07-122-2/+2
| | | | | | so the routines can be called by an upcoming change for 'lpc topq/bottomq'. MFC after: 3 days
* Remove the backup-versions ("x*") of various lpc commands that weregad2002-07-023-377/+0
| | | | | | | recently rewritten. No one in -current has reported any problems with the newer versions. MFC after: 3 weeks
* Redo the way that fatal-error messages are done in the chkhost() routine,gad2002-06-241-64/+88
| | | | | | | | mainly so the compiler can correctly do printf-style parameter checking. Some minor improvements to a few of the error messages, but the main goal here is to get rid of a few more compile-time warning messages. MFC after: 5 days
* Stop adding ${CWARNFLAGS} to CFLAGS. The standard makefile processing willgad2002-06-238-9/+7
| | | | | | add them automatically, and there is no point in adding them twice. MFC after: 5 days
* Just rename two generic-queue init routines from 'init_*' to '*_gi'gad2002-06-163-7/+7
| | | | | | ("gi" short for 'generic init'...). MFC after: 10 days
* Add a nearly complete rewrite of the lpc command 'down'. The only user-gad2002-06-164-3/+73
| | | | | | | | | | | | | | visible change should be that more than one queue can now be specified, if one uses the '-msg' parameter to separate the list of queues from the status message to set. The previous implementation of 'down' remains available as the command 'xdown', available for instant fallback if there seems to be anything wrong with the new one. If no one reports a problem after a few weeks, then a later update will remove 'xdown'. Reviewed by: freebsd-print@bostonradio.org MFC after: 10 days
OpenPOWER on IntegriCloud