pkgsrc/sysutils/top/patches/patch-aa

33 lines
723 B
Text
Raw Normal View History

$NetBSD: patch-aa,v 1.7 1999/12/08 16:18:49 agc Exp $
1998-08-07 13:08:53 +02:00
--- commands.c Tue Aug 27 16:13:57 1996
+++ commands.c Sat Oct 4 03:25:02 1997
@@ -25,4 +25,7 @@
+#include "top.h"
+#include "top.local.h"
#include "sigdesc.h" /* generated automatically */
#include "boolean.h"
+#include "machine.h"
#include "utils.h"
@@ -44,4 +47,4 @@
-show_help()
-
+show_help(statics)
+ struct statics *statics;
{
@@ -74,4 +77,11 @@
#ifdef ORDER
+ {
+ int i;
+
fputs("\
-o - specify sort order (size, res, cpu, time)\n", stdout);
+o - specify sort order (", stdout);
+ for (i = 0; statics->order_names[i] != NULL; i++)
+ printf("%s%s", i == 0 ? "" : ", ", statics->order_names[i]);
+ puts(")");
+ }
#endif