top(1): Raise WARNS to 6 and fix warnings.
[dragonfly.git] / contrib / top / display.h
1 /* constants needed for display.c */
2
3 /* "type" argument for new_message function */
4
5 #define  MT_standout  1
6 #define  MT_delayed   2
7
8 struct statics;
9 struct system_info;
10
11 int display_resize(void);
12 int display_init(struct statics *statics);
13 void i_loadave(int mpid, double *avenrun);
14 void u_loadave(int mpid, double *avenrun);
15 void i_timeofday(time_t *tod);
16 void i_procstates(int total, int *brkdn);
17 void u_procstates(int total, int *brkdn);
18 void u_process(int xline, char *xnewline);
19 void i_cpustates(struct system_info *si);
20 void z_cpustates(struct system_info *si);
21 void i_memory(int *stats);
22 void    u_memory(int *stats);
23 void i_swap(int *stats);
24 void u_swap(int *stats);
25 void i_message(void);
26 void u_message(void);
27 void i_header(char *text);
28 void u_header(char *text __unused);
29 void i_process(int line, char *thisline);
30 void u_endscreen(int hi);
31 void i_uptime(struct timeval *bt, time_t *tod);
32 void display_header(int t);
33 void new_message(int type, const char *msgfmt, ...);
34 void clear_message(void);
35 int readline(char *buffer, int size, int numeric);
36 char *printable(char *str);