179 lines
4.6 KiB
HTML
179 lines
4.6 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>Qp0zGetTerminalPid()--Get Process ID for a Generic Terminal</title>
|
|
<!-- Begin Header Records ========================================== -->
|
|
<!-- 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. -->
|
|
<!-- Change History: -->
|
|
<!-- file cleaned -->
|
|
<!-- UNIX11 SCRIPT A converted by B2H R4.1 (346) (CMS) by V2DCIJB at -->
|
|
<!-- RCHVMW2 on 1 Jun 1999 at 16:14:12 -->
|
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</head>
|
|
<body>
|
|
<!--End Header Records --><!-- Java sync-link -->
|
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript">
|
|
</script>
|
|
|
|
<a name="Top_Of_Page"></a>
|
|
|
|
<h2>Qp0zGetTerminalPid()--Get Process ID for a Generic Terminal</h2>
|
|
|
|
<div class="box" style="width: 80%;">
|
|
<br>
|
|
Syntax
|
|
|
|
<pre>
|
|
#include <qp0ztrml.h>
|
|
|
|
int Qp0zGetTerminalPid( Qp0z_Terminal_T <em>handle</em>,
|
|
pid_t <em>*pid</em> );
|
|
</pre>
|
|
|
|
Service Program Name: QP0ZTRML<br>
|
|
<!-- iddvc RMBR -->
|
|
<br>
|
|
Default Public Authority: *USE<br>
|
|
<!-- iddvc RMBR -->
|
|
<br>
|
|
Threadsafe: No<br>
|
|
<!-- iddvc RMBR -->
|
|
<br>
|
|
</div>
|
|
|
|
<p>The <strong>Qp0zGetTerminalPid()</strong> function returns the process ID of
|
|
the interpreter process for the terminal specified by <em>handle</em>.<br>
|
|
</p>
|
|
|
|
<br>
|
|
<h3>Parameters</h3>
|
|
|
|
<dl>
|
|
<dt><strong><em>handle</em></strong></dt>
|
|
|
|
<dd>(Input) Handle for terminal. <br>
|
|
</dd>
|
|
|
|
<dt><strong><em>*pid</em></strong></dt>
|
|
|
|
<dd>(Output) Pointer to area to store process ID of interpreter process.</dd>
|
|
</dl>
|
|
|
|
<br>
|
|
<h3>Authorities</h3>
|
|
|
|
<p>None.</p>
|
|
|
|
<br>
|
|
<h3>Return Value</h3>
|
|
|
|
<dl compact>
|
|
<dt><em>0</em></dt>
|
|
|
|
<dd><strong>Qp0zGetTerminalPid()</strong> was successful.</dd>
|
|
|
|
<dt><em>value</em></dt>
|
|
|
|
<dd><strong>Qp0zGetTerminalPid()</strong> was not successful. The value
|
|
returned is an errno indicating the failure.</dd>
|
|
</dl>
|
|
|
|
<br>
|
|
<h3>Error Conditions</h3>
|
|
|
|
<p>If <strong>Qp0zGetTerminalPid()</strong> is not successful, the return value
|
|
usually indicates one of the following errors. Under some conditions, the
|
|
return value could indicate an error other than those listed here.</p>
|
|
|
|
<dl>
|
|
<dt><em>[EFAULT]</em></dt>
|
|
|
|
<dd><p>The address used for an argument is not correct.</p>
|
|
|
|
<p>In attempting to use an argument in a call, the system detected an address
|
|
that is not valid.</p>
|
|
|
|
<p>While attempting to access a parameter passed to this function, the system
|
|
detected an address that is not valid.</p>
|
|
</dd>
|
|
|
|
<dt><em>[EINVAL]</em></dt>
|
|
|
|
<dd>The value specified for the argument is not correct.
|
|
|
|
<p>A function was passed incorrect argument values, or an operation was attempted
|
|
on an object and the operation specified is not supported for that type of
|
|
object.</p>
|
|
|
|
<p>An argument value is not valid, out of range, or NULL.</p>
|
|
</dd>
|
|
|
|
<dt><em>[EUNKNOWN]</em></dt>
|
|
|
|
<dd><p>Unknown system state.</p>
|
|
|
|
<p>The operation failed because of an unknown system state. See any messages in
|
|
the job log and correct any errors that are indicated, then retry the
|
|
operation.</p>
|
|
</dd>
|
|
</dl>
|
|
|
|
<br>
|
|
<h3>Related Information</h3>
|
|
|
|
<ul>
|
|
<li>The <<strong>qp0ztrml.h</strong>> file (see <a href="unix13.htm">
|
|
Header Files for UNIX-Type Functions</a>)<br>
|
|
<br>
|
|
</li>
|
|
|
|
<li><a href="cntltrml.htm">Qp0zControlTerminal()</a>--Control a Generic
|
|
Terminal<br>
|
|
<br>
|
|
</li>
|
|
|
|
<li><a href="endtrml.htm">Qp0zEndTerminal()</a>--End a Generic Terminal<br>
|
|
<br>
|
|
</li>
|
|
|
|
<li><a href="isatrml.htm">Qp0zIsATerminal()</a>--Determine Whether Descriptor Is
|
|
Connected to a Generic Terminal<br>
|
|
<br>
|
|
</li>
|
|
|
|
<li><a href="runtrml.htm">Qp0zRunTerminal()</a>--Run a Generic Terminal<br>
|
|
<br>
|
|
</li>
|
|
|
|
<li><a href="settrmlm.htm">Qp0zSetTerminalMode()</a>--Set Modes for a Generic
|
|
Terminal<br>
|
|
<br>
|
|
</li>
|
|
|
|
<li><a href="startrml.htm">Qp0zStartTerminal()</a>--Start a Generic
|
|
Terminal<br>
|
|
<br>
|
|
</li>
|
|
</ul>
|
|
|
|
<br>
|
|
<hr>
|
|
API introduced: V4R2
|
|
<hr>
|
|
<center>
|
|
<table cellpadding="2" cellspacing="2">
|
|
<tr align="center">
|
|
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
|
|
"gentrml.htm">Generic Terminal APIs</a> | <a href="aplist.htm">APIs by
|
|
category</a></td>
|
|
</tr>
|
|
</table></center>
|
|
</body>
|
|
</html>
|
|
|