Deleted Added
full compact
cmds.c (98278) cmds.c (98279)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

38 The Regents of the University of California. All rights reserved.\n";
39#endif /* not lint */
40
41#ifndef lint
42/*
43static char sccsid[] = "@(#)cmds.c 8.2 (Berkeley) 4/28/95";
44*/
45static const char rcsid[] =
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

38 The Regents of the University of California. All rights reserved.\n";
39#endif /* not lint */
40
41#ifndef lint
42/*
43static char sccsid[] = "@(#)cmds.c 8.2 (Berkeley) 4/28/95";
44*/
45static const char rcsid[] =
46 "$FreeBSD: head/usr.sbin/lpr/lpc/cmds.c 98278 2002-06-16 01:43:29Z gad $";
46 "$FreeBSD: head/usr.sbin/lpr/lpc/cmds.c 98279 2002-06-16 01:51:37Z gad $";
47#endif /* not lint */
48
49/*
50 * lpc -- line printer control program -- commands:
51 */
52
53#include <sys/param.h>
54#include <sys/time.h>

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

687
688/*
689 * Remove all spool files and temporaries from the spooling area.
690 * Or, perhaps:
691 * Remove incomplete jobs from spooling area.
692 */
693
694void
47#endif /* not lint */
48
49/*
50 * lpc -- line printer control program -- commands:
51 */
52
53#include <sys/param.h>
54#include <sys/time.h>

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

687
688/*
689 * Remove all spool files and temporaries from the spooling area.
690 * Or, perhaps:
691 * Remove incomplete jobs from spooling area.
692 */
693
694void
695init_clean(int argc, char *argv[])
695clean_gi(int argc, char *argv[])
696{
697
698 /* init some fields before 'clean' is called for each queue */
699 cln_queuecnt = 0;
700 cln_now = time(NULL);
701 cln_minage = 3600.0; /* only delete files >1h old */
702 cln_filecnt = 0;
703 cln_sizecnt = 0;

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

718 generic_initerr = 1;
719 }
720 }
721
722 return;
723}
724
725void
696{
697
698 /* init some fields before 'clean' is called for each queue */
699 cln_queuecnt = 0;
700 cln_now = time(NULL);
701 cln_minage = 3600.0; /* only delete files >1h old */
702 cln_filecnt = 0;
703 cln_sizecnt = 0;

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

718 generic_initerr = 1;
719 }
720 }
721
722 return;
723}
724
725void
726init_tclean(int argc, char *argv[])
726tclean_gi(int argc, char *argv[])
727{
728
729 /* only difference between 'clean' and 'tclean' is one value */
730 /* (...and the fact that 'clean' is priv and 'tclean' is not) */
727{
728
729 /* only difference between 'clean' and 'tclean' is one value */
730 /* (...and the fact that 'clean' is priv and 'tclean' is not) */
731 init_clean(argc, argv);
731 clean_gi(argc, argv);
732 cln_testonly = 1;
733
734 return;
735}
736
737void
738clean_q(struct printer *pp)
739{

--- 927 unchanged lines hidden ---
732 cln_testonly = 1;
733
734 return;
735}
736
737void
738clean_q(struct printer *pp)
739{

--- 927 unchanged lines hidden ---