1*6ea7f916SThomas Cort /* $NetBSD: pr.h,v 1.5 2012/07/24 02:13:04 ginsbach Exp $ */ 2*6ea7f916SThomas Cort 3*6ea7f916SThomas Cort /*- 4*6ea7f916SThomas Cort * Copyright (c) 1991 Keith Muller. 5*6ea7f916SThomas Cort * Copyright (c) 1993 6*6ea7f916SThomas Cort * The Regents of the University of California. All rights reserved. 7*6ea7f916SThomas Cort * Copyright (c) 2012 8*6ea7f916SThomas Cort * The NetBSD Foundation, Inc. 9*6ea7f916SThomas Cort * 10*6ea7f916SThomas Cort * This code is derived from software contributed to Berkeley by 11*6ea7f916SThomas Cort * Keith Muller of the University of California, San Diego. 12*6ea7f916SThomas Cort * 13*6ea7f916SThomas Cort * Redistribution and use in source and binary forms, with or without 14*6ea7f916SThomas Cort * modification, are permitted provided that the following conditions 15*6ea7f916SThomas Cort * are met: 16*6ea7f916SThomas Cort * 1. Redistributions of source code must retain the above copyright 17*6ea7f916SThomas Cort * notice, this list of conditions and the following disclaimer. 18*6ea7f916SThomas Cort * 2. Redistributions in binary form must reproduce the above copyright 19*6ea7f916SThomas Cort * notice, this list of conditions and the following disclaimer in the 20*6ea7f916SThomas Cort * documentation and/or other materials provided with the distribution. 21*6ea7f916SThomas Cort * 3. Neither the name of the University nor the names of its contributors 22*6ea7f916SThomas Cort * may be used to endorse or promote products derived from this software 23*6ea7f916SThomas Cort * without specific prior written permission. 24*6ea7f916SThomas Cort * 25*6ea7f916SThomas Cort * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 26*6ea7f916SThomas Cort * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27*6ea7f916SThomas Cort * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28*6ea7f916SThomas Cort * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 29*6ea7f916SThomas Cort * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30*6ea7f916SThomas Cort * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31*6ea7f916SThomas Cort * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32*6ea7f916SThomas Cort * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33*6ea7f916SThomas Cort * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34*6ea7f916SThomas Cort * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35*6ea7f916SThomas Cort * SUCH DAMAGE. 36*6ea7f916SThomas Cort * 37*6ea7f916SThomas Cort * from: @(#)pr.h 8.1 (Berkeley) 6/6/93 38*6ea7f916SThomas Cort * $NetBSD: pr.h,v 1.5 2012/07/24 02:13:04 ginsbach Exp $ 39*6ea7f916SThomas Cort */ 40*6ea7f916SThomas Cort 41*6ea7f916SThomas Cort /* 42*6ea7f916SThomas Cort * parameter defaults 43*6ea7f916SThomas Cort */ 44*6ea7f916SThomas Cort #define CLCNT 1 45*6ea7f916SThomas Cort #define INCHAR '\t' 46*6ea7f916SThomas Cort #define INGAP 8 47*6ea7f916SThomas Cort #define OCHAR '\t' 48*6ea7f916SThomas Cort #define OGAP 8 49*6ea7f916SThomas Cort #define LINES 66 50*6ea7f916SThomas Cort #define NMWD 5 51*6ea7f916SThomas Cort #define NMCHAR '\t' 52*6ea7f916SThomas Cort #define SCHAR '\t' 53*6ea7f916SThomas Cort #define PGWD 72 54*6ea7f916SThomas Cort #define SPGWD 512 55*6ea7f916SThomas Cort 56*6ea7f916SThomas Cort /* 57*6ea7f916SThomas Cort * misc default values 58*6ea7f916SThomas Cort */ 59*6ea7f916SThomas Cort #define HDFMT "%s %s Page %d\n\n\n" 60*6ea7f916SThomas Cort #define HEADLEN 5 61*6ea7f916SThomas Cort #define TAILLEN 5 62*6ea7f916SThomas Cort #define TIMEFMT "%b %e %H:%M %Y" 63*6ea7f916SThomas Cort #define FNAME "" 64*6ea7f916SThomas Cort #define LBUF 8192 65*6ea7f916SThomas Cort #define HDBUF 512 66*6ea7f916SThomas Cort 67*6ea7f916SThomas Cort /* when to pause before (for -f and -p options) */ 68*6ea7f916SThomas Cort #define NO_PAUSE 0 69*6ea7f916SThomas Cort #define FIRSTPAGE 1 70*6ea7f916SThomas Cort #define ENSUINGPAGES 2 71*6ea7f916SThomas Cort #define EACHPAGE (FIRSTPAGE | ENSUINGPAGES) 72*6ea7f916SThomas Cort 73*6ea7f916SThomas Cort /* 74*6ea7f916SThomas Cort * structure for vertical columns. Used to balance cols on last page 75*6ea7f916SThomas Cort */ 76*6ea7f916SThomas Cort struct vcol { 77*6ea7f916SThomas Cort char *pt; /* ptr to col */ 78*6ea7f916SThomas Cort int cnt; /* char count */ 79*6ea7f916SThomas Cort }; 80