open64()--Open File (Large File Enabled)


  Syntax
 #include <fcntl.h>

 int open64(const char *path, int oflag, . . .);  
  Service Program Name: QP0LLIB1

  Default Public Authority: *USE

  Threadsafe: Conditional; see Usage Notes for open().

The open64() function, similar to the open() function, opens a file and returns a number called a file descriptor. open64() differs from open() in that it automatically opens the file with the O_LARGEFILE flag set. For a further description of the open flags, see Using the oflag Parameter in the open() API.

For a discussion of the parameters, authorities required, return values, related information, and examples for the open() and open64() APIs, see open()--Open File.

See QlgOpen64()--Open File (Large File Enabled) for a description and an example of supplying the path in any CCSID.


Usage Notes

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

  2. All of the usage notes for open() apply to open64() and QlgOpen64(). See Usage Notes in the open() API.

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