PROC_UNCTRL_PSINFO(3PROC) | Process Control Library Functions | PROC_UNCTRL_PSINFO(3PROC) |
proc_unctrl_psinfo
—
fix unprintable characters in a psinfo
structures
Process Control Library (libproc, -lproc)
#include
<libproc.h>
void
proc_unctrl_psinfo
(psinfo_t
*psp);
The
proc_unctrl_psinfo
()
function walks the process arguments of the psp
structure (the
pr_psargs
member) converting unprintable characters into spaces. The conversion
continues until a null character is encountered. Note, this routine only
will correctly handle 7-bit ASCII characters. Characters in other encodings,
e.g. UTF-8, may be misinterpreted as unprintable.
MT-Safe with exceptions.
Note, the
proc_unctrl_psinfo
()
function is
UNSAFE
if the same value for psp is passed in from multiple
threads.
November 27, 2023 | OmniOS |