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

sigismember.3p (2979B)


  1. '\" et
  2. .TH SIGISMEMBER "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. sigismember
  12. \(em test for a signal in a signal set
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <signal.h>
  17. .P
  18. int sigismember(const sigset_t *\fIset\fP, int \fIsigno\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The
  22. \fIsigismember\fR()
  23. function shall test whether the signal specified by
  24. .IR signo
  25. is a member of the set pointed to by
  26. .IR set .
  27. .P
  28. Applications should 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. \fIsigismember\fR()
  53. shall return 1 if the specified signal is a member of the specified set,
  54. or 0 if it is not. Otherwise, it shall return \-1 and set
  55. .IR errno
  56. to indicate the error.
  57. .SH ERRORS
  58. The
  59. \fIsigismember\fR()
  60. function may fail if:
  61. .TP
  62. .BR EINVAL
  63. The
  64. .IR signo
  65. argument is not a valid signal number, or is an unsupported signal
  66. number.
  67. .LP
  68. .IR "The following sections are informative."
  69. .SH EXAMPLES
  70. None.
  71. .SH "APPLICATION USAGE"
  72. None.
  73. .SH RATIONALE
  74. None.
  75. .SH "FUTURE DIRECTIONS"
  76. None.
  77. .SH "SEE ALSO"
  78. .IR "Section 2.4" ", " "Signal Concepts",
  79. .IR "\fIpthread_sigmask\fR\^(\|)",
  80. .IR "\fIsigaction\fR\^(\|)",
  81. .IR "\fIsigaddset\fR\^(\|)",
  82. .IR "\fIsigdelset\fR\^(\|)",
  83. .IR "\fIsigfillset\fR\^(\|)",
  84. .IR "\fIsigemptyset\fR\^(\|)",
  85. .IR "\fIsigpending\fR\^(\|)",
  86. .IR "\fIsigsuspend\fR\^(\|)"
  87. .P
  88. The Base Definitions volume of POSIX.1\(hy2017,
  89. .IR "\fB<signal.h>\fP"
  90. .\"
  91. .SH COPYRIGHT
  92. Portions of this text are reprinted and reproduced in electronic form
  93. from IEEE Std 1003.1-2017, Standard for Information Technology
  94. -- Portable Operating System Interface (POSIX), The Open Group Base
  95. Specifications Issue 7, 2018 Edition,
  96. Copyright (C) 2018 by the Institute of
  97. Electrical and Electronics Engineers, Inc and The Open Group.
  98. In the event of any discrepancy between this version and the original IEEE and
  99. The Open Group Standard, the original IEEE and The Open Group Standard
  100. is the referee document. The original Standard can be obtained online at
  101. http://www.opengroup.org/unix/online.html .
  102. .PP
  103. Any typographical or formatting errors that appear
  104. in this page are most likely
  105. to have been introduced during the conversion of the source files to
  106. man page format. To report such errors, see
  107. https://www.kernel.org/doc/man-pages/reporting_bugs.html .