xref: /illumos-gate/usr/src/man/man3c/psignal.3c (revision e121b61f5e8ffbeb2f6b373c967c80351333ee21)
te
Copyright 1989 AT&T. Copyright (c) 2005, Sun Microsystems, Inc. All Rights Reserved.
Copyright (c) 2014, Joyent, Inc. All rights reserved.
Copyright 2015 Circonus, Inc. All rights reserved.
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.
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.
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]
PSIGNAL 3C "Aug 14, 2014"
NAME
psignal, psiginfo - system signal messages
SYNOPSIS

#include <siginfo.h>

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

void psiginfo(const siginfo_t *pinfo, const char *s);
DESCRIPTION

The psignal() and psiginfo() functions produce messages on the standard error output describing a signal. The sig argument is a signal that may have been passed as the first argument to a signal handler. The pinfo argument is a pointer to a siginfo structure that may have been passed as the second argument to an enhanced signal handler. See sigaction(2). The argument string s is printed first, followed by a colon and a blank, followed by the message and a NEWLINE character. If s is the value NULL or an empty string, then nothing is printed for the user's string and the colon and blank are omitted.

USAGE

Messages printed from these functions are in the native language specified by the LC_MESSAGES locale category. See setlocale(3C).

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level Safe
SEE ALSO

sigaction(2), gettext(3C), perror(3C), setlocale(3C), siginfo.h(3HEAD), signal.h(3HEAD), attributes(5)