ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/rzah4hed.htm

126 lines
3.4 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>Header files for Pthread functions</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. -->
<!-- NETMG2 SCRIPT A converted by B2H R4.1 (346) (CMS) by HOLTJM at -->
<!-- RCHVMW2 on 29 Jan 1999 at 10:01:37 -->
<!--File Edited November 2001 -->
<!--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 language="Javascript" src="../rzahg/synch.js" type="text/javascript">
</script>
<h2>Header files for Pthread functions</h2>
<p>Programs that use the Pthread functions must include one or more header
files that contain information that the functions need. Header files include
the following:</p>
<ul>
<li>Macro definitions</li>
<li>Data type definitions</li>
<li>Structure definitions</li>
<li>Function prototypes</li>
</ul>
<p>The header files are provided in the QSYSINC library which can be installed
as an option. Make sure QSYSINC is on your system before compiling programs
that use these header files.</p>
<br>
<h3>Where to Find Header Files</h3>
<table border width="60%">
<tr>
<th valign="top">Name of Header File</th>
<th valign="top">Name of File in QSYSINC</th>
<th valign="top">Name of Member</th>
</tr>
<tr>
<td align="center" valign="top" width="30%">pthread.h</td>
<td align="center" valign="top" width="40%">H</td>
<td align="center" valign="top" width="30%">PTHREAD</td>
</tr>
<tr>
<td align="center" valign="top">sched.h</td>
<td align="center" valign="top">H</td>
<td align="center" valign="top">SCHED</td>
</tr>
</table>
<p>You can display a header file in QSYSINC by using one of the following
methods:</p>
<ul>
<li>Use your editor. For example, to display the <strong>pthread.h</strong>
header file using the Source Entry Utility editor, enter the following command:
<pre>
STRSEU SRCFILE(QSYSINC/H) SRCMBR(PTHREAD) OPTION(5)
</pre>
</li>
<li>Use the Display Physical File Member command. For example, to display the
<strong>sched.h</strong> header file, enter the following command:
<pre>
DSPPFM FILE(QSYSINC/H) MBR(SCHED)
</pre>
</li>
</ul>
<p>You can print a header file in QSYSINC by using one of the following
methods:</p>
<ul>
<li>Use your editor. For example, to print the <strong>pthread.h</strong>
header file using the Source Entry Utility editor, enter the following command:
<pre>
STRSEU SRCFILE(QSYSINC/H) SRCMBR(PTHREAD) OPTION(6)
</pre>
</li>
<li>Use your Copy File command. For example, to print the <strong>
sched.h</strong> header file, enter the following command:
<pre>
CPYF FROMFILE(QSYSINC/H) TOFILE(*PRINT) FROMMBR(SCHED)
</pre>
</li>
</ul>
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center">
<a href="#Top_Of_Page">Top</a> |
<a href="rzah4mst.htm">Pthread APIs</a> |
<a href="aplist.htm">APIs by category</a></td>
</tr>
</table>
</center>
</body>
</html>