From owner-cvs-usrsbin Tue Dec 2 12:49:12 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA02216 for cvs-usrsbin-outgoing; Tue, 2 Dec 1997 12:49:12 -0800 (PST) (envelope-from owner-cvs-usrsbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA02069; Tue, 2 Dec 1997 12:47:10 -0800 (PST) (envelope-from wollman@FreeBSD.org) From: Garrett Wollman Received: (from wollman@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id MAA09323; Tue, 2 Dec 1997 12:46:24 -0800 (PST) Date: Tue, 2 Dec 1997 12:46:24 -0800 (PST) Message-Id: <199712022046.MAA09323@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/lpr Makefile.inc Makefile src/usr.sbin/lpr/SMM.doc Makefile src/usr.sbin/lpr/chkprintcap Makefile chkprintcap.8 chkprintcap.c src/usr.sbin/lpr/common_source Makefile net.c printcap.c request.c ... Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wollman 1997/12/02 12:46:23 PST Modified files: usr.sbin/lpr Makefile usr.sbin/lpr/SMM.doc Makefile usr.sbin/lpr/common_source common.c displayq.c lp.h pathnames.h rmjob.c startdaemon.c usr.sbin/lpr/lp Makefile usr.sbin/lpr/lpc Makefile cmds.c cmdtab.c extern.h lpc.c lpc.h usr.sbin/lpr/lpd Makefile extern.h lpd.c lpdchar.c modes.c printjob.c recvjob.c usr.sbin/lpr/lpq Makefile lpq.c usr.sbin/lpr/lpr Makefile lpr.c usr.sbin/lpr/lprm Makefile lprm.c usr.sbin/lpr/pac Makefile pac.c Added files: usr.sbin/lpr Makefile.inc usr.sbin/lpr/chkprintcap Makefile chkprintcap.8 chkprintcap.c usr.sbin/lpr/common_source Makefile net.c printcap.c request.c Log: Mega lpd/lpd upgrade, part I: - 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... Revision Changes Path 1.3 +3 -2 src/usr.sbin/lpr/Makefile 1.2 +5 -4 src/usr.sbin/lpr/SMM.doc/Makefile 1.10 +80 -174 src/usr.sbin/lpr/common_source/common.c 1.13 +58 -61 src/usr.sbin/lpr/common_source/displayq.c 1.7 +158 -58 src/usr.sbin/lpr/common_source/lp.h 1.2 +1 -0 src/usr.sbin/lpr/common_source/pathnames.h 1.11 +82 -61 src/usr.sbin/lpr/common_source/rmjob.c 1.7 +18 -17 src/usr.sbin/lpr/common_source/startdaemon.c 1.4 +1 -1 src/usr.sbin/lpr/lp/Makefile 1.3 +5 -3 src/usr.sbin/lpr/lpc/Makefile 1.11 +246 -514 src/usr.sbin/lpr/lpc/cmds.c 1.2 +13 -9 src/usr.sbin/lpr/lpc/cmdtab.c 1.2 +10 -9 src/usr.sbin/lpr/lpc/extern.h 1.6 +11 -4 src/usr.sbin/lpr/lpc/lpc.c 1.2 +3 -0 src/usr.sbin/lpr/lpc/lpc.h 1.4 +5 -5 src/usr.sbin/lpr/lpd/Makefile 1.3 +9 -3 src/usr.sbin/lpr/lpd/extern.h 1.9 +109 -91 src/usr.sbin/lpr/lpd/lpd.c 1.4 +4 -0 src/usr.sbin/lpr/lpd/lpdchar.c 1.4 +4 -2 src/usr.sbin/lpr/lpd/modes.c 1.18 +321 -345 src/usr.sbin/lpr/lpd/printjob.c 1.12 +28 -25 src/usr.sbin/lpr/lpd/recvjob.c 1.3 +5 -4 src/usr.sbin/lpr/lpq/Makefile 1.5 +55 -32 src/usr.sbin/lpr/lpq/lpq.c 1.3 +5 -3 src/usr.sbin/lpr/lpr/Makefile 1.22 +72 -91 src/usr.sbin/lpr/lpr/lpr.c 1.3 +5 -3 src/usr.sbin/lpr/lprm/Makefile 1.4 +23 -11 src/usr.sbin/lpr/lprm/lprm.c 1.3 +4 -2 src/usr.sbin/lpr/pac/Makefile 1.8 +18 -16 src/usr.sbin/lpr/pac/pac.c