PROC_UNCTRL_PSINFO(3PROC) Process Control Library Functions

NAME


proc_unctrl_psinfo - fix unprintable characters in a psinfo structures

SYNOPSIS


Process Control Library (libproc, -lproc)
#include <libproc.h>

void
proc_unctrl_psinfo(psinfo_t *psp);

DESCRIPTION


The proc_uncctrl_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.

INTERFACE STABILITY


Uncommitted

MT-LEVEL
MT-Safe with exceptions.

Note, the proc_unctrl_psinfo() function is UNSAFE if the same value for psp
is passed in from multiple threads.

SEE ALSO


libproc(3LIB), proc(4)

illumos May 11, 2016 illumos