procps/proc
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
..
alloc.c library: expanded/generalized memory allocation provisions 2011-12-11 22:26:49 +11:00
alloc.h library: expanded/generalized memory allocation provisions 2011-12-11 22:26:49 +11:00
COPYING
devname.c library: exploit enhanced library memory allocation provisions 2011-12-11 22:26:55 +11:00
devname.h hard disk about to die 2003-09-28 02:45:05 +00:00
escape.c enhanced libproc cgroup/cmdline support, exploited by top 2011-05-18 10:33:44 +02:00
escape.h enhanced libproc cgroup/cmdline support, exploited by top 2011-05-18 10:33:44 +02:00
ksym.c library: exploit enhanced library memory allocation provisions 2011-12-11 22:26:55 +11:00
libproc-ng.pc.in libproc-ng: add pkg-config support 2011-11-05 14:13:40 +01:00
library.map library: expanded/generalized memory allocation provisions 2011-12-11 22:26:49 +11:00
Makefile.am build-sys: add symbol map file to autotools distribution 2011-11-29 22:57:17 +11:00
procps.h library: expanded/generalized memory allocation provisions 2011-12-11 22:26:49 +11:00
pwcache.c library: exploit enhanced library memory allocation provisions 2011-12-11 22:26:55 +11:00
pwcache.h better handling of long usernames 2004-07-20 23:31:12 +00:00
readproc.c library: provide for huge cmdlines, like old libproc 2011-12-11 22:27:06 +11:00
readproc.h miscellaneous top and library cleanup 2011-09-25 00:27:37 +10:00
sig.c redhat analysis: proc/sig 2011-10-15 08:26:27 +02:00
sig.h SKIP 2003-03-19 01:15:58 +00:00
slab.c library: exploit enhanced library memory allocation provisions 2011-12-11 22:26:55 +11:00
slab.h fix overflow on huge NUMA boxes 2005-01-05 21:46:22 +00:00
sysinfo.c library: exploit enhanced library memory allocation provisions 2011-12-11 22:26:55 +11:00
sysinfo.h vmstat -p <part> works and updated version to 3.3.1 2011-11-27 22:47:17 +11:00
version.c Merge branch 'master', remote-tracking branch 'sami/ng' 2011-10-01 23:23:30 +10:00
version.h name change: procps -> procps-ng 2011-06-04 20:50:12 +02:00
wchan.h library: expanded/generalized memory allocation provisions 2011-12-11 22:26:49 +11:00
whattime.c leftovers in the 3.2.4 release 2004-11-04 20:50:59 +00:00
whattime.h big header clean-up 2002-12-09 07:00:07 +00:00