GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
sysdecode_sigcode(3) FreeBSD Library Functions Manual sysdecode_sigcode(3)

sysdecode_sigcode
lookup name of signal code

System Argument Decoding Library (libsysdecode, -lsysdecode)

#include <sys/types.h>
#include <stdbool.h>
#include <sysdecode.h>

const char *
sysdecode_sigcode(int signal, int si_code);

The sysdecode_sigcode() function returns a text description of the si_code field of the siginfo_t object associated with an instance of signal sig. The text description contains the name of the C macro whose value matches si_code. General purpose signal codes such as SI_USER are handled as well as signal-specific codes for SIGBUS, SIGCHLD, SIGFPE, SIGILL, SIGSEGV and SIGTRAP. If si_code does not represent a known signal code, sysdecode_sigcode() returns NULL.

The sysdecode_sigcode() function returns a pointer to a signal code description or NULL if si_code is not a known signal code.

sysdecode_sigbus_code(3), sysdecode_sigchld_code(3), sysdecode_sigfpe_code(3), sysdecode_sigill_code(3), sysdecode_sigsegv_code(3), sysdecode_sigtrap_code(3)
October 17, 2016 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.