From owner-freebsd-stable@FreeBSD.ORG Thu Sep 18 14:24:46 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 204D516A4BF for ; Thu, 18 Sep 2003 14:24:46 -0700 (PDT) Received: from smtp2.server.rpi.edu (smtp2.server.rpi.edu [128.113.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37A0A43FE1 for ; Thu, 18 Sep 2003 14:24:44 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp2.server.rpi.edu (8.12.10/8.12.9) with ESMTP id h8ILOfwA028612; Thu, 18 Sep 2003 17:24:41 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20030918174819.1499B26C34@boredom.ennui.org> References: <20030918174819.1499B26C34@boredom.ennui.org> Date: Thu, 18 Sep 2003 17:24:40 -0400 To: rone@ennui.org (roger n. tospott), freebsd-stable@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) Subject: Re: two minor lpr gripes X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Sep 2003 21:24:46 -0000 At 10:47 AM -0700 9/18/03, roger n. tospott wrote: >/usr/src/usr.sbin/lpr/common_source/lp.local.h currently has > > #define DEFMX 1000 > >Given the size of files nowadays, shouldn't this be a >little larger? This was recently changed to 0 in current, but not in stable. (zero meaning "no limit"). It probably makes sense to pick *some* limit instead of "infinity", but I couldn't come up with a good reason for any specific value, so we just went with zero (aka "infinity"). >Also, maybe it's just me, but given this (from man printcap): > > Name Type Default Description > mx num 1000 maximum file size (in BUFSIZ > blocks), zero = unlimited > >it's not obvious to me that "Type num" means that, if i wanted >an unlimited maximum file size, the printcap entry should be >"mx#0", rather than "mx=0". Perhaps more expressive examples >could be helpful in /usr/src/etc/printcap. Heh. It's obvious to people who have done a lot with printcap or termcap, but it's true that people often miss that. I thought I had added some logic to chkprintcap for that (so you'd at least see a warning message when lpd starts up). Perhaps I only did that in my own versions, and never committed it to freebsd. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu