mmap64()--Memory map a Stream File (Large File Enabled)


  Syntax
 #include <sys/mman.h>

 void *mmap64( void *addr,
               size_t len,
               int protection,  
               int flags,
               int fildes,
               off64_t off);  
  Service Program Name: QP0LLIB1

  Default Public Authority: *USE

  Threadsafe: Yes

The mmap64() function, similar to the mmap() function, is used to establish a memory mapping of a file.

For a discussion of the parameters, authorities required, return values, related information, and examples for mmap(), see mmap()--Memory Map a File.


Usage Notes

  1. When you develop in C-based languages, the prototypes for the 64-bit APIs normally are hidden. To use the mmap64() API, you must compile the source with the _LARGE_FILE_API macro defined.

  2. All of the usage notes for mmap() apply to mmap64().

API introduced: V5R1
Top | UNIX-Type APIs | APIs by category