PROC_UNCTRL_PSINFO(3PROC) Process Control Library Functions
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.
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.
libproc(3LIB), proc(5)
illumos November 27, 2023 illumos
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
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(5)
illumos November 27, 2023 illumos