1 /* 2 * Copyright (c) 1983 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that this notice is preserved and that due credit is given 7 * to the University of California at Berkeley. The name of the University 8 * may not be used to endorse or promote products derived from this 9 * software without specific prior written permission. This software 10 * is provided ``as is'' without express or implied warranty. 11 * 12 * @(#)lp.local.h 5.2 (Berkeley) 05/05/88 13 */ 14 15 /* 16 * Possibly, local parameters to the spooling system 17 */ 18 19 /* 20 * Magic number mapping for binary files, used by lpr to avoid 21 * printing objects files. 22 */ 23 24 #include <a.out.h> 25 #include <ar.h> 26 27 #ifndef A_MAGIC1 /* must be a VM/UNIX system */ 28 # define A_MAGIC1 OMAGIC 29 # define A_MAGIC2 NMAGIC 30 # define A_MAGIC3 ZMAGIC 31 # undef ARMAG 32 # define ARMAG 0177545 33 #endif 34 35 /* 36 * Defaults for line printer capabilities data base 37 */ 38 #define DEFLP "lp" 39 #define DEFLOCK "lock" 40 #define DEFSTAT "status" 41 #define DEFSPOOL "/usr/spool/lpd" 42 #define DEFDAEMON "/usr/lib/lpd" 43 #define DEFLOGF "/dev/console" 44 #define DEFDEVLP "/dev/lp" 45 #define DEFRLPR "/usr/lib/rlpr" 46 #define DEFBINDIR "/usr/ucb" 47 #define DEFMX 1000 48 #define DEFMAXCOPIES 0 49 #define DEFFF "\f" 50 #define DEFWIDTH 132 51 #define DEFLENGTH 66 52 #define DEFUID 1 53 54 /* 55 * When files are created in the spooling area, they are normally 56 * readable only by their owner and the spooling group. If you 57 * want otherwise, change this mode. 58 */ 59 #define FILMOD 0660 60 61 /* 62 * Printer is assumed to support LINELEN (for block chars) 63 * and background character (blank) is a space 64 */ 65 #define LINELEN 132 66 #define BACKGND ' ' 67 68 #define HEIGHT 9 /* height of characters */ 69 #define WIDTH 8 /* width of characters */ 70 #define DROP 3 /* offset to drop characters with descenders */ 71 72 /* 73 * path name of files created by lpd. 74 */ 75 #define MASTERLOCK "/usr/spool/lpd.lock" 76 #define SOCKETNAME "/dev/printer" 77 78 /* 79 * Some utilities used by printjob. 80 */ 81 #define PR "/bin/pr" 82 #define MAIL "/usr/lib/sendmail" 83 84 /* 85 * Define TERMCAP if the terminal capabilites are to be used for lpq. 86 */ 87 #define TERMCAP 88 89 /* 90 * Maximum number of user and job requests for lpq and lprm. 91 */ 92 #define MAXUSERS 50 93 #define MAXREQUESTS 50 94