106 lines
3.5 KiB
HTML
106 lines
3.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>fclear64()--Write (Binary Zeros) to Descriptor (Large File Enabled)</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. -->
|
||
|
<!-- file cleaned -->
|
||
|
<!-- Unix2 SCRIPT J converted by B2H R4.1 (346) (CMS) by V2KEA304 -->
|
||
|
<!-- at RCHVMW2 on 17 Feb 1999 at 11:05:09 -->
|
||
|
<!-- Change History: -->
|
||
|
<!-- 020410 RTHEIS Created V5R3, DCR 99096 -->
|
||
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</head>
|
||
|
<body>
|
||
|
<!-- End Header Records --><!-- Edited by Kersten Feb 02 -->
|
||
|
<!-- Java sync-link -->
|
||
|
<script type="text/javascript" language="Javascript" src="../rzahg/synch.js">
|
||
|
</script>
|
||
|
|
||
|
<a name="Top_Of_Page"></a>
|
||
|
|
||
|
<h2>fclear64()---Write (Binary Zeros) to Descriptor (Large File Enabled)</h2>
|
||
|
|
||
|
<div class="box" style="width: 60%;">
|
||
|
<br>
|
||
|
Syntax<br>
|
||
|
|
||
|
|
||
|
<pre>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
off64_t fclear
|
||
|
(int <em>file_descriptor</em>, off64_t <em>nbyte</em>);
|
||
|
</pre>
|
||
|
<br>
|
||
|
Service Program Name: QP0LLIB1<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Default Public Authority: *USE<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Threadsafe: Conditional; see <a href="#USAGE_NOTES">Usage
|
||
|
Notes</a>.<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<p>The <strong>fclear64()</strong> function writes <em>nbyte</em> bytes
|
||
|
of binary zeros to the file associated with the <em>file_descriptor</em>.
|
||
|
If <em>nbyte</em> is zero,
|
||
|
<strong>fclear64()</strong> simply returns a value of zero without attempting any
|
||
|
other action.</p>
|
||
|
|
||
|
<p><strong>fclear64()</strong> is enabled for large files. It is capable of operating
|
||
|
on files larger than 2GB minus 1 bytes and is capable of clearing up to the system
|
||
|
allowed maximum file size bytes as long as the file exists in Root, QOpenSys,
|
||
|
and UDFS file systems and has been opened by either of the following:</p>
|
||
|
|
||
|
<ul>
|
||
|
<li>Using the <strong>open64()</strong> function (see
|
||
|
<a href="open64.htm">open64()--Open File (Large File Enabled)</a>).
|
||
|
</li>
|
||
|
<li>Using the <strong>open()</strong> function (see
|
||
|
<a href="open.htm">open()--Open File</a>) with the O_LARGEFILE flag
|
||
|
set in the oflag parameter.
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
<p>For additional information about parameters, authorities, error conditions,
|
||
|
and examples, see <a href="fclear.htm">fclear()--Write (Binary Zeros) to Descriptor</a>.</p>
|
||
|
|
||
|
<h3>Usage Notes</h3>
|
||
|
|
||
|
<ol type="1">
|
||
|
<li>When you develop in C-based languages, the prototypes for the 64-bit APIs
|
||
|
are normally hidden. To use the <b>fclear64()</b> API, you must compile
|
||
|
the source with the _LARGE_FILE_API macro defined.</li>
|
||
|
|
||
|
<li>All of the usage notes for <b>fclear()</b> apply to <b>
|
||
|
fclear64()</b>. See <em>Usage Notes</em> in the <b>fclear()</b>
|
||
|
API.</li>
|
||
|
</ol>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
<hr>
|
||
|
<p>API introduced: V5R3</p>
|
||
|
|
||
|
<hr>
|
||
|
<table align="center" 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>
|
||
|
</body>
|
||
|
</html>
|
||
|
|