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

sigaddset.3p (2868B)


  1. '\" et
  2. .TH SIGADDSET "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. sigaddset
  12. \(em add a signal to a signal set
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <signal.h>
  17. .P
  18. int sigaddset(sigset_t *\fIset\fP, int \fIsigno\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The
  22. \fIsigaddset\fR()
  23. function adds the individual signal specified by the
  24. .IR signo
  25. to the signal set pointed to by
  26. .IR set .
  27. .P
  28. Applications shall call either
  29. \fIsigemptyset\fR()
  30. or
  31. \fIsigfillset\fR()
  32. at least once for each object of type
  33. .BR sigset_t
  34. prior to any other use of that object. If such an object is not
  35. initialized in this way, but is nonetheless supplied as an argument to
  36. any of
  37. \fIpthread_sigmask\fR(),
  38. \fIsigaction\fR(),
  39. \fIsigaddset\fR(),
  40. \fIsigdelset\fR(),
  41. \fIsigismember\fR(),
  42. \fIsigpending\fR(),
  43. \fIsigprocmask\fR(),
  44. \fIsigsuspend\fR(),
  45. \fIsigtimedwait\fR(),
  46. \fIsigwait\fR(),
  47. or
  48. \fIsigwaitinfo\fR(),
  49. the results are undefined.
  50. .SH "RETURN VALUE"
  51. Upon successful completion,
  52. \fIsigaddset\fR()
  53. shall return 0; otherwise, it shall return \-1 and set
  54. .IR errno
  55. to indicate the error.
  56. .SH ERRORS
  57. The
  58. \fIsigaddset\fR()
  59. function may fail if:
  60. .TP
  61. .BR EINVAL
  62. The value of the
  63. .IR signo
  64. argument is an invalid or unsupported signal number.
  65. .LP
  66. .IR "The following sections are informative."
  67. .SH EXAMPLES
  68. None.
  69. .SH "APPLICATION USAGE"
  70. None.
  71. .SH RATIONALE
  72. None.
  73. .SH "FUTURE DIRECTIONS"
  74. None.
  75. .SH "SEE ALSO"
  76. .IR "Section 2.4" ", " "Signal Concepts",
  77. .IR "\fIpthread_sigmask\fR\^(\|)",
  78. .IR "\fIsigaction\fR\^(\|)",
  79. .IR "\fIsigdelset\fR\^(\|)",
  80. .IR "\fIsigemptyset\fR\^(\|)",
  81. .IR "\fIsigfillset\fR\^(\|)",
  82. .IR "\fIsigismember\fR\^(\|)",
  83. .IR "\fIsigpending\fR\^(\|)",
  84. .IR "\fIsigsuspend\fR\^(\|)"
  85. .P
  86. The Base Definitions volume of POSIX.1\(hy2017,
  87. .IR "\fB<signal.h>\fP"
  88. .\"
  89. .SH COPYRIGHT
  90. Portions of this text are reprinted and reproduced in electronic form
  91. from IEEE Std 1003.1-2017, Standard for Information Technology
  92. -- Portable Operating System Interface (POSIX), The Open Group Base
  93. Specifications Issue 7, 2018 Edition,
  94. Copyright (C) 2018 by the Institute of
  95. Electrical and Electronics Engineers, Inc and The Open Group.
  96. In the event of any discrepancy between this version and the original IEEE and
  97. The Open Group Standard, the original IEEE and The Open Group Standard
  98. is the referee document. The original Standard can be obtained online at
  99. http://www.opengroup.org/unix/online.html .
  100. .PP
  101. Any typographical or formatting errors that appear
  102. in this page are most likely
  103. to have been introduced during the conversion of the source files to
  104. man page format. To report such errors, see
  105. https://www.kernel.org/doc/man-pages/reporting_bugs.html .