unw_is_signal_frame.tex 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. \documentclass{article}
  2. \usepackage[fancyhdr,pdf]{latex2man}
  3. \input{common.tex}
  4. \begin{document}
  5. \begin{Name}{3}{unw\_is\_signal\_frame}{David Mosberger-Tang}{Programming Library}{unw\_is\_signal\_frame}unw\_is\_signal\_frame -- check if current frame is a signal frame
  6. \end{Name}
  7. \section{Synopsis}
  8. \File{\#include $<$libunwind.h$>$}\\
  9. \Type{int} \Func{unw\_is\_signal\_frame}(\Type{unw\_cursor\_t~*}\Var{cp});\\
  10. \section{Description}
  11. The \Func{unw\_is\_signal\_frame}() routine returns a positive value
  12. if the current frame identified by \Var{cp} is a signal frame, and a
  13. value of 0 otherwise. For the purpose of this discussion, a signal
  14. frame is a frame that was created in response to a potentially
  15. asynchronous interruption. For UNIX and UNIX-like platforms, such
  16. frames are normally created by the kernel when delivering a signal.
  17. In a kernel-environment, a signal frame might, for example, correspond
  18. to a frame created in response to a device interrupt.
  19. Signal frames are somewhat unusual because the asynchronous nature of
  20. the events that create them require storing the contents of registers
  21. that are normally treated as scratch (``caller-saved'') registers.
  22. \section{Return Value}
  23. On successful completion, \Func{unw\_is\_signal\_frame}() returns a
  24. positive value if the current frame is a signal frame, or 0 if it is
  25. not. Otherwise, a negative value of one of the error-codes below is
  26. returned.
  27. \section{Thread and Signal Safety}
  28. \Func{unw\_is\_signal\_frame}() is thread-safe as well as safe to use
  29. from a signal handler.
  30. \section{Errors}
  31. \begin{Description}
  32. \item[\Const{UNW\_ENOINFO}] \Prog{Libunwind} is unable to determine
  33. whether or not the current frame is a signal frame.
  34. \end{Description}
  35. \section{See Also}
  36. \SeeAlso{libunwind(3)},
  37. \SeeAlso{unw\_get\_reg(3)},
  38. \SeeAlso{unw\_set\_reg(3)},
  39. \SeeAlso{unw\_get\_fpreg(3)},
  40. \SeeAlso{unw\_set\_fpreg(3)}
  41. \section{Author}
  42. \noindent
  43. David Mosberger-Tang\\
  44. Email: \Email{dmosberger@gmail.com}\\
  45. WWW: \URL{http://www.nongnu.org/libunwind/}.
  46. \LatexManEnd
  47. \end{document}