summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/common_source/printcap.c
Commit message (Collapse)AuthorAgeFilesLines
* lpr: replace 0 with NULL for pointers.pfg2016-04-101-4/+4
| | | | | | Found with devel/coccinelle. Reviewed by: gad
* 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
* Take advantage of the common_source/lp.cdefs.h file to change lprgad2003-07-141-4/+2
| | | | | | | | 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
* Implement new printcap option of "rc" aka "remote.resend_copies".gad2002-04-231-0/+1
| | | | | | | | | | | | This is a boolean option, and if it is specified in a print queue for a remote host, it causes lpd to resend the data file for each copy the user requested on 'lpr -#n'. This is useful for network printers which accept lpd-style jobs, but which ignore the control file (and thus they ignore any request for multiple copies). PR: 25635 Reviewed by: short review on freebsd-audit MFC after: 6 days
* Fix about 90-100 warnings one gets when trying to compile lpr&friendsgad2001-06-121-12/+12
| | | | | | | | | | | | with BDECFLAGS on, mainly by adding 'const' to parameters in a number of routine declarations. While I'm at it, ANSI-fy all of the routine declarations. The resulting object code is exactly the same after this update as before it, with the exception of one unavoidable change to lpd.o on freebsd/alpha. Also added $FreeBSD$ line to lpc/extern.h lpc/lpc.h lptest/lptest.c Reviewed by: /sbin/md5, and no feedback from freebsd-audit
* Implement new printcap options of sr= (aka stat.recv) and sr= (aka stat.send)gad2000-11-021-0/+4
| | | | | | | | in lpd. Stat.recv is useful on a printserver, as something of a network performance-monitoring tool. Stat.send is a minimal accounting record of sorts for jobs going to tcp/ip based printers. Reviewed by: freebsd-print@bostonradio.org
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* lpd tries to be clever and checks if RM == my_hostname.jkh1999-04-271-1/+17
| | | | | | | | | However, it doesn't check if the remote printer name it is sending it to is the same as the local printer name, and so chokes 'cos "laser" is not a real printer. PR: 7081 Submitted by: David Malone <dwmalone@maths.tcd.ie>
* Fix top-of-form bogon.wollman1997-12-271-2/+2
|
* Mega lpd/lpd upgrade, part I:wollman1997-12-021-0/+428
| | | | | | | | | | | | | | | - Get rid of a lot of the static variables which were shared by many routines and programs in the suite. - Create an abstract interface to the printcap database, so that other retrieval and iteration mechanisms could be developed (e.g., YP, Hesiod, or automatic retrieval from a trusted server). - Give each capability a human-readable name in addition to the historic two-character one. - Otherwise generally clean up a lot of dark corners. Many still remain. - When submitting jobs, use the official login name record (from getlogin()) if there is one, rather than reverse-mapping the uid. More to come...
* Cleanup.joerg1996-05-091-551/+0
| | | | | | | | | The removed files are no longer needed, they are actually labelled as ``Use only if you are not 4.4BSD''. (Yeah, the ol' crufty printcap.c is really gone!) Properly declare all external objects in files ending in .h, as opposed to embed them into files ending in .c.
* Vendor-branch import of the 4.4BSD-Lite2 code for lpr. There arejoerg1996-05-051-12/+105
| | | | | | | | several bugfixes in it that are worth considering. Don't be alarmed about the import conflicts... Obtained from: 4.4BSD-Lite2
* BSD 4.4 Lite usr.sbin Sourcesrgrimes1994-05-261-0/+458
OpenPOWER on IntegriCloud