PROC_UNCTRL_PSINFO(3PROC) Process Control Library Functions PROC_UNCTRL_PSINFO(3PROC)

proc_unctrl_psinfofix unprintable characters in a psinfo structures

Process Control Library (libproc, -lproc)

#include <libproc.h>

void
proc_unctrl_psinfo(psinfo_t *psp);

The () function walks the process arguments of the psp structure (the 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.

with exceptions.

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

libproc(3LIB), proc(5)

November 27, 2023 OmniOS