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

raise.3p (2622B)


  1. '\" et
  2. .TH RAISE "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. raise
  12. \(em send a signal to the executing process
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <signal.h>
  17. .P
  18. int raise(int \fIsig\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The functionality described on this reference page is aligned with the
  22. ISO\ C standard. Any conflict between the requirements described here and the
  23. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  24. .P
  25. The
  26. \fIraise\fR()
  27. function shall send the signal
  28. .IR sig
  29. to the executing
  30. thread or process.
  31. If a signal handler is called, the
  32. \fIraise\fR()
  33. function shall not return until after the signal handler does.
  34. .P
  35. The effect of the
  36. \fIraise\fR()
  37. function shall be equivalent to calling:
  38. .sp
  39. .RS 4
  40. .nf
  41. pthread_kill(pthread_self(), sig);
  42. .fi
  43. .P
  44. .RE
  45. .SH "RETURN VALUE"
  46. Upon successful completion, 0 shall be returned. Otherwise, a
  47. non-zero value shall be returned
  48. and
  49. .IR errno
  50. shall be set to indicate the error.
  51. .SH ERRORS
  52. The
  53. \fIraise\fR()
  54. function shall fail if:
  55. .TP
  56. .BR EINVAL
  57. The value of the
  58. .IR sig
  59. argument is an invalid signal number.
  60. .LP
  61. .IR "The following sections are informative."
  62. .SH EXAMPLES
  63. None.
  64. .SH "APPLICATION USAGE"
  65. None.
  66. .SH RATIONALE
  67. The term ``thread'' is an extension to the ISO\ C standard.
  68. .SH "FUTURE DIRECTIONS"
  69. None.
  70. .SH "SEE ALSO"
  71. .IR "\fIkill\fR\^(\|)",
  72. .IR "\fIsigaction\fR\^(\|)"
  73. .P
  74. The Base Definitions volume of POSIX.1\(hy2017,
  75. .IR "\fB<signal.h>\fP",
  76. .IR "\fB<sys_types.h>\fP"
  77. .\"
  78. .SH COPYRIGHT
  79. Portions of this text are reprinted and reproduced in electronic form
  80. from IEEE Std 1003.1-2017, Standard for Information Technology
  81. -- Portable Operating System Interface (POSIX), The Open Group Base
  82. Specifications Issue 7, 2018 Edition,
  83. Copyright (C) 2018 by the Institute of
  84. Electrical and Electronics Engineers, Inc and The Open Group.
  85. In the event of any discrepancy between this version and the original IEEE and
  86. The Open Group Standard, the original IEEE and The Open Group Standard
  87. is the referee document. The original Standard can be obtained online at
  88. http://www.opengroup.org/unix/online.html .
  89. .PP
  90. Any typographical or formatting errors that appear
  91. in this page are most likely
  92. to have been introduced during the conversion of the source files to
  93. man page format. To report such errors, see
  94. https://www.kernel.org/doc/man-pages/reporting_bugs.html .