HP-UX Reference (11i v3 07/02) - 2 System Calls (vol 5)

c
creat64(2) creat64(2)
_FILE_OFFSET_BITS
is set to 64. The bit may be queried by
fcntl() (or
fcntl64()), which can also turn the bit on or off if desired.
APPLICATION USAGE
The standard POSIX interfaces may be used by 32-bit applications to create and access large files if com-
piled with
_FILE_OFFSET_BITS
set to 64.
The interfaces described here are alternatives to the standard ones, and are enabled by defining
_LARGEFILE64_SOURCE
.
For 64-bit applications, access to large files is automatic, as long as the underlying file system is enabled for
large files. The interfaces on this man page are available to 64-bit applications, for convenience in porting,
but provide no additional capabilities. The exception is
O_LARGEFILE , which is not visible to 64-bit appli-
cations.
SEE ALSO
creat(2), thread_safety(5).
86 Hewlett-Packard Company 3 HP-UX 11i Version 3: February 2007