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

libps patch



Here's a suggested 'improvement' to your patch; it makes it clear
that there are *two* nulls at the end of the string...

--- /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\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\0" */   char
*env;
   /* The length of ENV.  */   unsigned env_len;


Reply to: