diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-05-29 00:56:57 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-05-29 00:56:57 +0000 |
commit | 32de456d0946e52c50edde609338d43b8387fd44 (patch) | |
tree | bfa5bfb624b4a84573dd1a8d473f0b6abf1b4c86 /usr.bin/top/top.h | |
parent | d7117e3a3eb409851b4bea2d7e0d8884ed8f3f16 (diff) |
Instead of using hand-crafted redraws minimizing screen updates, use curses.
Enables nice things like process highlighting without hurting the brain.
ok deraadt@
Diffstat (limited to 'usr.bin/top/top.h')
-rw-r--r-- | usr.bin/top/top.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/top/top.h b/usr.bin/top/top.h index 6c601039f99..4abc4661189 100644 --- a/usr.bin/top/top.h +++ b/usr.bin/top/top.h @@ -1,4 +1,4 @@ -/* $OpenBSD: top.h,v 1.9 2007/03/30 19:21:19 otto Exp $ */ +/* $OpenBSD: top.h,v 1.10 2007/05/29 00:56:56 otto Exp $ */ /* * Top users/processes display for Unix @@ -61,13 +61,16 @@ extern int Header_lines; #define NUM_AVERAGES 3 -/* externs */ -extern const char copyright[]; -extern int overstrike; +struct errs { /* structure for a system-call error */ + int err; /* value of errno (that is, the actual error) */ + char *arg; /* argument that caused the error */ +}; + +extern struct errs errs[]; +extern int errcnt; /* commands.c */ -extern void show_help(void); extern int error_count(void); extern void show_errors(void); extern char *kill_procs(char *); |