Annotation of 42BSD/usr.lib/lpr/lp.h, revision 1.1

1.1     ! root        1: /*     lp.h    4.6     83/07/01        */
        !             2: /*
        !             3:  * Global definitions for the line printer system.
        !             4:  */
        !             5: 
        !             6: #include <stdio.h>
        !             7: #include <sys/types.h>
        !             8: #include <sys/file.h>
        !             9: #include <sys/dir.h>
        !            10: #include <sys/stat.h>
        !            11: #include <sys/socket.h>
        !            12: #include <sys/un.h>
        !            13: #include <netinet/in.h>
        !            14: #include <netdb.h>
        !            15: #include <pwd.h>
        !            16: #include <signal.h>
        !            17: #include <sys/wait.h>
        !            18: #include <sgtty.h>
        !            19: #include <ctype.h>
        !            20: #include <errno.h>
        !            21: #include "lp.local.h"
        !            22: 
        !            23: extern int     DU;             /* daeomon user-id */
        !            24: extern int     MX;             /* maximum number of blocks to copy */
        !            25: extern int     MC;             /* maximum number of copies allowed */
        !            26: extern char    *LP;            /* line printer device name */
        !            27: extern char    *RM;            /* remote machine name */
        !            28: extern char    *RP;            /* remote printer name */
        !            29: extern char    *LO;            /* lock file name */
        !            30: extern char    *ST;            /* status file name */
        !            31: extern char    *SD;            /* spool directory */
        !            32: extern char    *AF;            /* accounting file */
        !            33: extern char    *LF;            /* log file for error messages */
        !            34: extern char    *OF;            /* name of output filter (created once) */
        !            35: extern char    *IF;            /* name of input filter (created per job) */
        !            36: extern char    *RF;            /* name of fortran text filter (per job) */
        !            37: extern char    *TF;            /* name of troff(1) filter (per job) */
        !            38: extern char    *NF;            /* name of ditroff(1) filter (per job) */
        !            39: extern char    *DF;            /* name of tex filter (per job) */
        !            40: extern char    *GF;            /* name of graph(1G) filter (per job) */
        !            41: extern char    *VF;            /* name of raster filter (per job) */
        !            42: extern char    *CF;            /* name of cifplot filter (per job) */
        !            43: extern char    *FF;            /* form feed string */
        !            44: extern char    *TR;            /* trailer string to be output when Q empties */
        !            45: extern short   SC;             /* suppress multiple copies */
        !            46: extern short   SF;             /* suppress FF on each print job */
        !            47: extern short   SH;             /* suppress header page */
        !            48: extern short   SB;             /* short banner instead of normal header */
        !            49: extern short   RW;             /* open LP for reading and writing */
        !            50: extern short   PW;             /* page width */
        !            51: extern short   PX;             /* page width in pixels */
        !            52: extern short   PY;             /* page length in pixels */
        !            53: extern short   PL;             /* page length */
        !            54: extern short   BR;             /* baud rate if lp is a tty */
        !            55: extern int     FC;             /* flags to clear if lp is a tty */
        !            56: extern int     FS;             /* flags to set if lp is a tty */
        !            57: extern int     XC;             /* flags to clear for local mode */
        !            58: extern int     XS;             /* flags to set for local mode */
        !            59: extern short   RS;             /* restricted to those with local accounts */
        !            60: 
        !            61: extern char    line[BUFSIZ];
        !            62: extern char    pbuf[];         /* buffer for printcap entry */
        !            63: extern char    *bp;            /* pointer into ebuf for pgetent() */
        !            64: extern char    *name;          /* program name */
        !            65: extern char    *printer;       /* printer name */
        !            66: extern char    host[32];       /* host machine name */
        !            67: extern char    *from;          /* client's machine name */
        !            68: extern int     errno;
        !            69: 
        !            70: /*
        !            71:  * Structure used for building a sorted list of control files.
        !            72:  */
        !            73: struct queue {
        !            74:        time_t  q_time;                 /* modification time */
        !            75:        char    q_name[MAXNAMLEN+1];    /* control file name */
        !            76: };
        !            77: 
        !            78: char   *pgetstr();
        !            79: char   *malloc();
        !            80: char   *getenv();
        !            81: char   *index();
        !            82: char   *rindex();

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.