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

posix_spawnattr_getsigmask.3p (3613B)


  1. '\" et
  2. .TH POSIX_SPAWNATTR_GETSIGMASK "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. posix_spawnattr_getsigmask,
  12. posix_spawnattr_setsigmask
  13. \(em get and set the spawn-sigmask attribute of a spawn attributes object
  14. (\fBADVANCED REALTIME\fP)
  15. .SH SYNOPSIS
  16. .LP
  17. .nf
  18. #include <signal.h>
  19. #include <spawn.h>
  20. .P
  21. int posix_spawnattr_getsigmask(const posix_spawnattr_t *restrict \fIattr\fP,
  22. sigset_t *restrict \fIsigmask\fP);
  23. int posix_spawnattr_setsigmask(posix_spawnattr_t *restrict \fIattr\fP,
  24. const sigset_t *restrict \fIsigmask\fP);
  25. .fi
  26. .SH DESCRIPTION
  27. The
  28. \fIposix_spawnattr_getsigmask\fR()
  29. function shall obtain the value of the
  30. .IR spawn-sigmask
  31. attribute from the attributes object referenced by
  32. .IR attr .
  33. .P
  34. The
  35. \fIposix_spawnattr_setsigmask\fR()
  36. function shall set the
  37. .IR spawn-sigmask
  38. attribute in an initialized attributes object referenced by
  39. .IR attr .
  40. .P
  41. The
  42. .IR spawn-sigmask
  43. attribute represents the signal mask in effect in the new process image
  44. of a spawn operation (if POSIX_SPAWN_SETSIGMASK is set in the
  45. .IR spawn-flags
  46. attribute). The default value of this attribute is unspecified.
  47. .SH "RETURN VALUE"
  48. Upon successful completion,
  49. \fIposix_spawnattr_getsigmask\fR()
  50. shall return zero and store the value of the
  51. .IR spawn-sigmask
  52. attribute of
  53. .IR attr
  54. into the object referenced by the
  55. .IR sigmask
  56. parameter; otherwise, an error number shall be returned to indicate the
  57. error.
  58. .P
  59. Upon successful completion,
  60. \fIposix_spawnattr_setsigmask\fR()
  61. shall return zero; otherwise, an error number shall be returned to
  62. indicate the error.
  63. .SH ERRORS
  64. These functions may fail if:
  65. .TP
  66. .BR EINVAL
  67. The value specified by
  68. .IR attr
  69. is invalid.
  70. .P
  71. The
  72. \fIposix_spawnattr_setsigmask\fR()
  73. function may fail if:
  74. .TP
  75. .BR EINVAL
  76. The value of the attribute being set is not valid.
  77. .LP
  78. .IR "The following sections are informative."
  79. .SH EXAMPLES
  80. None.
  81. .SH "APPLICATION USAGE"
  82. These functions are part of the Spawn option and need not be
  83. provided on all implementations.
  84. .SH RATIONALE
  85. None.
  86. .SH "FUTURE DIRECTIONS"
  87. None.
  88. .SH "SEE ALSO"
  89. .ad l
  90. .IR "\fIposix_spawn\fR\^(\|)",
  91. .IR "\fIposix_spawnattr_destroy\fR\^(\|)",
  92. .IR "\fIposix_spawnattr_getsigdefault\fR\^(\|)",
  93. .IR "\fIposix_spawnattr_getflags\fR\^(\|)",
  94. .IR "\fIposix_spawnattr_getpgroup\fR\^(\|)",
  95. .IR "\fIposix_spawnattr_getschedparam\fR\^(\|)",
  96. .IR "\fIposix_spawnattr_getschedpolicy\fR\^(\|)"
  97. .ad b
  98. .P
  99. The Base Definitions volume of POSIX.1\(hy2017,
  100. .IR "\fB<signal.h>\fP",
  101. .IR "\fB<spawn.h>\fP"
  102. .\"
  103. .SH COPYRIGHT
  104. Portions of this text are reprinted and reproduced in electronic form
  105. from IEEE Std 1003.1-2017, Standard for Information Technology
  106. -- Portable Operating System Interface (POSIX), The Open Group Base
  107. Specifications Issue 7, 2018 Edition,
  108. Copyright (C) 2018 by the Institute of
  109. Electrical and Electronics Engineers, Inc and The Open Group.
  110. In the event of any discrepancy between this version and the original IEEE and
  111. The Open Group Standard, the original IEEE and The Open Group Standard
  112. is the referee document. The original Standard can be obtained online at
  113. http://www.opengroup.org/unix/online.html .
  114. .PP
  115. Any typographical or formatting errors that appear
  116. in this page are most likely
  117. to have been introduced during the conversion of the source files to
  118. man page format. To report such errors, see
  119. https://www.kernel.org/doc/man-pages/reporting_bugs.html .