Print this page
5863 psiginfo arguments should be const
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
   1 '\" te
   2 .\" Copyright 1989 AT&T.  Copyright (c) 2005, Sun Microsystems, Inc.  All Rights Reserved.

   3 .\" 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.
   4 .\" 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.
   5 .\" 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]
   6 .TH PSIGNAL 3C "Mar 31, 2005"
   7 .SH NAME
   8 psignal, psiginfo \- system signal messages
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 #include <siginfo.h>
  13 
  14 \fBvoid\fR \fBpsignal\fR(\fBint\fR \fIsig\fR, \fBconst char *\fR\fIs\fR);
  15 .fi
  16 
  17 .LP
  18 .nf
  19 \fBvoid\fR \fBpsiginfo\fR(\fBsiginfo_t *\fR\fIpinfo\fR, \fBchar *\fR\fIs\fR);
  20 .fi
  21 
  22 .SH DESCRIPTION
  23 .sp
  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 .sp
  34 .LP
  35 Messages printed from these functions are in the native language specified by
  36 the \fBLC_MESSAGES\fR locale category.  See \fBsetlocale\fR(3C).
  37 .SH ATTRIBUTES
  38 .sp
  39 .LP
  40 See \fBattributes\fR(5) for descriptions of the following attributes:
  41 .sp
  42 
  43 .sp
  44 .TS
  45 box;
  46 c | c
  47 l | l .
  48 ATTRIBUTE TYPE  ATTRIBUTE VALUE
  49 _
  50 MT-Level        Safe
  51 .TE
  52 
  53 .SH SEE ALSO
  54 .sp
  55 .LP
  56 \fBsigaction\fR(2), \fBgettext\fR(3C), \fBperror\fR(3C), \fBsetlocale\fR(3C),
  57 \fBsiginfo.h\fR(3HEAD), \fBsignal.h\fR(3HEAD), \fBattributes\fR(5)
   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)