summaryrefslogtreecommitdiff
path: root/usr.bin/top/top.h
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-08-14 14:00:29 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-08-14 14:00:29 +0000
commit6e46887b7158d427eebc23ab135222ed4df2bdf0 (patch)
tree3c75f1ac16fc0820700961b0f91b18496054cb6d /usr.bin/top/top.h
parent44dbc9719c1c86a71535213a3f43c4cee4a4b770 (diff)
top 3.4, with a few changes. Still needs more work.
Diffstat (limited to 'usr.bin/top/top.h')
-rw-r--r--usr.bin/top/top.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/usr.bin/top/top.h b/usr.bin/top/top.h
new file mode 100644
index 00000000000..ad65c41aa24
--- /dev/null
+++ b/usr.bin/top/top.h
@@ -0,0 +1,38 @@
+/* $OpenBSD: top.h,v 1.1 1997/08/14 14:00:26 downsj Exp $ */
+
+/*
+ * Top - a top users display for Berkeley Unix
+ *
+ * General (global) definitions
+ */
+
+/* Current major version number */
+#define VERSION 3
+
+/* Number of lines of header information on the standard screen */
+#define Header_lines 6
+
+/* Maximum number of columns allowed for display */
+#define MAX_COLS 128
+
+/* Log base 2 of 1024 is 10 (2^10 == 1024) */
+#define LOG1024 10
+
+char *itoa();
+char *itoa7();
+
+char *version_string();
+
+/* Special atoi routine returns either a non-negative number or one of: */
+#define Infinity -1
+#define Invalid -2
+
+/* maximum number we can have */
+#define Largest 0x7fffffff
+
+/*
+ * The entire display is based on these next numbers being defined as is.
+ */
+
+#define NUM_AVERAGES 3
+