procps/ps
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
..
common.h library: make that 'escape_str' private to our library 2020-07-05 21:13:01 +10:00
COPYING
display.c ps: for abnormal end allow core dumps (fix qualys bug) 2020-01-06 09:11:20 +11:00
global.c misc: adapted programs impacted by header file changes 2019-03-26 19:55:30 +11:00
HACKING
help.c
output.c library: make that 'escape_str' private to our library 2020-07-05 21:13:01 +10:00
parser.c ps: eliminated inadvertent trailing double semi-colons 2020-04-10 14:37:15 +10:00
ps.1 docs: some manpage fixes 2020-06-04 22:33:16 +10:00
regression
select.c ps: increase command name length to 64 ____ (catch up) 2019-09-22 07:32:03 +10:00
sortformat.c 0067-ps/sortformat.c: Avoid "sep_loc + 1" when sep_loc is NULL. 2018-06-09 21:45:38 +10:00
stacktrace.c