147 lines
4.5 KiB
HTML
147 lines
4.5 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
|
||
|
<title>QlgSpawnp()--Spawn Process with Path (using NLS-enabled file
|
||
|
name)</title>
|
||
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
||
|
<!-- US Government Users Restricted Rights -->
|
||
|
<!-- Use, duplication or disclosure restricted by -->
|
||
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
||
|
<!-- Begin Header Records -->
|
||
|
<!-- Created by Yvonne Griffin for V5R1-->
|
||
|
<!-- Edited by Kersten Feb 02 -->
|
||
|
<!-- This file has undergone html cleanup July 2002 by JET -->
|
||
|
<!-- End Header Records -->
|
||
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<a name="Top_Of_Page"></a>
|
||
|
<!--Java sync-link-->
|
||
|
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
|
||
|
</script>
|
||
|
|
||
|
<h2>QlgSpawnp()--Spawn Process with Path (using NLS-enabled file name)</h2>
|
||
|
|
||
|
<div class="box" style="width: 60%;">
|
||
|
<br>
|
||
|
Syntax<br>
|
||
|
<pre>
|
||
|
#include <spawn.h>
|
||
|
#include <qlg.h>
|
||
|
|
||
|
pid_t QlgSpawnp(const Qlg_Path_Name_T <em>*file</em>,
|
||
|
const int <em>fd_count</em>,
|
||
|
const int <em>fd_map[]</em>,
|
||
|
const struct inheritance <em>*inherit</em>,
|
||
|
char * const <em>argv[]</em>,
|
||
|
char * const <em>envp[]</em>);
|
||
|
|
||
|
</pre>
|
||
|
|
||
|
<br>
|
||
|
Service Program Name: QP0ZSPWN<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Default Public Authority: *USE<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Threadsafe: Conditional; see <a href="#USGNOTES">Usage
|
||
|
Notes</a>.<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
</div>
|
||
|
|
||
|
<p>The <strong>QlgSpawnp()</strong> function, like the
|
||
|
<strong>spawnp()</strong> function, creates a child process that inherits
|
||
|
specific attributes from the parent. The difference is that for the
|
||
|
<em>file</em> parameter, the <strong>QlgSpawnp()</strong> function takes a
|
||
|
pointer to a Qlg_Path_Name_T structure, while the <strong>spawnp()</strong>
|
||
|
function takes a pointer to a character string in the ccsid of the job.</p>
|
||
|
|
||
|
<p>Limited information on the <em>file</em> parameter is provided here. For
|
||
|
more information on the <em>file</em> parameter and for a discussion of other
|
||
|
parameters, authorities required, and return values, see <a href=
|
||
|
"spawnp.htm">spawnp()--Spawn Process with Path</a>.</p>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Parameters</h3>
|
||
|
|
||
|
<dl>
|
||
|
<dt><strong><em>file</em></strong></dt>
|
||
|
|
||
|
<dd>(Input) A pointer to a Qlg_Path_Name_T structure that contains a file name
|
||
|
or a pointer to a file name that is used with the search path to find an
|
||
|
executable file that will run in the new (child) process. For more information
|
||
|
on the Qlg_Path_Name_T structure, see <a href="../apiref/pns.htm">Path name
|
||
|
format</a>.</dd>
|
||
|
</dl>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3><a name="USGNOTES">Usage Notes</a></h3>
|
||
|
|
||
|
<p>See <a href="spawnp.htm">spawnp()</a>--Spawn Process with Path for a
|
||
|
complete discussion of usage information for <strong>QlgSpawnp()</strong>. In
|
||
|
addition, the following should be noted specifically for
|
||
|
<strong>QlgSpawnp()</strong>.</p>
|
||
|
|
||
|
<ol>
|
||
|
<li>The PATH environment variable is
|
||
|
used; however, the PATH environment variable cannot be a Qlg_Path_Name_T
|
||
|
structure. <br><br></li>
|
||
|
|
||
|
<li>Shell scripts are supported; however, the interpreter path in the shell
|
||
|
script itself cannot be a Qlg_Path_Name_T structure.</li>
|
||
|
</ol>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Related Information</h3>
|
||
|
|
||
|
<ul>
|
||
|
<li>The <<strong>qlg.h</strong>> file (see <a href="unix13.htm">Header
|
||
|
Files for UNIX-Type Functions</a>)<br>
|
||
|
<br>
|
||
|
</li>
|
||
|
|
||
|
<li><a href="spawnp.htm">spawnp()</a>--Spawn Process with Path<br>
|
||
|
<br>
|
||
|
</li>
|
||
|
|
||
|
<li><a href="spawnu.htm">QlgSpawn()</a>--Spawn Process (using NLS-enabled path
|
||
|
name)</li>
|
||
|
</ul>
|
||
|
|
||
|
<p><strong>Note:</strong> All of the related information for
|
||
|
<strong>spawnp()</strong> applies to <strong>QlgSpawn()</strong>.</p>
|
||
|
|
||
|
<br>
|
||
|
<h3>Example</h3>
|
||
|
<p>See <a href="../apiref/aboutapis.htm#codedisclaimer">Code disclaimer information</a>
|
||
|
for information pertaining to code examples.</p>
|
||
|
<p>For an example of using this function, see the example in the <a href=
|
||
|
"spawnu.htm">QlgSpawn</a>--Spawn Process (using NLS-enabled path name) API.</p>
|
||
|
|
||
|
<br>
|
||
|
<hr>
|
||
|
API introduced: V5R1
|
||
|
|
||
|
<hr>
|
||
|
<center>
|
||
|
<table cellpadding="2" cellspacing="2">
|
||
|
<tr align="center">
|
||
|
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
|
||
|
"unix.htm">UNIX-Type APIs</a> | <a href="aplist.htm">APIs by category</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</center>
|
||
|
</body>
|
||
|
</html>
|
||
|
|