psignal(), strsignal, bsd_strsignal

system signal messages 

Function


SYNOPSIS

#include <siginfo.h>

void psignal(int sig, const char *s);

#include <string.h>

char *strsignal(int sig)

char *bsd_strsignal(int sig, char *buf, size_t buflen)


DESCRIPTION

The psignal() function produces messages on standard error describing a signal. It prints s, a colon, a space, and the string representation of sig on standard error.

The strsignal() function returns a static string describing the requested sig.

The bsd_strsignal() copies a string describing the requested sig into buf> not exceeding buflen-1 characters. The result is always nul terminated.


PARAMETERS

sig 

Is a signal number.

s 

Is an arbitrary text string.

buf 

A buffer in which to place the result.

buflen 

buf length.


RETURN VALUES

psignal() None.

strsignal() returns a string representing the signal in US English.

bsd_strsignal() returns its second argument buf.


CONFORMANCE

4.4BSD.


MULTITHREAD SAFETY LEVEL

psignal() and bsd_strsignal() are MT-Safe.

strsignal() uses a static buffer and is not thread safe. Use bsd_strsignal() for thread safety.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
bsd_signal(), perror(), sigaction(), signal()


PTC MKS Toolkit 10.4 Documentation Build 39.