xref: /freebsd/usr.bin/top/display.h (revision e08e9e999091f86081377b7cedc3fd2fe2ab70fc)
1 /* $FreeBSD$ */
2 /* constants needed for display.c */
3 
4 /* "type" argument for new_message function */
5 
6 #define  MT_standout  1
7 #define  MT_delayed   2
8 
9 #include "machine.h"
10 
11 int		 display_updatecpus(struct statics *statics);
12 void	 clear_message(void);
13 int		 display_resize(void);
14 void	 i_header(char *text);
15 char	*printable(char *string);
16 void	 display_header(int t);
17 int		 display_init(struct statics *statics);
18 void	 i_arc(int *stats);
19 void	 i_carc(int *stats);
20 void	 i_cpustates(int *states);
21 void	 i_loadave(int mpid, double *avenrun);
22 void	 i_memory(int *stats);
23 void	 i_message(void);
24 void	 i_process(int line, char *thisline);
25 void	 i_procstates(int total, int *brkdn);
26 void	 i_swap(int *stats);
27 void	 i_timeofday(time_t *tod);
28 void	 i_uptime(struct timeval *bt, time_t *tod);
29 void	 new_message(int type, char *msgfmt, ...);
30 int	 readline(char *buffer, int size, int numeric);
31 char	*trim_header(char *text);
32 void	 u_arc(int *stats);
33 void	 u_carc(int *stats);
34 void	 u_cpustates(int *states);
35 void	 u_endscreen(int hi);
36 void	 u_header(char *text);
37 void	 u_loadave(int mpid, double *avenrun);
38 void	 u_memory(int *stats);
39 void	 u_message(void);
40 void	 u_process(int line, char *newline);
41 void	 u_procstates(int total, int *brkdn);
42 void	 u_swap(int *stats);
43 void	 z_cpustates(void);
44