date and time created 83/04/29 11:39:42 by ralph
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Sat, 30 Apr 1983 02:39:42 +0000 (18:39 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Sat, 30 Apr 1983 02:39:42 +0000 (18:39 -0800)
SCCS-vsn: usr.sbin/lpr/common_source/lp.h 4.1

usr/src/usr.sbin/lpr/common_source/lp.h [new file with mode: 0644]

diff --git a/usr/src/usr.sbin/lpr/common_source/lp.h b/usr/src/usr.sbin/lpr/common_source/lp.h
new file mode 100644 (file)
index 0000000..f7cbd4c
--- /dev/null
@@ -0,0 +1,74 @@
+/*     lp.h    4.1     83/04/29        */
+/*
+ * Global definitions for the line printer system.
+ */
+
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/file.h>
+#include <sys/dir.h>
+#include <sys/stat.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+#include <pwd.h>
+#include <signal.h>
+#include <wait.h>
+#include <sgtty.h>
+#include <ctype.h>
+#include <errno.h>
+#include "lp.local.h"
+
+extern int     DU;             /* daeomon user-id */
+extern int     MX;             /* maximum number of blocks to copy */
+extern char    *LP;            /* line printer device name */
+extern char    *RM;            /* remote machine name */
+extern char    *RP;            /* remote printer name */
+extern char    *LO;            /* lock file name */
+extern char    *ST;            /* status file name */
+extern char    *SD;            /* spool directory */
+extern char    *AF;            /* accounting file */
+extern char    *LF;            /* log file for error messages */
+extern char    *OF;            /* name of output filter (created once) */
+extern char    *IF;            /* name of input filter (created per job) */
+extern char    *TF;            /* name of troff(1) filter (per job) */
+extern char    *DF;            /* name of tex filter (per job) */
+extern char    *GF;            /* name of graph(1G) filter (per job) */
+extern char    *VF;            /* name of raster filter (per job) */
+extern char    *CF;            /* name of cifplot filter (per job) */
+extern char    *FF;            /* form feed string */
+extern char    *TR;            /* trailer string to be output when Q empties */
+extern short   SF;             /* suppress FF on each print job */
+extern short   SH;             /* suppress header page */
+extern short   SB;             /* short banner instead of normal header */
+extern short   RW;             /* open LP for reading and writing */
+extern short   PW;             /* page width */
+extern short   PL;             /* page length */
+extern short   BR;             /* baud rate if lp is a tty */
+extern short   FC;             /* flags to clear if lp is a tty */
+extern short   FS;             /* flags to set if lp is a tty */
+extern short   XC;             /* flags to clear for local mode */
+extern short   XS;             /* flags to set for local mode */
+
+extern char    line[BUFSIZ];
+extern char    pbuf[];         /* buffer for printcap entry */
+extern char    *bp;            /* pointer into ebuf for pgetent() */
+extern char    *name;          /* program name */
+extern char    *printer;       /* printer name */
+extern char    host[32];       /* host machine name */
+extern char    *from;          /* client's machine name */
+extern int     errno;
+
+/*
+ * Structure used for building a sorted list of control files.
+ */
+struct queue {
+       time_t  q_time;                 /* modification time */
+       char    q_name[MAXNAMLEN+1];    /* control file name */
+};
+
+char   *pgetstr();
+char   *malloc();
+char   *getenv();
+char   *index();
+char   *rindex();