PROC_UNCTRL_PSINFO(3PROC) Process Control Library Functions
NAME
proc_unctrl_psinfo - fix unprintable characters in a psinfo structures
LIBRARY
Process Control Library (libproc, -lproc)
SYNOPSIS
#include <libproc.h> void proc_unctrl_psinfo(
psinfo_t *psp);
DESCRIPTION
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.
INTERFACE STABILITY
UncommittedMT-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(5)illumos November 27, 2023 illumos