Add "device uether" to various manual pages' synopses.
[dragonfly.git] / contrib / top / globalstate.h
blobfd1d21dea1ac0c0a469d64529c14e392350975be
1 /*
2 * Copyright (c) 1984 through 2008, William LeFebvre
3 * 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 are met:
7 *
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
11 * * Redistributions in binary form must reproduce the above
12 * copyright notice, this list of conditions and the following disclaimer
13 * in the documentation and/or other materials provided with the
14 * distribution.
16 * * Neither the name of William LeFebvre nor the names of other
17 * contributors may be used to endorse or promote products derived from
18 * this software without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 * The global state of top is described in this structure. It is passed
35 * to routines that may need to examine or alter it.
38 #ifndef _GLOBALSTATE_H_
39 #define _GLOBALSTATE_H_
41 #include "machine.h"
43 typedef struct globalstate {
44 struct timeval now;
45 struct timeval refresh;
46 int fulldraw;
47 int topn;
48 int max_topn;
49 int delay;
50 int displays;
51 int order_index;
52 int show_cpustates;
53 int show_tags;
54 int show_usernames;
55 int use_color;
56 int smart_terminal;
57 int interactive;
58 char *header_text;
59 char *order_name; /* only used before call to machine_init */
60 char *order_namelist;
61 char *(*get_userid)(int);
62 struct process_select pselect;
63 struct statics *statics;
64 } globalstate;
66 #endif /* _GLOBALSTATE_H_ */