Deleted Added
full compact
lp.h (15703) lp.h (28621)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)lp.h 8.2 (Berkeley) 4/28/95
34 */
35
36
37/*
38 * Global definitions for the line printer system.
39 */
40
41extern char *AF; /* accounting file */
42extern long BR; /* baud rate if lp is a tty */
43extern char *CF; /* name of cifplot filter (per job) */
44extern char *DF; /* name of tex filter (per job) */
45extern long DU; /* daeomon user-id */
46extern char *FF; /* form feed string */
47extern char *GF; /* name of graph(1G) filter (per job) */
48extern long HL; /* print header last */
49extern char *IF; /* name of input filter (created per job) */
50extern char *LF; /* log file for error messages */
51extern char *LO; /* lock file name */
52extern char *LP; /* line printer device name */
53extern long MC; /* maximum number of copies allowed */
54extern long MX; /* maximum number of blocks to copy */
55extern char *NF; /* name of ditroff(1) filter (per job) */
56extern char *OF; /* name of output filter (created once) */
57extern long PL; /* page length */
58extern long PW; /* page width */
59extern long PX; /* page width in pixels */
60extern long PY; /* page length in pixels */
61extern char *RF; /* name of fortran text filter (per job) */
62extern char *RG; /* restricted group */
63extern char *RM; /* remote machine name */
64extern char *RP; /* remote printer name */
65extern long RS; /* restricted to those with local accounts */
66extern long RW; /* open LP for reading and writing */
67extern long SB; /* short banner instead of normal header */
68extern long SC; /* suppress multiple copies */
69extern char *SD; /* spool directory */
70extern long SF; /* suppress FF on each print job */
71extern long SH; /* suppress header page */
72extern char *ST; /* status file name */
73extern char *TF; /* name of troff(1) filter (per job) */
74extern char *TR; /* trailer string to be output when Q empties */
75extern char *MS; /* mode set, a la stty */
76extern char *VF; /* name of raster filter (per job) */
77
78extern char line[BUFSIZ];
79extern char *bp; /* pointer into printcap buffer */
80extern char *name; /* program name */
81extern char *printer; /* printer name */
82 /* host machine name */
83extern char host[MAXHOSTNAMELEN];
84extern char *from; /* client's machine name */
85extern int remote; /* true if sending files to a remote host */
86extern char *printcapdb[]; /* printcap database array */
87
88extern int requ[]; /* job number of spool entries */
89extern int requests; /* # of spool requests */
90extern char *user[]; /* users to process */
91extern int users; /* # of users in user array */
92extern char *person; /* name of person doing lprm */
93extern char *name;
94
95
96/*
97 * Structure used for building a sorted list of control files.
98 */
99struct queue {
100 time_t q_time; /* modification time */
101 char q_name[MAXNAMLEN+1]; /* control file name */
102};
103
104#include <sys/cdefs.h>
105
106__BEGIN_DECLS
107struct dirent;
108
109void blankfill __P((int));
110char *checkremote __P((void));
111int chk __P((char *));
112void displayq __P((int));
113void dump __P((char *, char *, int));
114void fatal __P((const char *, ...));
115int getline __P((FILE *));
116int getport __P((char *, int));
117int getq __P((struct queue *(*[])));
118void header __P((void));
119void inform __P((char *));
120int inlist __P((char *, char *));
121int iscf __P((struct dirent *));
122int isowner __P((char *, char *));
123void ldump __P((char *, char *, int));
124int lockchk __P((char *));
125void prank __P((int));
126void process __P((char *));
127void rmjob __P((void));
128void rmremote __P((void));
129void show __P((char *, char *, int));
130int startdaemon __P((char *));
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software
14 * must display the following acknowledgement:
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)lp.h 8.2 (Berkeley) 4/28/95
34 */
35
36
37/*
38 * Global definitions for the line printer system.
39 */
40
41extern char *AF; /* accounting file */
42extern long BR; /* baud rate if lp is a tty */
43extern char *CF; /* name of cifplot filter (per job) */
44extern char *DF; /* name of tex filter (per job) */
45extern long DU; /* daeomon user-id */
46extern char *FF; /* form feed string */
47extern char *GF; /* name of graph(1G) filter (per job) */
48extern long HL; /* print header last */
49extern char *IF; /* name of input filter (created per job) */
50extern char *LF; /* log file for error messages */
51extern char *LO; /* lock file name */
52extern char *LP; /* line printer device name */
53extern long MC; /* maximum number of copies allowed */
54extern long MX; /* maximum number of blocks to copy */
55extern char *NF; /* name of ditroff(1) filter (per job) */
56extern char *OF; /* name of output filter (created once) */
57extern long PL; /* page length */
58extern long PW; /* page width */
59extern long PX; /* page width in pixels */
60extern long PY; /* page length in pixels */
61extern char *RF; /* name of fortran text filter (per job) */
62extern char *RG; /* restricted group */
63extern char *RM; /* remote machine name */
64extern char *RP; /* remote printer name */
65extern long RS; /* restricted to those with local accounts */
66extern long RW; /* open LP for reading and writing */
67extern long SB; /* short banner instead of normal header */
68extern long SC; /* suppress multiple copies */
69extern char *SD; /* spool directory */
70extern long SF; /* suppress FF on each print job */
71extern long SH; /* suppress header page */
72extern char *ST; /* status file name */
73extern char *TF; /* name of troff(1) filter (per job) */
74extern char *TR; /* trailer string to be output when Q empties */
75extern char *MS; /* mode set, a la stty */
76extern char *VF; /* name of raster filter (per job) */
77
78extern char line[BUFSIZ];
79extern char *bp; /* pointer into printcap buffer */
80extern char *name; /* program name */
81extern char *printer; /* printer name */
82 /* host machine name */
83extern char host[MAXHOSTNAMELEN];
84extern char *from; /* client's machine name */
85extern int remote; /* true if sending files to a remote host */
86extern char *printcapdb[]; /* printcap database array */
87
88extern int requ[]; /* job number of spool entries */
89extern int requests; /* # of spool requests */
90extern char *user[]; /* users to process */
91extern int users; /* # of users in user array */
92extern char *person; /* name of person doing lprm */
93extern char *name;
94
95
96/*
97 * Structure used for building a sorted list of control files.
98 */
99struct queue {
100 time_t q_time; /* modification time */
101 char q_name[MAXNAMLEN+1]; /* control file name */
102};
103
104#include <sys/cdefs.h>
105
106__BEGIN_DECLS
107struct dirent;
108
109void blankfill __P((int));
110char *checkremote __P((void));
111int chk __P((char *));
112void displayq __P((int));
113void dump __P((char *, char *, int));
114void fatal __P((const char *, ...));
115int getline __P((FILE *));
116int getport __P((char *, int));
117int getq __P((struct queue *(*[])));
118void header __P((void));
119void inform __P((char *));
120int inlist __P((char *, char *));
121int iscf __P((struct dirent *));
122int isowner __P((char *, char *));
123void ldump __P((char *, char *, int));
124int lockchk __P((char *));
125void prank __P((int));
126void process __P((char *));
127void rmjob __P((void));
128void rmremote __P((void));
129void show __P((char *, char *, int));
130int startdaemon __P((char *));
131void warn __P((void));
132void delay __P((int));
133__END_DECLS
131void delay __P((int));
132__END_DECLS