blob: f86b217f11139595e11ca3bd25a44af3e72ed056 [file] [log] [blame]
mostang.com!davidm9eb9f312003-04-01 07:19:34 +00001'\" t
2.\" Manual page created with latex2man on Mon Mar 31 14:25:06 PST 2003
3.\" NOTE: This file is generated, DO NOT EDIT.
4.de Vb
5.ft CW
6.nf
7..
8.de Ve
9.ft R
10
11.fi
12..
13.TH "UNW\\_IS\\_SIGNAL\\_FRAME" "3" "31 March 2003" "Programming Library " "Programming Library "
14.SH NAME
15unw_is_signal_frame
16\-\- check if current frame is a signal frame
17.PP
18.SH SYNOPSIS
19
20.PP
21#include <libunwind.h>
22.br
23.PP
24int
25unw_is_signal_frame(unw_cursor_t *cp);
26.br
27.PP
28.SH DESCRIPTION
29
30.PP
31The unw_is_signal_frame()
32routine returns a positive value
33if the current frame identified by cp
34is a signal frame, and a
35value of 0 otherwise. For the purpose of this discussion, a signal
36frame is a frame that was created in response to a potentially
37asynchronous interruption. For UNIX and UNIX\-like platforms, such
38frames are normally created by the kernel when delivering a signal.
39In a kernel\-environment, a signal frame might, for example, correspond
40to a frame created in response to a device interrupt.
41.PP
42Signal frames are somewhat unusual because the asynchronous nature of
43the events that create them require storing the contents of registers
44that are normally treated as scratch (``caller\-saved\&'') registers.
45.PP
46.SH RETURN VALUE
47
48.PP
49On successful completion, unw_is_signal_frame()
50returns a
51positive value if the current frame is a signal frame, or 0 if it is
52not. Otherwise, a negative value of one of the error\-codes below is
53returned.
54.PP
55.SH THREAD AND SIGNAL SAFETY
56
57.PP
58unw_is_signal_frame()
59is thread\-safe as well as safe to use
60from a signal handler.
61.PP
62.SH ERRORS
63
64.PP
65.TP
66UNW_ENOINFO
67 Libunwind
68is unable to determine
69whether or not the current frame is a signal frame.
70.PP
71.SH SEE ALSO
72
73.PP
74libunwind(3),
75unw_get_reg(3),
76unw_set_reg(3),
77unw_get_fpreg(3),
78unw_set_fpreg(3)
79.PP
80.SH AUTHOR
81
82.PP
83David Mosberger\-Tang
84.br
85Hewlett\-Packard Labs
86.br
87Palo\-Alto, CA 94304
88.br
89Email: \fBdavidm@hpl.hp.com\fP
90.br
91WWW: \fBhttp://www.hpl.hp.com/research/linux/libunwind/\fP\&.
92.\" NOTE: This file is generated, DO NOT EDIT.