ILE C/C++ Programmer's Guide
The 64-bit version of the Integrated File System interface lets you use
ILE C/C++ Stream I/O with files greater than two gigabytes in size. Use
any of the methods listed below to enable this interface.
- Specify the *IFS64IO option with the SYSIFCOPT keyword on the Create
Module or Create Bound Program command prompt. When this keyword is
specified, the compiler defines the __IFS64_IO__ macro, which
in turn causes the _LARGE_FILES and _LARGE_FILE_API macros to
be defined in the IBM-supplied header files. For example:
CRTCPPMOD MODULE(QTEMP/IFSIO) SRCFILE(QCPPLE/QACSRC) SYSIFCOPT(*IFS64IO)
- Define the _LARGE_FILES macro in the program source.
Alternately, specify DEFINE('_LARGE_FILES') on a Create Module
or Create Bound Program command line. Integrated File System APIs and
relevant data types are automatically mapped or redefined to their
64-bit Integrated File System counterparts. For example:
CRTCPPMOD MODULE(QTEMP/IFSIO) SRCFILE(QCPPLE/QACSRC)
SYSIFCOPT(*IFSIO) DEFINE('_LARGE_FILES')
- Define the _LARGE_FILE_API macro in the program
source. Alternately, specify
DEFINE('_LARGE_FILE_API') on a Create Module or Create
Bound Program command line. This makes 64-bit Integrated File
System APIs and corresponding data types visible, but applications must
explicitly specify which Integrated File System APIs (regular or 64-bit)
to use. For example:
CRTCMOD MODULE(QTEMP/IFSIO) SRCFILE(QCPPLE/QACSRC)
SYSIFCOPT(*IFSIO) DEFINE('_LARGE_FILE_API')
- Note:
- The __IFS64_IO__, _LARGE_FILES, and
_LARGE_FILE_API macros are not mutually exclusive. For
example, you might specify SYSIFCOPT(*IFS64IO) on the command line, and define
either or both of the _LARGE_FILES and _LARGE_FILE_API macros
in your program source.
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.