logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

siglongjmp.3p (2746B)


  1. '\" et
  2. .TH SIGLONGJMP "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. siglongjmp
  12. \(em non-local goto with signal handling
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <setjmp.h>
  17. .P
  18. void siglongjmp(sigjmp_buf \fIenv\fP, int \fIval\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The
  22. \fIsiglongjmp\fR()
  23. function shall be equivalent to the
  24. \fIlongjmp\fR()
  25. function, except as follows:
  26. .IP " *" 4
  27. References to
  28. \fIsetjmp\fR()
  29. shall be equivalent to
  30. \fIsigsetjmp\fR().
  31. .IP " *" 4
  32. The
  33. \fIsiglongjmp\fR()
  34. function shall restore the saved signal mask if and only if the
  35. .IR env
  36. argument was initialized by a call to
  37. \fIsigsetjmp\fR()
  38. with a non-zero
  39. .IR savemask
  40. argument.
  41. .SH "RETURN VALUE"
  42. After
  43. \fIsiglongjmp\fR()
  44. is completed, program execution shall continue as if the corresponding
  45. invocation of
  46. \fIsigsetjmp\fR()
  47. had just returned the value specified by
  48. .IR val .
  49. The
  50. \fIsiglongjmp\fR()
  51. function shall not cause
  52. \fIsigsetjmp\fR()
  53. to return 0; if
  54. .IR val
  55. is 0,
  56. \fIsigsetjmp\fR()
  57. shall return the value 1.
  58. .SH ERRORS
  59. No errors are defined.
  60. .LP
  61. .IR "The following sections are informative."
  62. .SH EXAMPLES
  63. None.
  64. .SH "APPLICATION USAGE"
  65. The distinction between
  66. \fIsetjmp\fR()
  67. or
  68. \fIlongjmp\fR()
  69. and
  70. \fIsigsetjmp\fR()
  71. or
  72. \fIsiglongjmp\fR()
  73. is only significant for programs which use
  74. \fIsigaction\fR(),
  75. \fIsigprocmask\fR(),
  76. or
  77. \fIsigsuspend\fR().
  78. .SH RATIONALE
  79. None.
  80. .SH "FUTURE DIRECTIONS"
  81. None.
  82. .SH "SEE ALSO"
  83. .IR "\fIlongjmp\fR\^(\|)",
  84. .IR "\fIpthread_sigmask\fR\^(\|)",
  85. .IR "\fIsetjmp\fR\^(\|)",
  86. .IR "\fIsigsetjmp\fR\^(\|)",
  87. .IR "\fIsigsuspend\fR\^(\|)"
  88. .P
  89. The Base Definitions volume of POSIX.1\(hy2017,
  90. .IR "\fB<setjmp.h>\fP"
  91. .\"
  92. .SH COPYRIGHT
  93. Portions of this text are reprinted and reproduced in electronic form
  94. from IEEE Std 1003.1-2017, Standard for Information Technology
  95. -- Portable Operating System Interface (POSIX), The Open Group Base
  96. Specifications Issue 7, 2018 Edition,
  97. Copyright (C) 2018 by the Institute of
  98. Electrical and Electronics Engineers, Inc and The Open Group.
  99. In the event of any discrepancy between this version and the original IEEE and
  100. The Open Group Standard, the original IEEE and The Open Group Standard
  101. is the referee document. The original Standard can be obtained online at
  102. http://www.opengroup.org/unix/online.html .
  103. .PP
  104. Any typographical or formatting errors that appear
  105. in this page are most likely
  106. to have been introduced during the conversion of the source files to
  107. man page format. To report such errors, see
  108. https://www.kernel.org/doc/man-pages/reporting_bugs.html .