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

Perror_printfinterposable function for additional diagnostics

Process Control Library (libproc, -lproc)

#include <libproc.h>

void
Perror_printf(struct ps_prochandle *P, const char *format, ...);

The () function allows for consumers of the library to obtain additional diagnostic information during various operations. Consumers must explicitly on this symbol and provide their own definition, if desired. There is no requirement for such an interposition to be done. When called, P will be the process handle that the additional diagnostics are being generated for and the diagnostics will be provided in a printf(3C) style.

While the interposing interface is , the provided diagnostics are and may change at any time.

Callers should presume that this function may be called from multiple threads and always in a context in which taking locks is fine. Callers should not expect to be called from a signal handler.

libproc(3LIB)

November 27, 2023 OmniOS