Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/systat/systat.h
| Show All 26 Lines | |||||
| * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | * 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 | * 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 <sys/stdint.h> | |||||
| #include <curses.h> | #include <curses.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. | |||||
| 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 */ | ||||
| void (*c_close)(WINDOW *); /* close display */ | void (*c_close)(WINDOW *); /* close display */ | ||||
| Show All 22 Lines | |||||
| #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 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); | ||||
| int procinit(void); | |||||
| void procgetinfo(void); | |||||
Done Inline ActionsI am not sure what meaning does this comment provide. kib: I am not sure what meaning does this comment provide. | |||||
| 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.