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

proc_fltname, proc_signame, proc_sysname, proc_dmodelnameconvert a fault, signal, system call and data model to a name

Process Control Library (libproc, -lproc)

#include <libproc.h>

char *
proc_fltname(int flt, char *buf, size_t bufsz);

char *
proc_signame(int sig, char *buf, size_t bufsz);

char *
proc_sysname(int sys, char *buf, size_t bufsz);

char *
proc_dmodelname(int dmodel, char *buf, size_t bufsz);

The (), (), () and () functions respectively convert the fault, signal, system call and data model in flt, sig, sys and dmodel to a human-readable name and place the corresponding string in buf. Up to bufsz characters, including the null terminator, will be written into buf.

Upon successful completion, the proc_fltname(), proc_signame(), proc_sysname() and proc_dmodelname() functions return a pointer to buf. The contents of buf are always null terminated. Otherwise, NULL is returned.

libproc(3LIB), proc_fltset2str(3PROC), proc_sigset2str(3PROC), proc_str2flt(3PROC), proc_str2fltset(3PROC), proc_str2sig(3PROC), proc_str2sigset(3PROC), proc_str2sys(3PROC), proc_str2sysset(3PROC), proc_sysset2str(3PROC), proc(5)

November 27, 2023 OmniOS