1 '\" te 2 .\" Copyright 1989 AT&T. Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved. 3 .\" Copyright 2015 Circonus, Inc. All rights reserved. 4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. 5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. 6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] 7 .TH PSIGNAL 3C "Mar 31, 2005" 8 .SH NAME 9 psignal, psiginfo \- system signal messages 10 .SH SYNOPSIS 11 .LP 12 .nf 13 #include <siginfo.h> 14 15 \fBvoid\fR \fBpsignal\fR(\fBint\fR \fIsig\fR, \fBconst char *\fR\fIs\fR); 16 .fi 17 18 .LP 19 .nf 20 \fBvoid\fR \fBpsiginfo\fR(\fBconst siginfo_t *\fR\fIpinfo\fR, \fBconst char *\fR\fIs\fR); 21 .fi 22 23 .SH DESCRIPTION 24 .LP 25 The \fBpsignal()\fR and \fBpsiginfo()\fR functions produce messages on the 26 standard error output describing a signal. The \fIsig\fR argument is a signal 27 that may have been passed as the first argument to a signal handler. The 28 \fIpinfo\fR argument is a pointer to a \fBsiginfo\fR structure that may have 29 been passed as the second argument to an enhanced signal handler. See 30 \fBsigaction\fR(2). The argument string \fIs\fR is printed first, followed by a 31 colon and a blank, followed by the message and a \fBNEWLINE\fR character. 32 .SH USAGE 33 .LP 34 Messages printed from these functions are in the native language specified by 35 the \fBLC_MESSAGES\fR locale category. See \fBsetlocale\fR(3C). 36 .SH ATTRIBUTES 37 .LP 38 See \fBattributes\fR(5) for descriptions of the following attributes: 39 .sp 40 41 .sp 42 .TS 43 box; 44 c | c 45 l | l . 46 ATTRIBUTE TYPE ATTRIBUTE VALUE 47 _ 48 MT-Level Safe 49 .TE 50 51 .SH SEE ALSO 52 .LP 53 \fBsigaction\fR(2), \fBgettext\fR(3C), \fBperror\fR(3C), \fBsetlocale\fR(3C), 54 \fBsiginfo.h\fR(3HEAD), \fBsignal.h\fR(3HEAD), \fBattributes\fR(5)