procps/proc
Jim Warner eea5626bb1 library: help ensure 'escape_str' isn't executed twice
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>
2020-12-29 08:42:28 +11:00
..
alloc.c
alloc.h
COPYING
devname.c
devname.h
escape.c library: help ensure 'escape_str' isn't executed twice 2020-12-29 08:42:28 +11:00
escape.h Change restrict to __restrict in public includes 2012-01-09 21:44:51 +11:00
fprocopen.3 docs: fix "delimeter" typo in fprocopen man page 2019-03-04 21:44:52 +11:00
libprocps.pc.in
libprocps.sym
numa.c
numa.h
openproc.3 misc: fix typos in manual pages 2020-12-22 00:37:29 +00:00
procps-private.h
procps.h
pwcache.c
pwcache.h
readproc.3
readproc.c library: help ensure 'escape_str' isn't executed twice 2020-12-29 08:42:28 +11:00
readproc.h Fixes small bug in struct proc_t documentation. 2020-05-11 17:39:47 +10:00
readproctab.3
sig.c
sig.h
slab.c
slab.h
sysinfo.c misc: eliminate a couple of miscellaneous gcc warnings 2020-07-29 18:58:33 +10:00
sysinfo.h Increase BUFFSIZE to handle very large /proc/stat files 2020-12-22 13:18:44 +11:00
version.c
version.h
wchan.c
wchan.h
whattime.c proc/whattime.c: Always initialize buf. 2018-05-19 07:32:21 +10:00
whattime.h