📄 spawn.h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2003 The Open Group, All Rights Reserved --><title><spawn.h></title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> <a name="<spawn.h>"></a> <a name="tag_13_44"></a><!-- <spawn.h> --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2003 Edition<br>Copyright © 2001-2003 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_13_44_01"></a>NAME</h4><blockquote>spawn.h - spawn (<b>ADVANCED REALTIME</b>)</blockquote><h4><a name="tag_13_44_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><div class="box"><tt><sup>[<a href="javascript:open_code('SPN')">SPN</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0"> #include <spawn.h> <img src="../images/opt-end.gif" alt="[Option End]" border="0"></tt></div></blockquote><h4><a name="tag_13_44_03"></a>DESCRIPTION</h4><blockquote><p>The <i><spawn.h></i> header shall define the <b>posix_spawnattr_t</b> and <b>posix_spawn_file_actions_t</b> types used inperforming spawn operations.</p><p>The <i><spawn.h></i> header shall define the flags that may be set in a <b>posix_spawnattr_t</b> object using the <a href="../functions/posix_spawnattr_setflags.html"><i>posix_spawnattr_setflags</i>()</a> function:</p><p><br>POSIX_SPAWN_RESETIDS<br>POSIX_SPAWN_SETPGROUP<br><sup>[<a href="javascript:open_code('PS')">PS</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0"><br>POSIX_SPAWN_SETSCHEDPARAM<br>POSIX_SPAWN_SETSCHEDULER<br><img src="../images/opt-end.gif" alt="[Option End]" border="0"><br>POSIX_SPAWN_SETSIGDEF<br>POSIX_SPAWN_SETSIGMASK<br></p><p>The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided.</p><pre><tt>int posix_spawn(pid_t *restrict, const char *restrict, const posix_spawn_file_actions_t *, const posix_spawnattr_t *restrict, char *const [restrict], char *const [restrict]);int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *, int);int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *, int, int);int posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *restrict, int, const char *restrict, int, mode_t);int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *);int posix_spawn_file_actions_init(posix_spawn_file_actions_t *);int posix_spawnattr_destroy(posix_spawnattr_t *);int posix_spawnattr_getsigdefault(const posix_spawnattr_t *restrict, sigset_t *restrict);int posix_spawnattr_getflags(const posix_spawnattr_t *restrict, short *restrict);int posix_spawnattr_getpgroup(const posix_spawnattr_t *restrict, pid_t *restrict);<sup>[<a href="javascript:open_code('PS')">PS</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">int posix_spawnattr_getschedparam(const posix_spawnattr_t *restrict, struct sched_param *restrict);int posix_spawnattr_getschedpolicy(const posix_spawnattr_t *restrict, int *restrict);<img src="../images/opt-end.gif" alt="[Option End]" border="0">int posix_spawnattr_getsigmask(const posix_spawnattr_t *restrict, sigset_t *restrict);int posix_spawnattr_init(posix_spawnattr_t *);int posix_spawnattr_setsigdefault(posix_spawnattr_t *restrict, const sigset_t *restrict);int posix_spawnattr_setflags(posix_spawnattr_t *, short);int posix_spawnattr_setpgroup(posix_spawnattr_t *, pid_t);<br><sup>[<a href="javascript:open_code('PS')">PS</a>]</sup><img src="../images/opt-start.gif" alt="[Option Start]" border="0">int posix_spawnattr_setschedparam(posix_spawnattr_t *restrict, const struct sched_param *restrict);int posix_spawnattr_setschedpolicy(posix_spawnattr_t *, int);<img src="../images/opt-end.gif" alt="[Option End]" border="0">int posix_spawnattr_setsigmask(posix_spawnattr_t *restrict, const sigset_t *restrict);int posix_spawnp(pid_t *restrict, const char *restrict, const posix_spawn_file_actions_t *, const posix_spawnattr_t *restrict, char *const [restrict], char *const [restrict]);</tt></pre><p>Inclusion of the <i><spawn.h></i> header may make visible symbols defined in the <a href="../basedefs/sched.h.html"><i><sched.h></i></a>, <a href="../basedefs/signal.h.html"><i><signal.h></i></a>, and <ahref="../basedefs/sys/types.h.html"><i><sys/types.h></i></a> headers.</p></blockquote><hr><div class="box"><em>The following sections are informative.</em></div><h4><a name="tag_13_44_04"></a>APPLICATION USAGE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_44_05"></a>RATIONALE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_44_06"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_44_07"></a>SEE ALSO</h4><blockquote><p><a href="sched.h.html"><i><sched.h></i></a> , <a href="semaphore.h.html"><i><semaphore.h></i></a> , <a href="signal.h.html"><i><signal.h></i></a> , <a href="sys/types.h.html"><i><sys/types.h></i></a> , the System Interfacesvolume of IEEE Std 1003.1-2001, <a href="../functions/posix_spawnattr_destroy.html"><i>posix_spawnattr_destroy</i>()</a>,<a href="../functions/posix_spawnattr_getsigdefault.html"><i>posix_spawnattr_getsigdefault</i>()</a>, <a href="../functions/posix_spawnattr_getflags.html"><i>posix_spawnattr_getflags</i>()</a>, <a href="../functions/posix_spawnattr_getpgroup.html"><i>posix_spawnattr_getpgroup</i>()</a>, <a href="../functions/posix_spawnattr_getschedparam.html"><i>posix_spawnattr_getschedparam</i>()</a>, <a href="../functions/posix_spawnattr_getschedpolicy.html"><i>posix_spawnattr_getschedpolicy</i>()</a>, <a href="../functions/posix_spawnattr_getsigmask.html"><i>posix_spawnattr_getsigmask</i>()</a>, <a href="../functions/posix_spawnattr_init.html"><i>posix_spawnattr_init</i>()</a>, <a href="../functions/posix_spawnattr_setsigdefault.html"><i>posix_spawnattr_setsigdefault</i>()</a>, <a href="../functions/posix_spawnattr_setflags.html"><i>posix_spawnattr_setflags</i>()</a>, <a href="../functions/posix_spawnattr_setpgroup.html"><i>posix_spawnattr_setpgroup</i>()</a>, <a href="../functions/posix_spawnattr_setschedparam.html"><i>posix_spawnattr_setschedparam</i>()</a>, <a href="../functions/posix_spawnattr_setschedpolicy.html"><i>posix_spawnattr_setschedpolicy</i>()</a>, <a href="../functions/posix_spawnattr_setsigmask.html"><i>posix_spawnattr_setsigmask</i>()</a>, <a href="../functions/posix_spawn.html"><i>posix_spawn</i>()</a>, <a href="../functions/posix_spawn_file_actions_addclose.html"><i>posix_spawn_file_actions_addclose</i>()</a>, <a href="../functions/posix_spawn_file_actions_adddup2.html"><i>posix_spawn_file_actions_adddup2</i>()</a>, <a href="../functions/posix_spawn_file_actions_addopen.html"><i>posix_spawn_file_actions_addopen</i>()</a>, <a href="../functions/posix_spawn_file_actions_destroy.html"><i>posix_spawn_file_actions_destroy</i>()</a>, <a href="../functions/posix_spawn_file_actions_init.html"><i>posix_spawn_file_actions_init</i>()</a>, <a href="../functions/posix_spawnp.html"><i>posix_spawnp</i>()</a></p></blockquote><h4><a name="tag_13_44_08"></a>CHANGE HISTORY</h4><blockquote><p>First released in Issue 6. Included for alignment with IEEE Std 1003.1d-1999.</p><p>The <b>restrict</b> keyword is added to the prototypes for <a href="../functions/posix_spawn.html"><i>posix_spawn</i>()</a>, <ahref="../functions/posix_spawn_file_actions_addopen.html"><i>posix_spawn_file_actions_addopen</i>()</a>, <a href="../functions/posix_spawnattr_getsigdefault.html"><i>posix_spawnattr_getsigdefault</i>()</a>, <a href="../functions/posix_spawnattr_getflags.html"><i>posix_spawnattr_getflags</i>()</a>, <a href="../functions/posix_spawnattr_getpgroup.html"><i>posix_spawnattr_getpgroup</i>()</a>, <a href="../functions/posix_spawnattr_getschedparam.html"><i>posix_spawnattr_getschedparam</i>()</a>, <a href="../functions/posix_spawnattr_getschedpolicy.html"><i>posix_spawnattr_getschedpolicy</i>()</a>, <a href="../functions/posix_spawnattr_getsigmask.html"><i>posix_spawnattr_getsigmask</i>()</a>, <a href="../functions/posix_spawnattr_setsigdefault.html"><i>posix_spawnattr_setsigdefault</i>()</a>, <a href="../functions/posix_spawnattr_setschedparam.html"><i>posix_spawnattr_setschedparam</i>()</a>, <a href="../functions/posix_spawnattr_setsigmask.html"><i>posix_spawnattr_setsigmask</i>()</a>, and <a href="../functions/posix_spawnp.html"><i>posix_spawnp</i>()</a>.</p></blockquote><div class="box"><em>End of informative text.</em></div><hr><hr size="2" noshade><center><font size="2"><!--footer start-->UNIX ® is a registered Trademark of The Open Group.<br>POSIX ® is a registered Trademark of The IEEE.<br>[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>]</font></center><!--footer end--><hr size="2" noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -