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

113 lines
3.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>QlgOpen64()--Open File (large file enabled and using NLS-enabled path
name)</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 -->
<!-- Created by Yvonne Griffin for V5R1-->
<!-- This file has undergone html cleanup June 2002 by JET -->
<!-- 020803 JTROUS Fix up links and api names, no change flag -->
<!-- End Header Records -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<!--Java sync-link-->
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript">
</script>
<a name="Top_Of_Page"></a>
<h2>QlgOpen64()--Open File (large file enabled and using NLS-enabled path
name)</h2>
<div class="box" style="width: 80%;">
<br>
&nbsp;&nbsp;Syntax<br>
<pre>
#include &lt;fcntl.h&gt;
int QlgOpen64(Qlg_Path_Name_T <em>*path</em>, int <em>oflag</em>, . . .);
</pre>
&nbsp;&nbsp;Service Program Name: QP0LLIB1<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Default Public Authority: *USE<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Threadsafe: Conditional; see Usage Notes for <a href="open.htm">open()</a>.<br>
<!-- iddvc RMBR -->
<br>
</div>
<p>The <strong>QlgOpen64()</strong> function, like the <strong>
open64()</strong> and <strong>open()</strong> functions, opens a file and
returns a number called a file descriptor. <strong>QlgOpen64()</strong> differs
from <strong>open64()</strong> in that the <strong>QlgOpen64()</strong> function
takes a pointer to a Qlg_Path_Name_T structure, while <strong>open64()</strong>
takes a pointer to a character string. <strong>QlgOpen64()</strong> differs
from <strong>open()</strong> in that it automatically opens a file with the
O_LARGEFILE flag set.</p>
<p>Limited information on the <em>path</em> parameter is provided here. For
more information on the <em>path</em> parameter and for a discussion of other
parameters, authorities required, return values, and related information, see
<a href="open.htm">open()</a>--Open a File or <a href="open64.htm">
open64()</a>--Open File (Large File Enabled).</p>
<br>
<h3>Parameters</h3>
<dl>
<dt><strong><em>path</em></strong></dt>
<dd>(Input) A pointer to a Qlg_Path_Name_T structure that contains a path name
or a pointer to a path name of the file to be opened. For more information on
the Qlg_Path_Name_T structure, see <a href="../apiref/pns.htm">Path name format</a>.</dd>
</dl>
<br>
<h3>Related Information</h3>
<ul>
<li><a href="open.htm">open()</a>--Open a File<br>
<br>
</li>
<li><a href="open64.htm">open64()</a>--Open File (Large File Enabled)<br>
<br>
</li>
<li><a href="creatu.htm">QlgCreat()</a>--Create or Rewrite File (using
NLS-enabled path name)<br>
<br>
</li>
<li><a href="statu.htm">QlgStat()</a>--Get File Information (using NLS-enabled
path name)</li>
</ul>
<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>