Changeset View
Changeset View
Standalone View
Standalone View
contrib/top/display.h
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
/* constants needed for display.c */ | /* | ||||
* Copyright (c) 1984 through 2008, William LeFebvre | |||||
* All rights reserved. | |||||
* | |||||
* Redistribution and use in source and binary forms, with or without | |||||
* modification, are permitted provided that the following conditions are met: | |||||
* | |||||
* * Redistributions of source code must retain the above copyright | |||||
* notice, this list of conditions and the following disclaimer. | |||||
* | |||||
* * Redistributions in binary form must reproduce the above | |||||
* copyright notice, this list of conditions and the following disclaimer | |||||
* in the documentation and/or other materials provided with the | |||||
* distribution. | |||||
* | |||||
* * Neither the name of William LeFebvre nor the names of other | |||||
* contributors may be used to endorse or promote products derived from | |||||
* this software without specific prior written permission. | |||||
* | |||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |||||
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |||||
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||||
* | |||||
* $FreeBSD$ | |||||
*/ | |||||
/* "type" argument for new_message function */ | /* interface declaration for display.c */ | ||||
#define MT_standout 1 | #ifndef _DISPLAY_H | ||||
#define MT_delayed 2 | #define _DISPLAY_H | ||||
#include "machine.h" | #include "globalstate.h" | ||||
int display_updatecpus(struct statics *statics); | void display_clear(); | ||||
void clear_message(void); | int display_resize(); | ||||
int display_resize(void); | int display_lines(); | ||||
void i_header(char *text); | int display_columns(); | ||||
char *printable(char *string); | |||||
char *cpustates_tag(void); | |||||
void display_header(int t); | |||||
int display_init(struct statics *statics); | int display_init(struct statics *statics); | ||||
void i_arc(int *stats); | |||||
void i_cpustates(int *states); | |||||
void i_loadave(int mpid, double *avenrun); | void i_loadave(int mpid, double *avenrun); | ||||
void i_memory(int *stats); | void u_loadave(int mpid, double *avenrun); | ||||
void i_message(void); | void i_minibar(int (*formatter)(char *, int)); | ||||
void i_process(int line, char *thisline); | void u_minibar(int (*formatter)(char *, int)); | ||||
void i_procstates(int total, int *brkdn); | void i_uptime(time_t *bt, time_t *tod); | ||||
void i_swap(int *stats); | void u_uptime(time_t *bt, time_t *tod); | ||||
void i_timeofday(time_t *tod); | void i_timeofday(time_t *tod); | ||||
void i_uptime(struct timeval *bt, time_t *tod); | void i_procstates(int total, int *brkdn, int threads); | ||||
void new_message(); | void u_procstates(int total, int *brkdn, int threads); | ||||
int readline(char *buffer, int size, int numeric); | void i_cpustates(int *states); | ||||
char *trim_header(char *text); | |||||
void u_arc(int *stats); | |||||
void u_cpustates(int *states); | void u_cpustates(int *states); | ||||
void u_endscreen(int hi); | void z_cpustates(); | ||||
void i_kernel(int *stats); | |||||
void u_kernel(int *stats); | |||||
void i_memory(long *stats); | |||||
void u_memory(long *stats); | |||||
void i_swap(long *stats); | |||||
void u_swap(long *stats); | |||||
void i_arc(long *stats); | |||||
void u_arc(long *stats); | |||||
void i_message(struct timeval *now); | |||||
void u_message(struct timeval *now); | |||||
void i_header(char *text); | |||||
void u_header(char *text); | void u_header(char *text); | ||||
void u_loadave(int mpid, double *avenrun); | void i_process(int line, char *thisline); | ||||
void u_memory(int *stats); | void u_process(int, char *); | ||||
void u_message(void); | void i_endscreen(); | ||||
void u_process(int line, char *newline); | void u_endscreen(); | ||||
void u_procstates(int total, int *brkdn); | void display_header(int t); | ||||
void u_swap(int *stats); | void new_message(char *msgfmt, ...); | ||||
void z_cpustates(void); | void message_error(char *msgfmt, ...); | ||||
void message_mark(); | |||||
void message_clear(); | |||||
void message_expire(); | |||||
void message_prompt(char *msgfmt, ...); | |||||
void message_prompt_plain(char *msgfmt, ...); | |||||
int readline(char *buffer, int size, int numeric); | |||||
void display_pagerstart(); | |||||
void display_pagerend(); | |||||
void display_pager(char *fmt, ...); | |||||
#endif |