91 lines
2.8 KiB
HTML
91 lines
2.8 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>mmap64()--Memory map a Stream File (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. -->
|
||
|
<!-- Change History: -->
|
||
|
<!-- YYMMDD USERID Change description -->
|
||
|
<!-- MMAP64 SCR A converted by B2H R4.1 (346) (CMS) by V2CDIJAB at -->
|
||
|
<!-- RCHVMW2 on 19 Sep 2000 at 14:15:30 -->
|
||
|
<!-- This file has undergone html cleanup May 2002 by JET -->
|
||
|
<!-- 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>mmap64()--Memory map a Stream File (Large File Enabled)</h2>
|
||
|
|
||
|
<div class="box" style="width: 60%;"><br>
|
||
|
Syntax<br>
|
||
|
|
||
|
|
||
|
<pre>
|
||
|
#include <sys/mman.h>
|
||
|
|
||
|
void *mmap64( void <em>*addr</em>,
|
||
|
size_t <em>len</em>,
|
||
|
int <em>protection</em>,
|
||
|
int <em>flags</em>,
|
||
|
int <em>fildes</em>,
|
||
|
off64_t <em>off</em>);
|
||
|
</pre>
|
||
|
|
||
|
Service Program Name: QP0LLIB1<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Default Public Authority: *USE<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
Threadsafe: Yes<br>
|
||
|
<!-- iddvc RMBR -->
|
||
|
<br>
|
||
|
</div>
|
||
|
|
||
|
<p>The <strong>mmap64()</strong> function, similar to the <strong>
|
||
|
mmap()</strong> function, is used to establish a memory mapping of a file.</p>
|
||
|
|
||
|
<p>For a discussion of the parameters, authorities required, return values,
|
||
|
related information, and examples for <strong>mmap()</strong>, see <a href=
|
||
|
"mmap.htm">mmap()</a>--Memory Map a File.</p>
|
||
|
|
||
|
<br>
|
||
|
<h3>Usage Notes</h3>
|
||
|
|
||
|
<ol type="1">
|
||
|
<li>When you develop in C-based languages, the prototypes for the 64-bit APIs
|
||
|
normally are hidden. To use the <strong>mmap64()</strong> API, you must compile
|
||
|
the source with the _LARGE_FILE_API macro defined.<br>
|
||
|
<br>
|
||
|
</li>
|
||
|
|
||
|
<li>All of the usage notes for <strong>mmap()</strong> apply to <strong>
|
||
|
mmap64()</strong>.</li>
|
||
|
</ol>
|
||
|
|
||
|
<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>
|
||
|
|