work in progress...
[oweals/busybox.git] / ps.c
diff --git a/ps.c b/ps.c
index d8a4233dada0fea425d0bff2a71d63ce5d14aa6f..4496faa31a4cf9f9fbf669e3c0232c1257481569 100644 (file)
--- a/ps.c
+++ b/ps.c
@@ -28,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
@@ -74,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);
@@ -100,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");