eea5626bb1
Now that the ps program is using 'escape_str' for most of the library's returned strings, this patch tries to lessen the prospects of executing that function twice. Our newlib branch has achieved such a goal through the elimination of nearly all escape.c code. However, here we avoid API change by trading some 'escape_str' calls (with wide character overhead) for a slightly extended 'escaped_copy' call (which incurs no multibyte costs). Note: until we migrate to the newlib version, there is a remaining call to 'escape_str' which we can't avoid. Such code involves the 'escape_command' function call. [ As we prepare for this new (final?) release, there ] [ were already internal library changes that require ] [ a new 'revision'. This patch won't impact the API! ] Signed-off-by: Jim Warner <james.warner@comcast.net> |
||
---|---|---|
.. | ||
alloc.c | ||
alloc.h | ||
COPYING | ||
devname.c | ||
devname.h | ||
escape.c | ||
escape.h | ||
fprocopen.3 | ||
libprocps.pc.in | ||
libprocps.sym | ||
numa.c | ||
numa.h | ||
openproc.3 | ||
procps-private.h | ||
procps.h | ||
pwcache.c | ||
pwcache.h | ||
readproc.3 | ||
readproc.c | ||
readproc.h | ||
readproctab.3 | ||
sig.c | ||
sig.h | ||
slab.c | ||
slab.h | ||
sysinfo.c | ||
sysinfo.h | ||
version.c | ||
version.h | ||
wchan.c | ||
wchan.h | ||
whattime.c | ||
whattime.h |