source: trunk/athena/bin/lpr/lp.local.h @ 7914

Revision 7914, 2.7 KB checked in by miki, 29 years ago (diff)
redefined DEFSPOOL, to be correct
Line 
1/*
2 * Copyright (c) 1983 Regents of the University of California.
3 * All rights reserved.  The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
6 *      @(#)lp.local.h  5.1 (Berkeley) 6/6/85
7 */
8
9/*
10 * Possibly, local parameters to the spooling system
11 */
12
13/*
14 * Magic number mapping for binary files, used by lpr to avoid
15 *   printing objects files.
16 */
17
18#ifndef SOLARIS
19#include <a.out.h>
20#else
21#include <sys/exechdr.h>
22#endif
23#include <ar.h>
24
25#if defined(AIX) && defined(_I386) && !defined(OMAGIC)
26#       define OMAGIC   MAG_OVERLAY
27#       define NMAGIC   MAG_NSHWRT
28#       define ZMAGIC   MAG_SHROT
29#       define A_MAGIC4 MAG_SHROTSEP
30/* We still need more? Or lib's? */
31#endif
32
33#if defined(_IBMR2) && !defined(OMAGIC)
34#define LP_COFF_DEFINES
35#define ISCOFF(x) (((x) == U802WRMAGIC) || ((x) == U802ROMAGIC) || ((x) == U802TOCMAGIC))
36#endif
37
38#if defined(_AUX_SOURCE)
39#define LP_COFF_DEFINES
40#define ISCOFF(x) (((x) == M68TVMAGIC) || ((x) == M68MAGIC) || \
41        ((x) == MC68TVMAGIC) || ((x) == MC68MAGIC) || ((x) == M68NSMAGIC))
42#endif
43
44#if defined(ultrix) && defined(mips)
45#define LP_COFF_DEFINES
46#endif
47
48
49#ifndef A_MAGIC1        /* must be a VM/UNIX system */
50#       define A_MAGIC1 OMAGIC
51#       define A_MAGIC2 NMAGIC
52#       define A_MAGIC3 ZMAGIC
53#       undef ARMAG
54#       define ARMAG    0177545
55#endif
56
57/*
58 * Defaults for line printer capabilities data base
59 */
60#define DEFLP           "default"
61#define DEFLOCK         "lock"
62#define DEFSTAT         "status"
63#define DEFSPOOL        "/usr/spool/printer"
64#define DEFDAEMON       "/usr/lib/lpd"
65#define DEFLOGF         "/dev/console"
66#define DEFDEVLP        "/dev/lp"
67#define DEFRLPR         "/usr/lib/rlpr"
68#define DEFBINDIR       "/usr/ucb"
69#define DEFMX           1000
70#define DEFMAXCOPIES    0
71#define DEFFF           "\f"
72#define DEFWIDTH        132
73#define DEFLENGTH       66
74#define DEFUID          1
75#define DEFPC           0       /* Default page cost */
76/*
77 * When files are created in the spooling area, they are normally
78 *   readable only by their owner and the spooling group.  If you
79 *   want otherwise, change this mode.
80 */
81#define FILMOD          0660
82
83/*
84 * Printer is assumed to support LINELEN (for block chars)
85 *   and background character (blank) is a space
86 */
87#define LINELEN         132
88#define BACKGND         ' '
89
90#define HEIGHT  9               /* height of characters */
91#define WIDTH   8               /* width of characters */
92#define DROP    3               /* offset to drop characters with descenders */
93
94/*
95 * path name of files created by lpd.
96 */
97#define MASTERLOCK "/usr/spool/lpd.lock"
98#define SOCKETNAME "/dev/printer"
99
100/*
101 * Some utilities used by printjob.
102 */
103#define PR              "/bin/pr"
104#define MAIL            "/usr/lib/sendmail"
105
106/*
107 * Define TERMCAP if the terminal capabilites are to be used for lpq.
108 */
109#define TERMCAP
110
111/*
112 * Maximum number of user and job requests for lpq and lprm.
113 */
114#define MAXUSERS        50
115#define MAXREQUESTS     50
Note: See TracBrowser for help on using the repository browser.