Deleted Added
full compact
lp.h (70098) lp.h (78146)
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

--- 17 unchanged lines hidden (view full) ---

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 * From: @(#)lp.h 8.2 (Berkeley) 4/28/95
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

--- 17 unchanged lines hidden (view full) ---

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 * From: @(#)lp.h 8.2 (Berkeley) 4/28/95
34 * $FreeBSD: head/usr.sbin/lpr/common_source/lp.h 70098 2000-12-16 18:06:09Z ume $
34 * $FreeBSD: head/usr.sbin/lpr/common_source/lp.h 78146 2001-06-12 16:38:20Z gad $
35 */
36
37#include <sys/queue.h>
38#include <time.h>
39#include <netdb.h>
40
41/*
42 * All this information used to be in global static variables shared

--- 105 unchanged lines hidden (view full) ---

148 int njobids; /* length of following list... */
149 struct req_jobid_head jobids; /* list of jobids to query/delete */
150};
151
152/*
153 * Global definitions for the line printer system.
154 */
155extern char line[BUFSIZ];
35 */
36
37#include <sys/queue.h>
38#include <time.h>
39#include <netdb.h>
40
41/*
42 * All this information used to be in global static variables shared

--- 105 unchanged lines hidden (view full) ---

148 int njobids; /* length of following list... */
149 struct req_jobid_head jobids; /* list of jobids to query/delete */
150};
151
152/*
153 * Global definitions for the line printer system.
154 */
155extern char line[BUFSIZ];
156extern char *name; /* program name */
156extern const char *name; /* program name */
157 /* host machine name */
158extern char host[MAXHOSTNAMELEN];
159extern char *from; /* client's machine name */
160extern char from_ip[NI_MAXHOST]; /* client machine's IP address */
161
162extern int requ[]; /* job number of spool entries */
163extern int requests; /* # of spool requests */
164extern char *user[]; /* users to process */

--- 51 unchanged lines hidden (view full) ---

216#define CMD_SHOWQ_LONG '\4'
217#define CMD_RMJOB '\5'
218
219#include <sys/cdefs.h>
220
221__BEGIN_DECLS
222struct dirent;
223
157 /* host machine name */
158extern char host[MAXHOSTNAMELEN];
159extern char *from; /* client's machine name */
160extern char from_ip[NI_MAXHOST]; /* client machine's IP address */
161
162extern int requ[]; /* job number of spool entries */
163extern int requests; /* # of spool requests */
164extern char *user[]; /* users to process */

--- 51 unchanged lines hidden (view full) ---

216#define CMD_SHOWQ_LONG '\4'
217#define CMD_RMJOB '\5'
218
219#include <sys/cdefs.h>
220
221__BEGIN_DECLS
222struct dirent;
223
224void blankfill __P((int));
225char *checkremote __P((struct printer *pp));
226int chk __P((char *));
227void closeallfds __P((int start));
228void delay __P((int));
229void displayq __P((struct printer *pp, int format));
230void dump __P((char *, char *, int));
231void fatal __P((const struct printer *pp, const char *fmp, ...));
232int firstprinter __P((struct printer *pp, int *status));
233void free_printer __P((struct printer *pp));
234void free_request __P((struct request *rp));
235int getline __P((FILE *));
236int getport __P((const struct printer *pp, const char *, int));
237int getprintcap __P((const char *printer, struct printer *pp));
238int getq __P((const struct printer *, struct jobqueue *(*[])));
239void header __P((void));
240void inform __P((const struct printer *pp, char *cf));
241void init_printer __P((struct printer *pp));
242void init_request __P((struct request *rp));
243int inlist __P((char *, char *));
244int iscf __P((struct dirent *));
245int isowner __P((char *, char *));
246void ldump __P((char *, char *, int));
247void lastprinter __P((void));
248int lockchk __P((struct printer *pp, char *));
249char *lock_file_name __P((const struct printer *pp, char *buf, size_t len));
250void lpd_gettime __P((struct timespec *_tsp, char *_strp, int _strsize));
251int nextprinter __P((struct printer *pp, int *status));
224void blankfill(int _tocol);
225char *checkremote(struct printer *_pp);
226int chk(char *_file);
227void closeallfds(int _start);
228void delay(int _millisec);
229void displayq(struct printer *_pp, int _format);
230void dump(const char *_nfile, const char *_datafile, int _copies);
231void fatal(const struct printer *_pp, const char *_msg, ...);
232int firstprinter(struct printer *_pp, int *_error);
233void free_printer(struct printer *_pp);
234void free_request(struct request *_rp);
235int getline(FILE *_cfp);
236int getport(const struct printer *_pp, const char *_rhost, int _rport);
237int getprintcap(const char *_printer, struct printer *_pp);
238int getq(const struct printer *_pp, struct jobqueue *(*_namelist[]));
239void header(void);
240void inform(const struct printer *_pp, char *_cf);
241void init_printer(struct printer *_pp);
242void init_request(struct request *_rp);
243int inlist(char *_uname, char *_cfile);
244int iscf(struct dirent *_d);
245int isowner(char *_owner, char *_file);
246void ldump(const char *_nfile, const char *_datafile, int _copies);
247void lastprinter(void);
248int lockchk(struct printer *_pp, char *_slockf);
249char *lock_file_name(const struct printer *_pp, char *_buf, size_t _len);
250void lpd_gettime(struct timespec *_tsp, char *_strp, int _strsize);
251int nextprinter(struct printer *_pp, int *_error);
252const
252const
253char *pcaperr __P((int error));
254void prank __P((int));
255void process __P((const struct printer *pp, char *));
256void rmjob __P((const char *printer));
257void rmremote __P((const struct printer *pp));
258void setprintcap __P((char *newprintcap));
259void show __P((char *, char *, int));
260int startdaemon __P((const struct printer *pp));
261char *status_file_name __P((const struct printer *pp, char *buf,
262 size_t len));
263void trstat_init __P((struct printer *pp, const char *fname, int filenum));
264void trstat_write __P((struct printer *pp, tr_sendrecv sendrecv,
265 size_t bytecnt, const char *userid,
266 const char *otherhost, const char *orighost));
267ssize_t writel __P((int s, ...));
253char *pcaperr(int _error);
254void prank(int _n);
255void process(const struct printer *_pp, char *_file);
256void rmjob(const char *_printer);
257void rmremote(const struct printer *_pp);
258void setprintcap(char *_newfile);
259void show(const char *_nfile, const char *_datafile, int _copies);
260int startdaemon(const struct printer *_pp);
261char *status_file_name(const struct printer *_pp, char *_buf,
262 size_t _len);
263void trstat_init(struct printer *_pp, const char *_fname, int _filenum);
264void trstat_write(struct printer *_pp, tr_sendrecv _sendrecv,
265 size_t _bytecnt, const char *_userid, const char *_otherhost,
266 const char *_orighost);
267ssize_t writel(int _strm, ...);
268__END_DECLS
268__END_DECLS