Current File : //usr/man/man3c/psignal.3c
'\" te
.\" Copyright 1989 AT&T.  Copyright (c) 2005, Sun Microsystems, Inc.  All Rights Reserved.
.TH psignal 3C "31 Mar 2005" "SunOS 5.11" "Standard C Library Functions"
.SH NAME
psignal, psiginfo \- system signal messages
.SH SYNOPSIS
.LP
.nf
#include <siginfo.h>

\fBvoid\fR \fBpsignal\fR(\fBint\fR \fIsig\fR, \fBconst char *\fR\fIs\fR);
.fi

.LP
.nf
\fBvoid\fR \fBpsiginfo\fR(\fBsiginfo_t *\fR\fIpinfo\fR, \fBchar *\fR\fIs\fR);
.fi

.SH DESCRIPTION
.sp
.LP
The \fBpsignal()\fR and \fBpsiginfo()\fR functions produce messages on the standard error output describing a signal.  The \fIsig\fR argument is a signal that may have been  passed as the first argument to a signal handler.  The \fIpinfo\fR argument is a pointer to a \fBsiginfo\fR structure that may have been passed as the second argument to an enhanced signal handler.  See \fBsigaction\fR(2). The argument string \fIs\fR is printed first, followed by a colon and a blank, followed by the message and a \fBNEWLINE\fR character. 
.SH USAGE
.sp
.LP
Messages printed from these functions are in the native language specified by the \fBLC_MESSAGES\fR locale category.  See \fBsetlocale\fR(3C).
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
tab() box;
cw(2.75i) |cw(2.75i) 
lw(2.75i) |lw(2.75i) 
.
ATTRIBUTE TYPEATTRIBUTE VALUE
_
MT-LevelSafe
.TE

.SH SEE ALSO
.sp
.LP
\fBsigaction\fR(2), \fBgettext\fR(3C), \fBperror\fR(3C), \fBsetlocale\fR(3C), \fBsiginfo.h\fR(3HEAD), \fBsignal.h\fR(3HEAD), \fBattributes\fR(5)