Print this page
5863 psiginfo arguments should be const
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/psignal.3c
          +++ new/usr/src/man/man3c/psignal.3c
   1    1  '\" te
   2    2  .\" Copyright 1989 AT&T.  Copyright (c) 2005, Sun Microsystems, Inc.  All Rights Reserved.
        3 +.\" Copyright 2015 Circonus, Inc.  All rights reserved.
   3    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.
   4    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.
   5    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]
   6    7  .TH PSIGNAL 3C "Mar 31, 2005"
   7    8  .SH NAME
   8    9  psignal, psiginfo \- system signal messages
   9   10  .SH SYNOPSIS
  10   11  .LP
  11   12  .nf
  12   13  #include <siginfo.h>
  13   14  
  14   15  \fBvoid\fR \fBpsignal\fR(\fBint\fR \fIsig\fR, \fBconst char *\fR\fIs\fR);
  15   16  .fi
  16   17  
  17   18  .LP
  18   19  .nf
  19      -\fBvoid\fR \fBpsiginfo\fR(\fBsiginfo_t *\fR\fIpinfo\fR, \fBchar *\fR\fIs\fR);
       20 +\fBvoid\fR \fBpsiginfo\fR(\fBconst siginfo_t *\fR\fIpinfo\fR, \fBconst char *\fR\fIs\fR);
  20   21  .fi
  21   22  
  22   23  .SH DESCRIPTION
  23      -.sp
  24   24  .LP
  25   25  The \fBpsignal()\fR and \fBpsiginfo()\fR functions produce messages on the
  26   26  standard error output describing a signal.  The \fIsig\fR argument is a signal
  27   27  that may have been  passed as the first argument to a signal handler.  The
  28   28  \fIpinfo\fR argument is a pointer to a \fBsiginfo\fR structure that may have
  29   29  been passed as the second argument to an enhanced signal handler.  See
  30   30  \fBsigaction\fR(2). The argument string \fIs\fR is printed first, followed by a
  31   31  colon and a blank, followed by the message and a \fBNEWLINE\fR character.
  32   32  .SH USAGE
  33      -.sp
  34   33  .LP
  35   34  Messages printed from these functions are in the native language specified by
  36   35  the \fBLC_MESSAGES\fR locale category.  See \fBsetlocale\fR(3C).
  37   36  .SH ATTRIBUTES
  38      -.sp
  39   37  .LP
  40   38  See \fBattributes\fR(5) for descriptions of the following attributes:
  41   39  .sp
  42   40  
  43   41  .sp
  44   42  .TS
  45   43  box;
  46   44  c | c
  47   45  l | l .
  48   46  ATTRIBUTE TYPE  ATTRIBUTE VALUE
  49   47  _
  50   48  MT-Level        Safe
  51   49  .TE
  52   50  
  53   51  .SH SEE ALSO
  54      -.sp
  55   52  .LP
  56   53  \fBsigaction\fR(2), \fBgettext\fR(3C), \fBperror\fR(3C), \fBsetlocale\fR(3C),
  57   54  \fBsiginfo.h\fR(3HEAD), \fBsignal.h\fR(3HEAD), \fBattributes\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX