1 .\" $NetBSD: siginfo.2,v 1.3 2007/05/21 19:42:25 christos Exp $
3 .\" Copyright (c) 2003 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Christos Zoulas.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd signal information
40 is a structure type which contains information about a signal delivered
44 includes the following members:
45 .Bd -literal -offset indent
52 contains the signal number generated by the system.
56 is non-zero, then it contains a system specific error number associated
58 This number is defined in
63 is less than or equal to zero, the signal was generated by a user process
64 or a user requested service:
65 .Bl -tag -width SI_ASYNCIO
67 The signal was generated via
71 structure contains the following additional members:
72 .Bd -literal -offset indent
79 field contains the pid of the sending process and the
81 field contains the user id of the sending process.
83 .\" The signal was generated via
87 .\" structure contains the following additional members:
88 .\" .Bd -literal -offset indent
91 .\" sigval_t si_value;
96 .\" field contains the pid of the sending process and the
98 .\" field contains the user id of the sending process.
101 .\" field contains the value sent via
104 The signal was generated because a timer set by
109 structure contains the following additional members:
110 .Bd -literal -offset indent
116 field contains the value set via
119 The signal was generated by completion of an asynchronous I/O operation.
122 structure contains the following additional members:
123 .Bd -literal -offset indent
130 argument contains the file descriptor number on which the operation was
133 field contains the side and priority of the operation.
134 If the operation was a normal read,
137 .Dv POLLIN | POLLRDNORM ;
138 on an out-of-band read it will contain
139 .Dv POLLPRI | POLLRDBAND ;
140 on a normal write it will contain
141 .Dv POLLOUT | POLLWRNORM ;
142 on an out-of-band write it will contain
143 .Dv POLLPRI | POLLWRBAND .
145 .\" The signal was generated because of the arrival of a message on an empty
148 .\" .Xr mq_notify 3 .
153 is positive, then it contains a signal specific reason
154 why the signal was generated:
155 .Bl -tag -width SIGCHLD
157 .Bl -tag -width ILL_ILLOPC
163 Illegal addressing mode
176 .Bl -tag -width FPE_INTDIV
178 Integer divide by zero
182 Floating point divide by zero
184 Floating point overflow
186 Floating point underflow
188 Floating poing inexact result
190 Invalid Floating poing operation
192 Subscript out of range
195 .Bl -tag -width SEGV_MAPERR
197 Address not mapped to object
199 Invalid permissions for mapped object
202 .Bl -tag -width BUS_ADRALN
204 Invalid address alignment
206 Non-existant physical address
208 Object specific hardware error
211 .Bl -tag -width TRAP_BRKPT
218 .Bl -tag -width CLD_CONTINUED
222 Child has terminated abnormally but did not create a core file
224 Child has terminated abnormally and created a core file
226 Traced child has trapped
230 Stopped child has continued
233 .Bl -tag -width POLL_OUT
237 Output buffers available
239 Input message available
243 High priority input available
250 .Dv SIGILL , SIGFPE ,
255 structure contains the following additional members:
256 .Bd -literal -offset indent
262 contains the address of the faulting instruction and
264 contains a hardware specific reason.
272 structure contains the following additional members:
273 .Bd -literal -offset indent
279 contains the address of the faulting data and
281 contains a hardware specific reason.
287 structure contains the following additional members:
288 .Bd -literal -offset indent
295 argument contains the file descriptor number on which the operation was
298 field contains the side and priority of the operation as described above.
304 structure contains the following additional members:
305 .Bd -literal -offset indent
315 field contains the pid of the process who's status changed, the
317 field contains the user id of the that process, the
319 field contains a status code described in
325 fields contain the user and system process accounting time.
334 functionality first appeared in