aboutsummaryrefslogtreecommitdiff
path: root/contrib/top/top.h
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-03-23 18:51:21 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-03-23 18:51:21 +0000
commitaee34003d7964653c44c31f5bf6bcf136b32c4f3 (patch)
tree1409de2219944c7c90248988b70ac693cf71206d /contrib/top/top.h
downloadsrc-aee34003d7964653c44c31f5bf6bcf136b32c4f3.tar.gz
src-aee34003d7964653c44c31f5bf6bcf136b32c4f3.zip
This is the long-awaited import of top into the base system (actually,vendor/top/3.4
the src/contrib/top part right now). This tools is simply too system- dependant to maintain it in the ports collection.
Notes
Notes: svn path=/vendor/top/dist/; revision=24139 svn path=/vendor/top/3.4/; revision=24141; tag=vendor/top/3.4
Diffstat (limited to 'contrib/top/top.h')
-rw-r--r--contrib/top/top.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/contrib/top/top.h b/contrib/top/top.h
new file mode 100644
index 000000000000..8f50922cbd0a
--- /dev/null
+++ b/contrib/top/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
+