Making note of my changes
[oweals/busybox.git] / ps.c
diff --git a/ps.c b/ps.c
index 97a5d6ba2b1baea83f5fde2c9acda2bb3c3186c7..4496faa31a4cf9f9fbf669e3c0232c1257481569 100644 (file)
--- a/ps.c
+++ b/ps.c
@@ -1,7 +1,9 @@
 /*
  * Mini ps implementation for busybox
  *
- * Copyright (C) 1998 by Erik Andersen <andersee@debian.org>
+ *
+ * Copyright (C) 1999 by Lineo, inc.
+ * Written by Erik Andersen <andersen@lineo.com>, <andersee@debian.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -26,6 +28,9 @@
 #include <fcntl.h>
 #include <ctype.h>
 
+#if ! defined BB_FEATURE_USE_PROCFS
+#error Sorry, I depend on the /proc filesystem right now.
+#endif
 
 typedef struct proc_s {
     char
@@ -72,7 +77,7 @@ static void parse_proc_status(char* S, proc_t* P)
     );
     else fprintf(stderr, "Internal error!\n");
 
-    /* For busybox, ignoring effecting, saved, etc */
+    /* For busybox, ignoring effective, saved, etc */
     tmp = strstr (S,"Uid:");
     if(tmp) sscanf (tmp,
         "Uid:\t%d", &P->ruid);
@@ -98,7 +103,7 @@ extern int ps_main(int argc, char **argv)
     int i, c;
 
     if ( argc>1 && **(argv+1) == '-' ) {
-       usage ("ps - report process status\nThis version of ps accepts no options.\n");
+       usage ("ps\n\nReport process status\n\nThis version of ps accepts no options.\n");
     }
     
     dir = opendir("/proc");