?? cmdtab.c
字號:
#ifndef lintstatic char *sccsid = "@(#)cmdtab.c 4.1 ULTRIX 7/2/90";#endif/************************************************************************ * * * Copyright (c) 1988 by * * Digital Equipment Corporation, Maynard, MA * * All rights reserved. * * * * This software is furnished under a license and may be used and * * copied only in accordance with the terms of such license and * * with the inclusion of the above copyright notice. This * * software or any other copies thereof may not be provided or * * otherwise made available to any other person. No title to and * * ownership of the software is hereby transferred. * * * * This software is derived from software received from the * * University of California, Berkeley, and from Bell * * Laboratories. Use, duplication, or disclosure is subject to * * restrictions under license agreements with University of * * California and with AT&T. * * * * The information in this software is subject to change without * * notice and should not be construed as a commitment by Digital * * Equipment Corporation. * * * * Digital assumes no responsibility for the use or reliability * * of its software on equipment which is not supplied by Digital. * * * ************************************************************************//* * lpc -- command tables *//* SCCS history beginning * *************************************************************** * -- Revision History -- * *************************************************************** * * 1.1 01/11/83 -- sccs * date and time created 83/11/01 20:53:55 by sccs * * *************************************************************** * * 1.2 11/07/88 -- thoms * Added copyright notice * * SCCS history end */#include "lpc.h"int abort(), clean(), enable(), disable(), help();int quit(), restart(), start(), status(), stop();int topq();char aborthelp[] = "terminate a spooling daemon immediately and disable printing";char cleanhelp[] = "remove cruft files from a queue";char enablehelp[] = "turn a spooling queue on";char disablehelp[] = "turn a spooling queue off";char helphelp[] = "get help on commands";char quithelp[] = "exit lpc";char restarthelp[] = "restart a spooling daemon that has died";char starthelp[] = "enable printing and start a spooling daemon";char statushelp[] = "show status of daemon";char stophelp[] = "stop a spooling daemon after current job completes and disable printing";char topqhelp[] = "put job at top of printer queue";struct cmd cmdtab[] = { { "abort", aborthelp, abort, 1 }, { "clean", cleanhelp, clean, 1 }, { "enable", enablehelp, enable, 1 }, { "exit", quithelp, quit, 0 }, { "disable", disablehelp, disable, 1 }, { "help", helphelp, help, 0 }, { "quit", quithelp, quit, 0 }, { "restart", restarthelp, restart, 0 }, { "start", starthelp, start, 1 }, { "status", statushelp, status, 0 }, { "stop", stophelp, stop, 1 }, { "topq", topqhelp, topq, 1 }, { "?", helphelp, help, 0 }, { 0 },};int NCMDS = sizeof (cmdtab) / sizeof (cmdtab[0]);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -