aboutsummaryrefslogtreecommitdiffstats
path: root/top.h
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2008-09-28 10:13:11 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2008-09-28 10:13:11 +0000
commitc1dc0a1745ca8959fc4ce61ce026e2a83984c13e (patch)
tree786fa1fbb17c69aa06408624ed3ee94be63be396 /top.h
parent3e0c556084482bdb8cc32d03a1b57ecd45eb8947 (diff)
downloadsrc-c1dc0a1745ca8959fc4ce61ce026e2a83984c13e.tar.gz
src-c1dc0a1745ca8959fc4ce61ce026e2a83984c13e.zip
Flatten the dist tree.
Notes
Notes: svn path=/vendor/top/dist/; revision=183432
Diffstat (limited to 'top.h')
-rw-r--r--top.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/top.h b/top.h
new file mode 100644
index 000000000000..8f50922cbd0a
--- /dev/null
+++ b/top.h
@@ -0,0 +1,36 @@
+/*
+ * 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
+