154 lines
4.0 KiB
HTML
154 lines
4.0 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>Qp2dlsym()--Find an Exported i5/OS PASE Symbol</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: -->
|
||
|
<!-- YYMMDD USERID Change description -->
|
||
|
<!-- Edited by Kersten Jan 02 -->
|
||
|
<!-- Created by V2DCIJB on 23 Nov 1999 -->
|
||
|
<!--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>Qp2dlsym()--Find an Exported i5/OS PASE Symbol</h2>
|
||
|
|
||
|
<div class="box" style="width: 60%;">
|
||
|
<br>
|
||
|
Syntax
|
||
|
|
||
|
<pre>
|
||
|
#include <qp2user.h>
|
||
|
|
||
|
void* Qp2dlsym(QP2_ptr64_t id
|
||
|
const char *name,
|
||
|
int ccsid,
|
||
|
QP2_ptr64_t *sym_pase);
|
||
|
</pre>
|
||
|
|
||
|
<br>
|
||
|
Service Program Name: QP2USER<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Default Public Authority: *USE<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Threadsafe: Yes<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
</div>
|
||
|
|
||
|
<p>Qp2dlsym() finds an exported i5/OS PASE symbol by calling the i5/OS PASE
|
||
|
dlsym() function.</p>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Parameters</h3>
|
||
|
|
||
|
<dl>
|
||
|
<dt><strong>id</strong></dt>
|
||
|
|
||
|
<dd>(Input) Specifies a value returned by API Qp2dlopen (or the i5/OS PASE
|
||
|
dlopen function) that controls what modules are searched for the exported
|
||
|
symbol.<br>
|
||
|
<br>
|
||
|
</dd>
|
||
|
|
||
|
<dt><strong>name</strong></dt>
|
||
|
|
||
|
<dd>(Input) A pointer to a null-terminated string that contains the symbol
|
||
|
name. This API copies the input name string and converts the copy from the
|
||
|
CCSID specified by the <strong>ccsid</strong> argument to the current i5/OS
|
||
|
PASE CCSID (required by the i5/OS PASE dlsym function).<br>
|
||
|
<br>
|
||
|
</dd>
|
||
|
|
||
|
<dt><strong>ccsid</strong></dt>
|
||
|
|
||
|
<dd>(Input) Specifies the CCSID for the input <em>name</em> argument string.
|
||
|
Zero means the symbol name is in the (EBCDIC) job default CCSID.<br>
|
||
|
<br>
|
||
|
</dd>
|
||
|
|
||
|
<dt><strong>sym_pase</strong></dt>
|
||
|
|
||
|
<dd>(Input) A pointer to a buffer, used to return the i5/OS PASE address of
|
||
|
the exported symbol. The return value is always 64-bits, even for a 32-bit
|
||
|
i5/OS PASE program. sym_pase can be null if the caller does not need the
|
||
|
i5/OS PASE address of the symbol.</dd>
|
||
|
</dl>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Authorities</h3>
|
||
|
|
||
|
<p>None.</p>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Return Value</h3>
|
||
|
|
||
|
<p>The function result is a pointer to the specified symbol, or a null pointer
|
||
|
if the symbol could not be resolved. A buffer addressed by the sym_pase
|
||
|
argument is unchanged if the symbol could not be resolved. The caller can check
|
||
|
ILE <strong>errno</strong> or i5/OS PASE <strong>errno</strong> (if ILE
|
||
|
<strong>errno</strong> is zero), or call the Qp2dlerror API for more
|
||
|
information about any error.</p>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
|
||
|
<h3>Related Information</h3>
|
||
|
|
||
|
<ul>
|
||
|
<li><a href="http://www.ibm.com/servers/aix/library/" target="blank">i5/OS
|
||
|
PASE dlsym()--See AIX documentation</a><img src="www.gif" alt="Link outside Information Center"><br>
|
||
|
<br>
|
||
|
</li>
|
||
|
|
||
|
<li><a href="qp2dlerror.htm">Qp2dlerror()--Retrieve i5/OS PASE Dynamic Load
|
||
|
Error Information</a><br>
|
||
|
<br>
|
||
|
</li>
|
||
|
|
||
|
<li><a href="qp2errnop.htm">Qp2errnop()--Retrieve i5/OS PASE errno
|
||
|
Pointer</a><br>
|
||
|
<br>
|
||
|
</li>
|
||
|
|
||
|
<li><a href="qp2runpase.htm">Qp2RunPase()--Run an i5/OS PASE Program</a></li>
|
||
|
</ul>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
<hr>
|
||
|
API introduced: V5R2
|
||
|
|
||
|
<hr>
|
||
|
<center>
|
||
|
<table cellpadding="2" cellspacing="2">
|
||
|
<tr align="center">
|
||
|
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
|
||
|
"pase1.htm">i5/OS PASE APIs</a> | <a href="aplist.htm">APIs by category</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</center>
|
||
|
</body>
|
||
|
</html>
|
||
|
|