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

spawn.h.0p (5341B)


  1. '\" et
  2. .TH spawn.h "0P" 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. spawn.h
  12. \(em spawn (\fBADVANCED REALTIME\fP)
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <spawn.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <spawn.h>
  21. header shall define the
  22. .BR posix_spawnattr_t
  23. and
  24. .BR posix_spawn_file_actions_t
  25. types used in performing spawn operations.
  26. .P
  27. The
  28. .IR <spawn.h>
  29. header shall define the
  30. .BR mode_t
  31. and
  32. .BR pid_t
  33. types as described in
  34. .IR <sys/types.h> .
  35. .P
  36. The
  37. .IR <spawn.h>
  38. header shall define the
  39. .BR sigset_t
  40. type as described in
  41. .IR <signal.h> .
  42. .P
  43. The tag
  44. .BR sched_param
  45. shall be declared as naming an incomplete structure type, the contents
  46. of which are described in the
  47. .IR <sched.h>
  48. header.
  49. .P
  50. The
  51. .IR <spawn.h>
  52. header shall define the following symbolic constants for use as the
  53. flags that may be set in a
  54. .BR posix_spawnattr_t
  55. object using the
  56. \fIposix_spawnattr_setflags\fR()
  57. function:
  58. .P
  59. .nf
  60. POSIX_SPAWN_RESETIDS
  61. POSIX_SPAWN_SETPGROUP
  62. POSIX_SPAWN_SETSCHEDPARAM
  63. POSIX_SPAWN_SETSCHEDULER
  64. POSIX_SPAWN_SETSIGDEF
  65. POSIX_SPAWN_SETSIGMASK
  66. .fi
  67. .P
  68. The following shall be declared as functions and may also be defined
  69. as macros. Function prototypes shall be provided.
  70. .sp
  71. .RS 4
  72. .nf
  73. int posix_spawn(pid_t *restrict, const char *restrict,
  74. const posix_spawn_file_actions_t *,
  75. const posix_spawnattr_t *restrict, char *const [restrict],
  76. char *const [restrict]);
  77. int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *,
  78. int);
  79. int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *,
  80. int, int);
  81. int posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *restrict,
  82. int, const char *restrict, int, mode_t);
  83. int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *);
  84. int posix_spawn_file_actions_init(posix_spawn_file_actions_t *);
  85. int posix_spawnattr_destroy(posix_spawnattr_t *);
  86. int posix_spawnattr_getflags(const posix_spawnattr_t *restrict,
  87. short *restrict);
  88. int posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict,
  89. pid_t *restrict);
  90. int posix_spawnattr_getschedparam(const posix_spawnattr_t *restrict,
  91. struct sched_param *restrict);
  92. int posix_spawnattr_getschedpolicy(const posix_spawnattr_t *restrict,
  93. int *restrict);
  94. int posix_spawnattr_getsigdefault(const posix_spawnattr_t *restrict,
  95. sigset_t *restrict);
  96. int posix_spawnattr_getsigmask(const posix_spawnattr_t *restrict,
  97. sigset_t *restrict);
  98. int posix_spawnattr_init(posix_spawnattr_t *);
  99. int posix_spawnattr_setflags(posix_spawnattr_t *, short);
  100. int posix_spawnattr_setpgroup(posix_spawnattr_t *, pid_t);
  101. .br
  102. int posix_spawnattr_setschedparam(posix_spawnattr_t *restrict,
  103. const struct sched_param *restrict);
  104. int posix_spawnattr_setschedpolicy(posix_spawnattr_t *, int);
  105. int posix_spawnattr_setsigdefault(posix_spawnattr_t *restrict,
  106. const sigset_t *restrict);
  107. int posix_spawnattr_setsigmask(posix_spawnattr_t *restrict,
  108. const sigset_t *restrict);
  109. int posix_spawnp(pid_t *restrict, const char *restrict,
  110. const posix_spawn_file_actions_t *,
  111. const posix_spawnattr_t *restrict,
  112. char *const [restrict], char *const [restrict]);
  113. .fi
  114. .P
  115. .RE
  116. .P
  117. Inclusion of the
  118. .IR <spawn.h>
  119. header may make visible symbols defined in the
  120. .IR <sched.h>
  121. and
  122. .IR <signal.h>
  123. headers.
  124. .LP
  125. .IR "The following sections are informative."
  126. .SH "APPLICATION USAGE"
  127. None.
  128. .SH RATIONALE
  129. None.
  130. .SH "FUTURE DIRECTIONS"
  131. None.
  132. .SH "SEE ALSO"
  133. .IR "\fB<sched.h>\fP",
  134. .IR "\fB<semaphore.h>\fP",
  135. .IR "\fB<signal.h>\fP",
  136. .IR "\fB<sys_types.h>\fP"
  137. .P
  138. .ad l
  139. The System Interfaces volume of POSIX.1\(hy2017,
  140. .IR "\fIposix_spawn\fR\^(\|)",
  141. .IR "\fIposix_spawn_file_actions_addclose\fR\^(\|)",
  142. .IR "\fIposix_spawn_file_actions_adddup2\fR\^(\|)",
  143. .IR "\fIposix_spawn_file_actions_destroy\fR\^(\|)",
  144. .IR "\fIposix_spawnattr_destroy\fR\^(\|)",
  145. .IR "\fIposix_spawnattr_getflags\fR\^(\|)",
  146. .IR "\fIposix_spawnattr_getpgroup\fR\^(\|)",
  147. .IR "\fIposix_spawnattr_getschedparam\fR\^(\|)",
  148. .IR "\fIposix_spawnattr_getschedpolicy\fR\^(\|)",
  149. .IR "\fIposix_spawnattr_getsigdefault\fR\^(\|)",
  150. .IR "\fIposix_spawnattr_getsigmask\fR\^(\|)"
  151. .ad b
  152. .\"
  153. .SH COPYRIGHT
  154. Portions of this text are reprinted and reproduced in electronic form
  155. from IEEE Std 1003.1-2017, Standard for Information Technology
  156. -- Portable Operating System Interface (POSIX), The Open Group Base
  157. Specifications Issue 7, 2018 Edition,
  158. Copyright (C) 2018 by the Institute of
  159. Electrical and Electronics Engineers, Inc and The Open Group.
  160. In the event of any discrepancy between this version and the original IEEE and
  161. The Open Group Standard, the original IEEE and The Open Group Standard
  162. is the referee document. The original Standard can be obtained online at
  163. http://www.opengroup.org/unix/online.html .
  164. .PP
  165. Any typographical or formatting errors that appear
  166. in this page are most likely
  167. to have been introduced during the conversion of the source files to
  168. man page format. To report such errors, see
  169. https://www.kernel.org/doc/man-pages/reporting_bugs.html .