# 2.11BSD#431 - /usr/src/usr.sbin/lpr/lp.local.h

##### Macros

    ARMAG             X
    A_MAGIC1          X
    A_MAGIC2          X
    A_MAGIC3          X
    BACKGND           X
    DEFDAEMON         X
    DEFDEVLP          X
    DEFFF             X
    DEFLENGTH         X
    DEFLOCK           X
    DEFLOGF           X
    DEFLP             X
    DEFMAXCOPIES      X
    DEFMX             X
    DEFSPOOL          X
    DEFSTAT           X
    DEFUID            X
    DEFWIDTH          X
    DROP              X
    FILMOD            X
    HEIGHT            X
    LINELEN           X
    MASTERLOCK        X
    MAXREQUESTS       X
    MAXUSERS          X
    PR                X
    SOCKETNAME        X
    TERMCAP           X
    WIDTH             X

       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.2 (2.11BSD GTE) 1996/10/24
       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: #include <paths.h>
      21:
      22: #ifndef A_MAGIC1    /* must be a VM/UNIX system */
      23: #	define A_MAGIC1   OMAGIC
      24: #	define A_MAGIC2   NMAGIC
      25: #	define A_MAGIC3   ZMAGIC
      26: #endif
      27:
      28: #	undef ARMAG
      29: #	define ARMAG  0177545
      30:
      31: /*
      32:  * Defaults for line printer capabilities data base
      33:  */
      34: #define DEFLP       "lp"
      35: #define DEFLOCK     "lock"
      36: #define DEFSTAT     "status"
      37: #define DEFSPOOL    "/usr/spool/lpd"
      38: #define DEFDAEMON   "/usr/sbin/lpd"
      39: #define DEFLOGF     "/dev/console"
      40: #define DEFDEVLP    "/dev/lp"
      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:
      77: /*
      78:  * Define TERMCAP if the terminal capabilites are to be used for lpq.
      79:  */
      80: #define TERMCAP
      81:
      82: /*
      83:  * Maximum number of user and job requests for lpq and lprm.
      84:  */
      85: #define MAXUSERS    50
      86: #define MAXREQUESTS 50

#### Defined macros

ARMAG defined in line 29; used 1 times

- in line 28

A_MAGIC1 defined in line 23; used 1 times

- in line 22

A_MAGIC2 defined in line 24; never used
A_MAGIC3 defined in line 25; never used
BACKGND defined in line 60; used 5 times

- in /usr/src/usr.sbin/lpr/printjob.c line 834, 858-866(4)

DEFDAEMON defined in line 38; never used
DEFDEVLP defined in line 40; used 3 times

- in /usr/src/usr.sbin/lpr/displayq.c line 68
- in /usr/src/usr.sbin/lpr/printjob.c line 1021
- in /usr/src/usr.sbin/lpr/rmjob.c line 48

DEFFF defined in line 43; used 1 times

- in /usr/src/usr.sbin/lpr/printjob.c line 1035

DEFLENGTH defined in line 45; used 1 times

- in /usr/src/usr.sbin/lpr/printjob.c line 1040

DEFLOCK defined in line 35; used 13 times

- in /usr/src/usr.sbin/lpr/cmds.c line 67, 294, 357, 430, 579, 647, 744, 801
- in /usr/src/usr.sbin/lpr/displayq.c line 74
- in /usr/src/usr.sbin/lpr/lpr.c line 602
- in /usr/src/usr.sbin/lpr/printjob.c line 1025
- in /usr/src/usr.sbin/lpr/recvjob.c line 49
- in /usr/src/usr.sbin/lpr/rmjob.c line 46

DEFLOGF defined in line 39; used 2 times

- in /usr/src/usr.sbin/lpr/printjob.c line 1029
- in /usr/src/usr.sbin/lpr/recvjob.c line 45

DEFLP defined in line 34; used 7 times

- in /usr/src/usr.sbin/lpr/displayq.c line 70
- in /usr/src/usr.sbin/lpr/lpq.c line 104
- in /usr/src/usr.sbin/lpr/lpr.c line 207
- in /usr/src/usr.sbin/lpr/lprm.c line 94
- in /usr/src/usr.sbin/lpr/pac.c line 131
- in /usr/src/usr.sbin/lpr/printjob.c line 1023
- in /usr/src/usr.sbin/lpr/rmjob.c line 50

DEFMAXCOPIES defined in line 42; used 1 times

- in /usr/src/usr.sbin/lpr/lpr.c line 607

DEFMX defined in line 41; used 1 times

- in /usr/src/usr.sbin/lpr/lpr.c line 605

DEFSPOOL defined in line 37; used 14 times

- in /usr/src/usr.sbin/lpr/cmds.c line 65, 196, 292, 355, 428, 577, 645, 742, 799
- in /usr/src/usr.sbin/lpr/displayq.c line 72
- in /usr/src/usr.sbin/lpr/lpr.c line 600
- in /usr/src/usr.sbin/lpr/printjob.c line 1031
- in /usr/src/usr.sbin/lpr/recvjob.c line 47
- in /usr/src/usr.sbin/lpr/rmjob.c line 44

DEFSTAT defined in line 36; used 4 times

- in /usr/src/usr.sbin/lpr/cmds.c line 432, 649
- in /usr/src/usr.sbin/lpr/displayq.c line 76
- in /usr/src/usr.sbin/lpr/printjob.c line 1027

DEFUID defined in line 46; used 2 times

- in /usr/src/usr.sbin/lpr/lpr.c line 609
- in /usr/src/usr.sbin/lpr/printjob.c line 1033

DEFWIDTH defined in line 44; used 1 times

- in /usr/src/usr.sbin/lpr/printjob.c line 1037

DROP defined in line 64; used 3 times

- in /usr/src/usr.sbin/lpr/printjob.c line 851-856(2), 887

FILMOD defined in line 53; used 3 times

- in /usr/src/usr.sbin/lpr/lpr.c line 446
- in /usr/src/usr.sbin/lpr/printjob.c line 505
- in /usr/src/usr.sbin/lpr/recvjob.c line 200

HEIGHT defined in line 62; used 4 times

- in /usr/src/usr.sbin/lpr/lpdchar.c line 77
- in /usr/src/usr.sbin/lpr/printjob.c line 849-856(3)

LINELEN defined in line 59; used 1 times

- in /usr/src/usr.sbin/lpr/printjob.c line 847

MASTERLOCK defined in line 69; used 5 times

- in /usr/src/usr.sbin/lpr/lpd.c line 99-101(2), 107, 117
- in /usr/src/usr.sbin/lpr/startdaemon.c line 39

MAXREQUESTS defined in line 86; used 7 times

- in /usr/src/usr.sbin/lpr/lpd.c line 250, 314, 344
- in /usr/src/usr.sbin/lpr/lpq.c line 30, 93
- in /usr/src/usr.sbin/lpr/lprm.c line 35, 83

MAXUSERS defined in line 85; used 7 times

- in /usr/src/usr.sbin/lpr/lpd.c line 248, 318, 348
- in /usr/src/usr.sbin/lpr/lpq.c line 28, 97
- in /usr/src/usr.sbin/lpr/lprm.c line 33, 87

PR defined in line 75; used 3 times

- in /usr/src/usr.sbin/lpr/printjob.c line 452, 468-469(2)

SOCKETNAME defined in line 70; used 4 times

- in /usr/src/usr.sbin/lpr/lpd.c line 125, 149, 236
- in /usr/src/usr.sbin/lpr/startdaemon.c line 57

TERMCAP defined in line 80; used 7 times

- in /usr/src/usr.sbin/lpr/lpq.c line 40, 105-115(3), 124, 152, 163

WIDTH defined in line 63; used 3 times

- in /usr/src/usr.sbin/lpr/printjob.c line 832, 857-861(2)

#### Usage of this include

lp.local.h used 5 times

- in /usr/src/usr.sbin/lpr/lp.h line 29
- in /usr/src/usr.sbin/lpr/lpdchar.c line 14
- in /usr/src/usr.sbin/lpr/lpr.c line 31
- in /usr/src/usr.sbin/lpr/pac.c line 25
- in /usr/src/usr.sbin/lpr/startdaemon.c line 21

Last modified: 1996-10-24 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1395 |