procps/proc
Jim Warner 605ea4a8f7 library: make that 'escape_str' private to our library
In that commit referenced below, a promise was made to
revisit an 'escape_str' function in efforts to make it
private to the library. The problem was it's needed by
both ps plus the library which is why it was exported.

So, in an effort to remove it from libprocps.sym, this
patch duplicates all the required code in ps/output.c.
Now, each version can be made private to their caller.

[ along the way we'll use this opportunity to remove ]
[ the 'restrict' qualifiers from function parameters ]
[ while swatting a compiler warning referenced below ]

Reference(s):
. April 2016, most escape functions made private
commit d916d5db86

proc/escape.c: In function `escape_command':
proc/escape.c:182:23: warning: initialization of `const char **' from incompatible pointer type `char **' [-Wincompatible-pointer-types]
  182 |     const char **lc = (char**)pp->cmdline;
      |                       ^

Signed-off-by: Jim Warner <james.warner@comcast.net>
2020-07-05 21:13:01 +10:00
..
.gitignore tests: update template and add pids 2016-04-19 21:33:02 +10:00
COPYING miscellaneous: clean up trailing whitespace once again 2013-04-07 18:05:01 +10:00
devname.c 0040-proc/devname.c: Never write more than "chop" (part 2). 2018-06-09 21:35:19 +10:00
devname.h library: eliminate inappropriate '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
diskstats.c library: rename a couple of 'reap' structs to 'reaped' 2020-06-23 19:09:05 +10:00
diskstats.h library: rename a couple of 'reap' structs to 'reaped' 2020-06-23 19:09:05 +10:00
escape.c library: make that 'escape_str' private to our library 2020-07-05 21:13:01 +10:00
escape.h library: make that 'escape_str' private to our library 2020-07-05 21:13:01 +10:00
libprocps.pc.in Renaming libprocfs to libprocps 2011-12-23 09:18:43 +11:00
libprocps.sym library: make that 'escape_str' private to our library 2020-07-05 21:13:01 +10:00
meminfo.c library: size two read buffers with manifest constants 2020-07-05 21:13:01 +10:00
meminfo.h library: refactored some header file items and origins 2019-03-26 19:55:30 +11:00
namespace.c library: ensure 'namespace' types treated consistently 2017-01-04 08:29:44 +11:00
namespace.h library: replace the troublesome '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
numa.c library: set stage for NUMA node field display support 2017-05-22 21:38:10 +10:00
numa.h library: eliminate inappropriate '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
pids.c library: correct one reference typo in that <PIDS> api 2019-10-27 22:27:49 +11:00
pids.h library: misc accumulated cosmetic header file changes 2020-05-28 19:49:40 +10:00
procps-private.h library: please keep procps-private.h free of #include 2016-06-11 11:50:37 +10:00
pwcache.c library: eliminate all dependencies on alloc.h/alloc.c 2017-12-20 21:18:53 +11:00
pwcache.h library: eliminate inappropriate '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
readproc.c library: eliminated the questionable 'procps.h' header 2020-07-05 21:13:01 +10:00
readproc.h Fixes small bug in struct proc_t documentation. 2020-05-11 17:44:48 +10:00
slabinfo.c library: rename a couple of 'reap' structs to 'reaped' 2020-06-23 19:09:05 +10:00
slabinfo.h library: rename a couple of 'reap' structs to 'reaped' 2020-06-23 19:09:05 +10:00
stat.c library: raise amount by which the <stat> buffer grows 2020-06-29 21:13:40 +10:00
stat.h library: changes to some numa stuff in that <stat> api 2020-06-25 20:08:22 +10:00
sysinfo.c library: eliminate all dependencies on alloc.h/alloc.c 2017-12-20 21:18:53 +11:00
sysinfo.h library: replace the troublesome '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
test_namespace.c library: eliminated the questionable 'procps.h' header 2020-07-05 21:13:01 +10:00
test_pids.c related: change for lost 'PROCPS_' enumerator prefixes 2016-07-26 20:49:44 +10:00
test_sysinfo.c tests: update template and add pids 2016-04-19 21:33:02 +10:00
test_uptime.c library: eliminated the questionable 'procps.h' header 2020-07-05 21:13:01 +10:00
test_version.c library: Fix LINUX_VERSION macro 2016-05-01 17:46:25 +10:00
uptime.c 0047-proc/whattime.c: Always initialize buf. 2018-06-09 21:35:19 +10:00
uptime.h library: replace the troublesome '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
version.c miscellaneous: remove some trailing whitespace buildup 2015-06-20 07:46:23 +10:00
version.h library: replace the troublesome '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
vmstat.c library: size two read buffers with manifest constants 2020-07-05 21:13:01 +10:00
vmstat.h library: refactored some header file items and origins 2019-03-26 19:55:30 +11:00
wchan.c library: don't strip off prefixes from the wchan names 2016-12-07 22:07:00 +11:00
wchan.h library: eliminate inappropriate '__BEGIN_DECLS' macro 2018-05-06 07:19:38 +10:00
xtra-procps-debug.h library: refactor the XTRA_PROCPS_DEBUG implementation 2018-09-12 21:12:06 +10:00