unw_is_signal_frame.man 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. '\" t
  2. .\" Manual page created with latex2man on Thu Aug 16 09:44:45 MDT 2007
  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. .fi
  11. ..
  12. .TH "UNW\\_IS\\_SIGNAL\\_FRAME" "3" "16 August 2007" "Programming Library " "Programming Library "
  13. .SH NAME
  14. unw_is_signal_frame
  15. \-\- check if current frame is a signal frame
  16. .PP
  17. .SH SYNOPSIS
  18. .PP
  19. #include <libunwind.h>
  20. .br
  21. .PP
  22. int
  23. unw_is_signal_frame(unw_cursor_t *cp);
  24. .br
  25. .PP
  26. .SH DESCRIPTION
  27. .PP
  28. The unw_is_signal_frame()
  29. routine returns a positive value
  30. if the current frame identified by cp
  31. is a signal frame, and a
  32. value of 0 otherwise. For the purpose of this discussion, a signal
  33. frame is a frame that was created in response to a potentially
  34. asynchronous interruption. For UNIX and UNIX\-like platforms, such
  35. frames are normally created by the kernel when delivering a signal.
  36. In a kernel\-environment, a signal frame might, for example, correspond
  37. to a frame created in response to a device interrupt.
  38. .PP
  39. Signal frames are somewhat unusual because the asynchronous nature of
  40. the events that create them require storing the contents of registers
  41. that are normally treated as scratch (``caller\-saved\&'') registers.
  42. .PP
  43. .SH RETURN VALUE
  44. .PP
  45. On successful completion, unw_is_signal_frame()
  46. returns a
  47. positive value if the current frame is a signal frame, or 0 if it is
  48. not. Otherwise, a negative value of one of the error\-codes below is
  49. returned.
  50. .PP
  51. .SH THREAD AND SIGNAL SAFETY
  52. .PP
  53. unw_is_signal_frame()
  54. is thread\-safe as well as safe to use
  55. from a signal handler.
  56. .PP
  57. .SH ERRORS
  58. .PP
  59. .TP
  60. UNW_ENOINFO
  61. Libunwind
  62. is unable to determine
  63. whether or not the current frame is a signal frame.
  64. .PP
  65. .SH SEE ALSO
  66. .PP
  67. libunwind(3),
  68. unw_get_reg(3),
  69. unw_set_reg(3),
  70. unw_get_fpreg(3),
  71. unw_set_fpreg(3)
  72. .PP
  73. .SH AUTHOR
  74. .PP
  75. David Mosberger\-Tang
  76. .br
  77. Email: \fBdmosberger@gmail.com\fP
  78. .br
  79. WWW: \fBhttp://www.nongnu.org/libunwind/\fP\&.
  80. .\" NOTE: This file is generated, DO NOT EDIT.