Jim Warner ed59472307 library: provide for huge cmdlines, like old libproc
The CodingStyle document suggests programs should allow for
cmdlines of at least 128k.  Only the ps program can display
such a cmdline, and only with multiple -w switches.

The library function file2strvec can essentially return
a cmdline of unlimited length.  However, the library function
fill_cmdline_cvt used an arbitrary upper limit of 2048 for
buffers automatically allocated on the stack.

This patch raises the fill_cmdline_cvt upper limit to 128k via
dymaically acquired utility buffers ensured by the openproc
function.

It also makes indentation consistent in the openproc function.
2011-12-11 22:27:06 +11:00
..
2002-02-01 22:47:29 +00:00
2003-09-28 02:45:05 +00:00
2004-07-20 23:31:12 +00:00
2011-10-15 08:26:27 +02:00
2003-03-19 01:15:58 +00:00
2005-01-05 21:46:22 +00:00
2011-06-04 20:50:12 +02:00
2004-11-04 20:50:59 +00:00
2002-12-09 07:00:07 +00:00