xref: /netbsd-src/external/bsd/top/dist/commands.h (revision 10dd2532a5fc0a73e461275cb9fca28fc3013d32)
1*10dd2532Schristos /*
2*10dd2532Schristos  * Copyright (c) 1984 through 2008, William LeFebvre
3*10dd2532Schristos  * All rights reserved.
4*10dd2532Schristos  *
5*10dd2532Schristos  * Redistribution and use in source and binary forms, with or without
6*10dd2532Schristos  * modification, are permitted provided that the following conditions are met:
7*10dd2532Schristos  *
8*10dd2532Schristos  *     * Redistributions of source code must retain the above copyright
9*10dd2532Schristos  * notice, this list of conditions and the following disclaimer.
10*10dd2532Schristos  *
11*10dd2532Schristos  *     * Redistributions in binary form must reproduce the above
12*10dd2532Schristos  * copyright notice, this list of conditions and the following disclaimer
13*10dd2532Schristos  * in the documentation and/or other materials provided with the
14*10dd2532Schristos  * distribution.
15*10dd2532Schristos  *
16*10dd2532Schristos  *     * Neither the name of William LeFebvre nor the names of other
17*10dd2532Schristos  * contributors may be used to endorse or promote products derived from
18*10dd2532Schristos  * this software without specific prior written permission.
19*10dd2532Schristos  *
20*10dd2532Schristos  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21*10dd2532Schristos  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22*10dd2532Schristos  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23*10dd2532Schristos  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24*10dd2532Schristos  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25*10dd2532Schristos  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26*10dd2532Schristos  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27*10dd2532Schristos  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28*10dd2532Schristos  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29*10dd2532Schristos  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30*10dd2532Schristos  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31*10dd2532Schristos  */
32*10dd2532Schristos 
33*10dd2532Schristos /* call specifications for commands.c */
34*10dd2532Schristos 
35*10dd2532Schristos int command_process(globalstate *gstate, int cmd);
36*10dd2532Schristos 
37*10dd2532Schristos /* returns from command routines */
38*10dd2532Schristos #define CMD_ERROR  -1
39*10dd2532Schristos #define CMD_OK      0
40*10dd2532Schristos #define CMD_REFRESH 1
41*10dd2532Schristos #define CMD_UNKNOWN 2
42*10dd2532Schristos #define CMD_NA      3
43