[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libps



> 
> That comment is imprecise.  The code is correct as it stands.  It should
> say that it's stored in what we now call "argz format"

Ok, then I propose the following patch:

--- /src/hurd/include/ps.h      Wed Jun  2 02:24:36 1999
+++ ps.h        Sun Jan 23 16:14:26 2000
@@ -254,7 +254,7 @@
   struct ps_user *owner;
   int owner_uid;               /* The corresponding UID, or -1.  */

-  /* The process's argv, as a string with each element separated by '\0'.  */
+  /* The process's argv, in argz format ie "arg1\0arg2\0arg3\0" */
   char *args;
   /* The length of ARGS.  */
   unsigned args_len;
@@ -297,7 +297,7 @@
   void *hook;

   /* XXX these members added at the end for binary compatibility */
-  /* The process's envp, as a string with each element separated by '\0'.  */
+  /* The process's envp, in argz format ie "arg1\0arg2\0arg3\0" */
   char *env;
   /* The length of ENV.  */
   unsigned env_len;

-Neal

-- 
----------------------------------------------------------------------------
Neal Walfield                                              neal@walfield.org
UMass Lowell - Fox 1512                                  Phone: 978-934-5347
                                                           Fax: 603-415-3645
Love is the triumph of imagination over intelligence.
                -- H. L. Mencken


Reply to: