Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2003 17:24:40 -0400
From:      Garance A Drosihn <drosih@rpi.edu>
To:        rone@ennui.org (roger n. tospott), freebsd-stable@freebsd.org
Subject:   Re: two minor lpr gripes
Message-ID:  <p05210617bb8fd07a9f06@[128.113.24.47]>
In-Reply-To: <20030918174819.1499B26C34@boredom.ennui.org>
References:  <20030918174819.1499B26C34@boredom.ennui.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05210617bb8fd07a9f06>