CVS log for src/usr.sbin/lpr/lpc/cmdtab.c
Up to [FreeBSD] / src / usr.sbin / lpr / lpc
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.12.2.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 04:20:22 2011 UTC (2 months, 4 weeks ago) by kensmith
Branches: RELENG_9_0
CVS tags: RELENG_9_0_0_RELEASE
Diff to: previous 1.12.2.1: preferred, colored
Changes since revision 1.12.2.1: +0 -0 lines
SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 23 00:51:37 2011 UTC (4 months, 2 weeks ago) by kensmith
Branches: RELENG_9
CVS tags: RELENG_9_0_BP
Branch point for: RELENG_9_0
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +0 -0 lines
SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith Copy head to stable/9 as part of 9.0-RELEASE release cycle. Approved by: re (implicit)
Revision 1.11.36.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:10:29 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_7_4
CVS tags: RELENG_7_4_0_RELEASE
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +0 -0 lines
SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release. Approved by: re (implicit)
Revision 1.11.32.1.6.1: download - view: text, markup, annotated - select for diffs
Tue Dec 21 17:09:25 2010 UTC (13 months, 2 weeks ago) by kensmith
Branches: RELENG_8_2
CVS tags: RELENG_8_2_0_RELEASE
Diff to: previous 1.11.32.1: preferred, colored; next MAIN 1.11.34.1: preferred, colored
Changes since revision 1.11.32.1: +0 -0 lines
SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release. Approved by: re (implicit)
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Dec 11 09:38:12 2010 UTC (13 months, 4 weeks ago) by joel
Branches: MAIN
CVS tags: RELENG_9_BP, HEAD
Branch point for: RELENG_9
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +0 -4 lines
SVN rev 216372 on 2010-12-11 09:38:12Z by joel Remove the advertising clause from UCB copyrighted files in usr.sbin. This is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Revision 1.11.32.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 14 02:09:06 2010 UTC (19 months, 4 weeks ago) by kensmith
Branches: RELENG_8_1
CVS tags: RELENG_8_1_0_RELEASE
Diff to: previous 1.11.32.1: preferred, colored; next MAIN 1.11.34.1: preferred, colored
Changes since revision 1.11.32.1: +0 -0 lines
SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith Copy stable/8 to releng/8.1 in preparation for 8.1-RC1. Approved by: re (implicit)
Revision 1.11.34.1: download - view: text, markup, annotated - select for diffs
Wed Feb 10 00:26:20 2010 UTC (2 years ago) by kensmith
Branches: RELENG_7_3
CVS tags: RELENG_7_3_0_RELEASE
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +0 -0 lines
SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process. Approved by: re (implicit)
Revision 1.11.32.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 25 01:10:29 2009 UTC (2 years, 3 months ago) by kensmith
Branches: RELENG_8_0
CVS tags: RELENG_8_0_0_RELEASE
Diff to: previous 1.11.32.1: preferred, colored; next MAIN 1.11.34.1: preferred, colored
Changes since revision 1.11.32.1: +0 -0 lines
SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure. Approved by: re (implicit)
Revision 1.11.32.1: download - view: text, markup, annotated - select for diffs
Mon Aug 3 08:13:06 2009 UTC (2 years, 6 months ago) by kensmith
Branches: RELENG_8
CVS tags: RELENG_8_2_BP, RELENG_8_1_BP, RELENG_8_0_BP
Branch point for: RELENG_8_2, RELENG_8_1, RELENG_8_0
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +0 -0 lines
SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith Copy head to stable/8 as part of 8.0 Release cycle. Approved by: re (Implicit)
Revision 1.11.30.1: download - view: text, markup, annotated - select for diffs
Wed Apr 15 03:14:26 2009 UTC (2 years, 9 months ago) by kensmith
Branches: RELENG_7_2
CVS tags: RELENG_7_2_0_RELEASE
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +0 -0 lines
SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE. Approved by: re (implicit)
Revision 1.11.28.1: download - view: text, markup, annotated - select for diffs
Tue Nov 25 02:59:29 2008 UTC (3 years, 2 months ago) by kensmith
Branches: RELENG_7_1
CVS tags: RELENG_7_1_0_RELEASE
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +0 -0 lines
SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith Create releng/7.1 in preparation for moving into RC phase of 7.1 release cycle. Approved by: re (implicit)
Revision 1.11.26.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 02:57:24 2008 UTC (3 years, 4 months ago) by kensmith
Branches: RELENG_6_4
CVS tags: RELENG_6_4_0_RELEASE
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +0 -0 lines
SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith Create releng/6.4 from stable/6 in preparation for 6.4-RC1. Approved by: re (implicit)
Revision 1.3.2.8: download - view: text, markup, annotated - select for diffs
Thu Jul 31 00:43:09 2003 UTC (8 years, 6 months ago) by gad
Branches: RELENG_4
CVS tags: RELENG_4_9_BP, RELENG_4_9_0_RELEASE, RELENG_4_9, RELENG_4_11_BP, RELENG_4_11_0_RELEASE, RELENG_4_11, RELENG_4_10_BP, RELENG_4_10_0_RELEASE, RELENG_4_10
Diff to: previous 1.3.2.7: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.7: +4 -5 lines
MFC: all lpr/lpc/* changes to use __FBSDID(), and to fix 'sccsid' lines to consistently match style(9) guidelines.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Jul 14 22:24:28 2003 UTC (8 years, 6 months ago) by gad
Branches: MAIN
CVS tags: RELENG_8_BP, RELENG_7_BP, RELENG_7_4_BP, RELENG_7_3_BP, RELENG_7_2_BP, RELENG_7_1_BP, RELENG_7_0_BP, RELENG_7_0_0_RELEASE, RELENG_7_0, RELENG_7, RELENG_6_BP, RELENG_6_4_BP, RELENG_6_3_BP, RELENG_6_3_0_RELEASE, RELENG_6_3, RELENG_6_2_BP, RELENG_6_2_0_RELEASE, RELENG_6_2, RELENG_6_1_BP, RELENG_6_1_0_RELEASE, RELENG_6_1, RELENG_6_0_BP, RELENG_6_0_0_RELEASE, RELENG_6_0, RELENG_6, RELENG_5_BP, RELENG_5_5_BP, RELENG_5_5_0_RELEASE, RELENG_5_5, RELENG_5_4_BP, RELENG_5_4_0_RELEASE, RELENG_5_4, RELENG_5_3_BP, RELENG_5_3_0_RELEASE, RELENG_5_3, RELENG_5_2_BP, RELENG_5_2_1_RELEASE, RELENG_5_2_0_RELEASE, RELENG_5_2, RELENG_5
Branch point for: RELENG_8, RELENG_7_4, RELENG_7_3, RELENG_7_2, RELENG_7_1, RELENG_6_4
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -5 lines
More changes to use __FBSDID() for setting rcsids, and fix the format of 'sccsid' lines so they consistently match style(9) guidelines. Note that this means you will have to add '-a' to the 'strings' command when searching for rcs ids, eg: strings -a /usr/sbin/lpc | grep '$FreeBSD' Reviewed by: discussed on cvs-src & with bde and obrien MFC after: 15 days
Revision 1.3.2.7: download - view: text, markup, annotated - select for diffs
Fri Jul 26 03:12:07 2002 UTC (9 years, 6 months ago) by gad
Branches: RELENG_4
CVS tags: RELENG_4_8_BP, RELENG_4_8_0_RELEASE, RELENG_4_8, RELENG_4_7_BP, RELENG_4_7_0_RELEASE, RELENG_4_7
Diff to: previous 1.3.2.6: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.6: +5 -2 lines
MFC *: Changes which rewrite 'lpc topq', and which add 'lpc bottomq'. More details on the new 'lpc topq' are in the log message for revision 1.2 of lpc/movejobs.c. The previous implementation of 'lpc topq' is available as 'lpc xtopq', in case there are any problems noticed in the new implementation. [* = 1.10 common_source/Makefile, 1.1->1.2 matchjobs.c, 1.1 matchjobs.h, 1.12 lpc/Makefile, 1.10 cmdtab.c, 1.11 extern.h, 1.20 lpc.8, 1.26 lpc.c, 1.1 movejobs.c]
Revision 1.3.2.6: download - view: text, markup, annotated - select for diffs
Thu Jul 25 23:29:39 2002 UTC (9 years, 6 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.3.2.5: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.5: +0 -8 lines
MFC *: Remove the backup-versions ("x*") of various lpc commands that were
recently rewritten. No problems have been reported with the new versions.
[* = 1.30 cmds.c, 1.9 cmdtab.c, 1.10 extern.h]
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Jul 17 00:51:19 2002 UTC (9 years, 6 months ago) by gad
Branches: MAIN
CVS tags: RELENG_5_1_BP, RELENG_5_1_0_RELEASE, RELENG_5_1, RELENG_5_0_BP, RELENG_5_0_0_RELEASE, RELENG_5_0
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -2 lines
Changes which rewrite 'lpc topq', and which add 'lpc bottomq'. These reflect much valuable feedback from wollman. More details on the new 'lpc topq' are in the log message for revision 1.2 of lpc/movejobs.c. The previous implementation of 'lpc topq' is available as 'lpc xtopq', in case there are any problems noticed in the new implementation. If there are no problems with this version, a later update will remove the 'lpc xtopq' command. Reviewed by: freebsd-print@bostonradio.org MFC after: 6 days
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Jul 2 02:48:21 2002 UTC (9 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +0 -8 lines
Remove the backup-versions ("x*") of various lpc commands that were
recently rewritten. No one in -current has reported any problems with
the newer versions.
MFC after: 3 weeks
Revision 1.3.2.5: download - view: text, markup, annotated - select for diffs
Tue Jun 25 23:11:18 2002 UTC (9 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.3.2.4: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.4: +2 -2 lines
MFC *: Just rename two generic-queue init routines from 'init_*' to '*_gi'. [* = 1.29 cmds.c, 1.8 cmdtab.c, 1.9 extern.h]
Revision 1.3.2.4: download - view: text, markup, annotated - select for diffs
Tue Jun 25 23:08:36 2002 UTC (9 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.3.2.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.3: +2 -1 lines
MFC *: Add a nearly complete rewrite of the lpc command 'down'. The only user-visible change should be that more than one queue can now be specified, if one uses the '-msg' parameter to separate the list of queues from the status message to set. The previous implementation of 'down' remains available as the command 'xdown', available for instant fallback if there seems to be anything wrong with the new one. If no one reports a problem after a few weeks, then a later update will remove 'xdown'.
Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Tue Jun 25 22:55:07 2002 UTC (9 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.2: +6 -1 lines
MFC *: Add a new command to 'lpc' called 'setstatus', which would be used to change the status message of a print queue. [* = 1.26 cmds.c, 1.6 cmdtab.c, 1.7 extern.h, 1.16 lpc.8, 1.25 lpc.c, 1.5 lpc.h]
Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 22 22:11:34 2002 UTC (9 years, 7 months ago) by gad
Branches: RELENG_4
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +15 -8 lines
MFC *: Almost complete rewrite of the lpc commands 'abort', 'enable', 'disable', 'restart', 'start', 'stop' and 'up'. This reduces the amount of code that is run as the priv userid, and eliminates some cases where error messages were written while that priv uid was in effect. As far as users are concerned, there should be no noticable difference in the new versions. In case there *is*, the previous implementations are still there as 'xabort', 'xenable', etc, so they are available for instant fallback. If no one reports a problem after a few weeks, then a later update will remove those x-commands. [* = 1.26->1.28 common.c, 1.21 lp.h, 1.25 cmds.c, 1.5 cmdtab.c, 1.6 extern.h]
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Jun 16 01:51:37 2002 UTC (9 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
Just rename two generic-queue init routines from 'init_*' to '*_gi'
("gi" short for 'generic init'...).
MFC after: 10 days
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jun 16 01:43:29 2002 UTC (9 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +2 -1 lines
Add a nearly complete rewrite of the lpc command 'down'. The only user- visible change should be that more than one queue can now be specified, if one uses the '-msg' parameter to separate the list of queues from the status message to set. The previous implementation of 'down' remains available as the command 'xdown', available for instant fallback if there seems to be anything wrong with the new one. If no one reports a problem after a few weeks, then a later update will remove 'xdown'. Reviewed by: freebsd-print@bostonradio.org MFC after: 10 days
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat Jun 15 22:51:58 2002 UTC (9 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -1 lines
Add a new command to 'lpc' called 'setstatus', which would be used to change the status message of a print queue. This includes some minor changes to the upstat() routine, so that error messages are not printed while seteuid(priv-user). Reviewed by: freebsd-audit and freebsd-print@bostonradio.org MFC after: 10 days
Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Jun 13 01:55:48 2002 UTC (9 years, 8 months ago) by gad
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +15 -8 lines
Almost complete rewrite of the lpc commands 'abort', 'enable', 'disable', 'restart', 'start', 'stop' and 'up'. These are commands which mainly just alter the access bits on the lock-file of a queue, and they all now use a central routine to do that. This reduces the amount of code that is run as the priv userid, and eliminates a number of cases where error messages were written while that priv uid was in effect. As far as users are concerned, there should be no noticable difference in the new versions. In case there *is*, the previous implementations are still there as 'xabort', 'xenable', etc, so they are available for instant fallback. If no one reports a problem after a few weeks, then a later update will remove those x-commands. Reviewed by: freebsd-audit and freebsd-print@bostonradio.org MFC after: 10 days
Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 23:44:48 2001 UTC (10 years, 7 months ago) by gad
Branches: RELENG_4
CVS tags: RELENG_4_6_BP, RELENG_4_6_2_RELEASE, RELENG_4_6_1_RELEASE, RELENG_4_6_0_RELEASE, RELENG_4_6, RELENG_4_5_BP, RELENG_4_5_0_RELEASE, RELENG_4_5, RELENG_4_4_BP, RELENG_4_4_0_RELEASE, RELENG_4_4
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +21 -17 lines
...[MFC] Make 'lpc clean' somewhat safer, and have it look for 'core' files in spool directories. Also add the 'lpc tclean' command, which shows what a 'lpc clean' command would do without removing any files. Also adds a summary line to 'lpc clean' and 'lpc tclean'. [1.17 cmds.c, 1.4 cmdtab.c, 1.5 extern.h, 1.13 lpc.8, 1.19 lpc.c, 1.4 lpc.h]
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Jun 25 02:05:03 2001 UTC (10 years, 7 months ago) by gad
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +21 -17 lines
Make 'lpc clean' somewhat safer. Add an 'lpc tclean' command, which allows one to see what files would be removed *if* an 'lpc clean' is done. 'tclean' will remove no files, and is therefore not a privileged command. Also, both 'lpc clean' and 'lpc tclean' will now look for 'core' files in spool directories (but not remove them). They also print out an extra line of info when a datafile to be removed is a symlink (from 'lpr -s'), saying what file it is a symlink to. The 'lpc clean' commands also now print out a summary line saying how many queues were checked, how many files were removed (or "would be" removed, for tclean), and how much disk space is involved. For the benefit of those who have many print queues, 'lpc clean all' will only print out the names of print queues where some "interesting" files were found, instead of printing out a header-line for every queue in your printcap file. Reviewed by: freebsd-print@bostonradio.org freebsd-audit@FreeBSD.org MFC after: 2 weeks
Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 29 15:43:19 1999 UTC (12 years, 5 months ago) by peter
Branches: RELENG_3
CVS tags: RELENG_3_5_0_RELEASE, RELENG_3_4_0_RELEASE, RELENG_3_3_0_RELEASE
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Aug 28 01:16:51 1999 UTC (12 years, 5 months ago) by peter
Branches: MAIN
CVS tags: RELENG_4_BP, RELENG_4_3_BP, RELENG_4_3_0_RELEASE, RELENG_4_3, RELENG_4_2_0_RELEASE, RELENG_4_1_1_RELEASE, RELENG_4_1_0_RELEASE, RELENG_4_0_0_RELEASE, PRE_SMPNG
Branch point for: RELENG_4
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -1 lines
$Id$ -> $FreeBSD$
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Dec 2 20:45:39 1997 UTC (14 years, 2 months ago) by wollman
Branches: MAIN
CVS tags: RELENG_3_BP, RELENG_3_2_PAO_BP, RELENG_3_2_PAO, RELENG_3_2_0_RELEASE, RELENG_3_1_0_RELEASE, RELENG_3_0_0_RELEASE
Branch point for: RELENG_3
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +13 -9 lines
Mega lpd/lpd upgrade, part I: - Get rid of a lot of the static variables which were shared by many routines and programs in the suite. - Create an abstract interface to the printcap database, so that other retrieval and iteration mechanisms could be developed (e.g., YP, Hesiod, or automatic retrieval from a trusted server). - Give each capability a human-readable name in addition to the historic two-character one. - Otherwise generally clean up a lot of dark corners. Many still remain. - When submitting jobs, use the official login name record (from getlogin()) if there is one, rather than reverse-mapping the uid. More to come...
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu May 26 05:21:56 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: CSRG
CVS tags: bsd_44_lite_2, bsd_44_lite, RELENG_2_2_BP, RELENG_2_2_8_RELEASE, RELENG_2_2_7_RELEASE, RELENG_2_2_6_RELEASE, RELENG_2_2_5_RELEASE, RELENG_2_2_2_RELEASE, RELENG_2_2_1_RELEASE, RELENG_2_2_0_RELEASE, RELENG_2_2, RELENG_2_1_7_RELEASE, RELENG_2_1_6_RELEASE, RELENG_2_1_6_1_RELEASE, RELENG_2_1_5_RELEASE, RELENG_2_1_0_RELEASE, RELENG_2_1_0_BP, RELENG_2_1_0, RELENG_2_0_5_RELEASE, RELENG_2_0_5_BP, RELENG_2_0_5_ALPHA, RELENG_2_0_5, RELEASE_2_0, BETA_2_0, ALPHA_2_0
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
BSD 4.4 Lite usr.sbin Sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu May 26 05:21:55 1994 UTC (17 years, 8 months ago) by rgrimes
Branches: MAIN
Initial revision
