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

NAME


proc_fltname, proc_signame, proc_sysname - convert a fault, signal, and
system call to a name

SYNOPSIS


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);

DESCRIPTION


The proc_fltname(), proc_signame(), and proc_sysname() functions
respectively convert the fault, signal, and system call in flt, sig, and
sys 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.

RETURN VALUES


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

INTERFACE STABILITY


Uncommitted

MT-LEVEL
MT-Safe

SEE ALSO


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(4)

illumos May 11, 2016 illumos