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