source: trunk/athena/bin/lpr/lp.h @ 8864

Revision 8864, 4.5 KB checked in by ghudson, 28 years ago (diff)
strings.h -> string.h
Line 
1/*
2 *      $Source: /afs/dev.mit.edu/source/repository/athena/bin/lpr/lp.h,v $
3 *      $Author: ghudson $
4 *      $Locker:  $
5 *      $Header: /afs/dev.mit.edu/source/repository/athena/bin/lpr/lp.h,v 1.15 1996-09-20 02:06:39 ghudson Exp $
6 */
7
8/*
9 * Copyright (c) 1983 Regents of the University of California.
10 * All rights reserved.  The Berkeley software License Agreement
11 * specifies the terms and conditions for redistribution.
12 *
13 *      @(#)lp.h        5.1 (Berkeley) 6/6/85
14 */
15
16/*
17 * Global definitions for the line printer system.
18 */
19
20#ifdef POSIX
21#include <unistd.h>
22#endif
23#include <stdio.h>
24#include <sys/param.h>
25#include <sys/types.h>
26#include <sys/file.h>
27#include <fcntl.h>
28#ifdef POSIX
29#include <dirent.h>
30#else
31#include <sys/dir.h>
32#endif
33#include <sys/stat.h>
34#include <sys/socket.h>
35#include <sys/un.h>
36#include <netinet/in.h>
37#include <netdb.h>
38#include <pwd.h>
39#include <syslog.h>
40#include <signal.h>
41#ifdef _AIX
42#undef _BSD
43#endif
44#include <sys/wait.h>
45#ifdef _AIX
46#define _BSD 44
47#include <sys/ioctl.h>
48#endif
49#ifdef POSIX
50#include <termios.h>
51#else
52#include <sgtty.h>
53#endif
54#include <ctype.h>
55#include <errno.h>
56#include <string.h>
57#include "lp.local.h"
58
59
60
61#ifdef KERBEROS
62#include <krb.h>
63#define KLPR_SERVICE "rcmd"
64#endif /* KERBEROS */
65
66extern int      DU;             /* daeomon user-id */
67extern int      MX;             /* maximum number of blocks to copy */
68extern int      MC;             /* maximum number of copies allowed */
69extern char     *LP;            /* line printer device name */
70extern char     *RM;            /* remote machine name */
71extern char     *RG;            /* restricted group */
72extern char     *RP;            /* remote printer name */
73extern char     *LO;            /* lock file name */
74extern char     *ST;            /* status file name */
75extern char     *SD;            /* spool directory */
76extern char     *AF;            /* accounting file */
77extern char     *LF;            /* log file for error messages */
78extern char     *OF;            /* name of output filter (created once) */
79extern char     *IF;            /* name of input filter (created per job) */
80extern char     *RF;            /* name of fortran text filter (per job) */
81extern char     *TF;            /* name of troff(1) filter (per job) */
82extern char     *NF;            /* name of ditroff(1) filter (per job) */
83extern char     *DF;            /* name of tex filter (per job) */
84extern char     *GF;            /* name of graph(1G) filter (per job) */
85extern char     *VF;            /* name of raster filter (per job) */
86extern char     *CF;            /* name of cifplot filter (per job) */
87extern char     *FF;            /* form feed string */
88extern char     *TR;            /* trailer string to be output when Q empties */
89extern char     *MS;            /* list of tty modes to set or clear */
90extern short    SC;             /* suppress multiple copies */
91extern short    SF;             /* suppress FF on each print job */
92extern short    SH;             /* suppress header page */
93extern short    SB;             /* short banner instead of normal header */
94extern short    HL;             /* print header last */
95extern short    RW;             /* open LP for reading and writing */
96extern short    PW;             /* page width */
97extern short    PX;             /* page width in pixels */
98extern short    PY;             /* page length in pixels */
99extern short    PL;             /* page length */
100extern short    BR;             /* baud rate if lp is a tty */
101extern int      FC;             /* flags to clear if lp is a tty */
102extern int      FS;             /* flags to set if lp is a tty */
103extern int      XC;             /* flags to clear for local mode */
104extern int      XS;             /* flags to set for local mode */
105extern short    RS;             /* restricted to those with local accounts */
106#ifdef PQUOTA
107extern char     *RQ;            /* Name of remote quota server */
108extern int      CP;             /* Cost per page */
109extern char     *QS;            /* Quota service for printer */
110#endif /* PQUOTA */
111#ifdef LACL
112extern char     *AC;            /* Local ACL file to use */
113extern short    PA;             /* ACL file used as positive ACL */
114extern short    RA;             /* Restricted host access */
115#endif /* LACL */
116
117extern char     line[BUFSIZ];
118extern char     pbuf[];         /* buffer for printcap entry */
119extern char     *bp;            /* pointer into ebuf for pgetent() */
120extern char     *name;          /* program name */
121extern char     *printer;       /* printer name */
122extern char     host[32];       /* host machine name */
123extern char     *from;          /* client's machine name */
124extern int      errno;
125#ifdef HESIOD
126extern char     alibuf[BUFSIZ/2]; /* buffer for printer alias */
127#endif
128
129#ifdef KERBEROS
130extern int      use_kerberos;
131extern int      kerberos_cf;
132extern char     kprincipal[];
133extern char     kinstance[];
134extern char     krealm[];
135#endif /* KERBEROS */
136
137/*
138 * Structure used for building a sorted list of control files.
139 */
140struct queue_ {
141        time_t  q_time;                 /* modification time */
142        char    q_name[MAXNAMLEN+1];    /* control file name */
143};
144
145char    *pgetstr();
146#ifdef vax
147char    *malloc();
148#endif
149char    *getenv();
150
151
152#define UNLINK unlink
153#ifdef PQUOTA
154#define QUOTA_QUERY_VERSION '1'
155#endif
Note: See TracBrowser for help on using the repository browser.