aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/systat/convtbl.h
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2006-11-27 16:14:32 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2006-11-27 16:14:32 +0000
commitaee371e3636e3880db6d422ae143bf9173428be9 (patch)
tree6cb3b92893bdc56c1aefcb3db96a4f423e6ebc1f /usr.bin/systat/convtbl.h
parentf5d4751c8a3165567d4bc6e8b7fe79c59eb8f174 (diff)
downloadsrc-aee371e3636e3880db6d422ae143bf9173428be9.tar.gz
src-aee371e3636e3880db6d422ae143bf9173428be9.zip
Keep all convtbl-related constants and strings in convtbl.[ch].
Notes
Notes: svn path=/head/; revision=164672
Diffstat (limited to 'usr.bin/systat/convtbl.h')
-rw-r--r--usr.bin/systat/convtbl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/systat/convtbl.h b/usr.bin/systat/convtbl.h
index e5cd702bd598..87a6c0905372 100644
--- a/usr.bin/systat/convtbl.h
+++ b/usr.bin/systat/convtbl.h
@@ -49,7 +49,7 @@ enum scale {
SC_KILOBIT,
SC_MEGABIT,
SC_GIGABIT,
- SC_AUTO
+ SC_AUTO /* KEEP THIS LAST */
};
#define BIT (8)
@@ -59,11 +59,14 @@ struct convtbl {
uintmax_t mul;
uintmax_t scale;
const char *str;
+ const char *name;
};
extern struct convtbl convtbl[];
extern double convert(const uintmax_t, const int);
+extern const char *get_helplist(void);
+extern int get_scale(const char *);
extern const char *get_string(const uintmax_t, const int);
#endif /* ! _CONVTBL_H_ */