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

proc_str2flt, proc_str2sig, proc_str2sysconvert a string to a fault, signal, or system call

Process Control Library (libproc, -lproc)

#include <libproc.h>

int
proc_str2flt(const char *str, int *fltnum);

int
proc_str2sig(const char *str, int *signum);

int
proc_str2sys(const char *sys, int *sysnum);

The (), (), and () functions convert a string into the corresponding fault, signal, and system call number respectively and stores the resulting value in fltnum, signum, or sysnum respectively.

Upon successful completion, the proc_str2flt(), proc_str2sig(), and proc_str2sys() functions return and update fltnum, signum, and sysnum respectively. Otherwise, is returned to indicate that a conversion could not take place.

libproc(3LIB), proc_fltname(3PROC), proc_fltset2str(3PROC), proc_signame(3PROC), proc_sigset2str(3PROC), proc_str2fltset(3PROC), proc_str2sigset(3PROC), proc_str2sysset(3PROC), proc_sysset2str(3PROC), proc(5)

November 27, 2023 OmniOS