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) 06/06/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 #include <a.out.h>
19 #include <ar.h>
20 
21 #ifndef A_MAGIC1	/* must be a VM/UNIX system */
22 #	define A_MAGIC1	OMAGIC
23 #	define A_MAGIC2	NMAGIC
24 #	define A_MAGIC3	ZMAGIC
25 #	undef ARMAG
26 #	define ARMAG	0177545
27 #endif
28 
29 /*
30  * Defaults for line printer capabilities data base
31  */
32 #define	DEFLP		"lp"
33 #define DEFLOCK		"lock"
34 #define DEFSTAT		"status"
35 #define	DEFSPOOL	"/usr/spool/lpd"
36 #define	DEFDAEMON	"/usr/lib/lpd"
37 #define	DEFLOGF		"/dev/console"
38 #define	DEFDEVLP	"/dev/lp"
39 #define DEFRLPR		"/usr/lib/rlpr"
40 #define DEFBINDIR	"/usr/ucb"
41 #define	DEFMX		1000
42 #define DEFMAXCOPIES	0
43 #define DEFFF		"\f"
44 #define DEFWIDTH	132
45 #define DEFLENGTH	66
46 #define DEFUID		1
47 
48 /*
49  * When files are created in the spooling area, they are normally
50  *   readable only by their owner and the spooling group.  If you
51  *   want otherwise, change this mode.
52  */
53 #define FILMOD		0660
54 
55 /*
56  * Printer is assumed to support LINELEN (for block chars)
57  *   and background character (blank) is a space
58  */
59 #define LINELEN		132
60 #define BACKGND		' '
61 
62 #define HEIGHT	9		/* height of characters */
63 #define WIDTH	8		/* width of characters */
64 #define DROP	3		/* offset to drop characters with descenders */
65 
66 /*
67  * path name of files created by lpd.
68  */
69 #define MASTERLOCK "/usr/spool/lpd.lock"
70 #define SOCKETNAME "/dev/printer"
71 
72 /*
73  * Some utilities used by printjob.
74  */
75 #define PR		"/bin/pr"
76 #define MAIL		"/usr/lib/sendmail"
77 
78 /*
79  * Define TERMCAP if the terminal capabilites are to be used for lpq.
80  */
81 #define TERMCAP
82 
83 /*
84  * Maximum number of user and job requests for lpq and lprm.
85  */
86 #define MAXUSERS	50
87 #define MAXREQUESTS	50
88