Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/systat/systat.h
Show All 27 Lines | |||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* From: @(#)systat.h 8.1 (Berkeley) 6/6/93 | * From: @(#)systat.h 8.1 (Berkeley) 6/6/93 | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#include <curses.h> | #include <curses.h> | ||||
#include <devstat.h> | |||||
ota_j.email.ne.jp: I think I can drop devstat.h as well from the changeset. | |||||
Done Inline ActionsStyle, sys/ includes before userspace includes. kib: Style, sys/ includes before userspace includes. | |||||
#include <sys/stdint.h> | |||||
struct cmdtab { | struct cmdtab { | ||||
const char *c_name; /* command name */ | const char *c_name; /* command name */ | ||||
void (*c_refresh)(void); /* display refresh */ | void (*c_refresh)(void); /* display refresh */ | ||||
void (*c_fetch)(void); /* sets up data structures */ | void (*c_fetch)(void); /* sets up data structures */ | ||||
void (*c_label)(void); /* label display */ | void (*c_label)(void); /* label display */ | ||||
int (*c_init)(void); /* initialize namelist, etc. */ | int (*c_init)(void); /* initialize namelist, etc. */ | ||||
WINDOW *(*c_open)(void); /* open display */ | WINDOW *(*c_open)(void); /* open display */ | ||||
Show All 20 Lines | |||||
#define MAINWIN_ROW 3 /* top row for the main/lower window */ | #define MAINWIN_ROW 3 /* top row for the main/lower window */ | ||||
#define GETSYSCTL(name, var) getsysctl(name, &(var), sizeof(var)) | #define GETSYSCTL(name, var) getsysctl(name, &(var), sizeof(var)) | ||||
#define KREAD(addr, buf, len) kvm_ckread((addr), (buf), (len)) | #define KREAD(addr, buf, len) kvm_ckread((addr), (buf), (len)) | ||||
#define NVAL(indx) namelist[(indx)].n_value | #define NVAL(indx) namelist[(indx)].n_value | ||||
#define NPTR(indx) (void *)NVAL((indx)) | #define NPTR(indx) (void *)NVAL((indx)) | ||||
#define NREAD(indx, buf, len) kvm_ckread(NPTR((indx)), (buf), (len)) | #define NREAD(indx, buf, len) kvm_ckread(NPTR((indx)), (buf), (len)) | ||||
extern uint64_t byte_to_page(uint64_t size); | |||||
extern uint64_t page_to_byte(uint64_t size); | |||||
extern void putint(int, int, int, int); | extern void putint(int, int, int, int); | ||||
extern void putfloat(double, int, int, int, int, int); | extern void putfloat(double, int, int, int, int, int); | ||||
extern void putlongdouble(long double, int, int, int, int, int); | extern void putlongdouble(long double, int, int, int, int, int); | ||||
/*** reuseable components ***/ | |||||
Done Inline ActionsI am not sure what meaning does this comment provide. kib: I am not sure what meaning does this comment provide. | |||||
/** libproc stat based sub components - currently support swap usage via vm **/ | |||||
int procinit(void); | |||||
void procgetinfo(void); | |||||
void proclabel(int col); | |||||
void procshow(int col, int hight, uint64_t totalswappages); | |||||
Done Inline ActionsI moved these from devs.h. ota_j.email.ne.jp: I moved these from devs.h.
I guess we don't want to include these in the review or commit. |
I think I can drop devstat.h as well from the changeset.