PROC_FLTSET2STR(3PROC) | Process Control Library Functions | PROC_FLTSET2STR(3PROC) |
proc_fltset2str
,
proc_sigset2str
,
proc_sysset2str
— convert a
fault, signal, or system call set to a string
Process Control Library (libproc, -lproc)
#include
<libproc.h>
char *
proc_fltset2str
(const fltset_t
*set, const char *delim, int
members, char *buf, size_t
buflen);
char *
proc_sigset2str
(const sigset_t
*set, const char *delim, int
members, char *buf, size_t
buflen);
char *
proc_sysset2str
(const sysset_t
*set, const char *delim, int
members, char *buf, size_t
buflen);
The
proc_fltset2str
(),
proc_sigset2str
(),
and
proc_sysset2str
()
functions respectively convert the fault, signal, and system call sets in
fltset, sigset, and
sysset to a human-readable name and place the
corresponding string in buf.
Up to buflen characters will be placed in buf, including the null terminator. If buf is not large enough to hold the entire string, then an error will be returned.
The members argument controls which members of the set are written out. If members is 1, then the sets member are placed in buf. If members is 0, then the members which are not in the set are placed in buf.
The string delim will be placed in-between every member of the set. It will not come after the last entry in the set.
Upon successful completion, the
proc_fltset2str
(),
proc_sigset2str
(), and
proc_sysset2str
() functions return
buf. Otherwise, NULL
is
returned.
libproc(3LIB), proc_fltname(3PROC), proc_signame(3PROC), proc_str2flt(3PROC), proc_str2fltset(3PROC), proc_str2sig(3PROC), proc_str2sigset(3PROC), proc_str2sys(3PROC), proc_str2sysset(3PROC), proc_sysname(3PROC), proc(5)
November 27, 2023 | OmniOS |