HP-UX Reference (11i v1 05/09) - 2 System Calls (vol 5)

c
creat64(2) creat64(2)
NAME
creat64(), fstat64(), fstatvfs64(), getrlimit64(), lockf64(), lseek64(), lstat64(), mmap64(), open64(), pread64(),
prealloc64(), pwrite64(), setrlimit64(), stat64(), statvfs64(), truncate64(), O_LARGEFILE - non-POSIX stan-
dard API interfaces to support large files
SYNOPSIS
#include <fcntl.h>
int creat64(const char *path, mode_t mode);
#include <sys/stat.h>
int fstat64(int fildes, struct stat64 *buf);
#include <sys/statvfs.h>
int fstatvfs64(const char *path, struct fstatvfs64 *buf);
#include <sys/resource.h>
int getrlimit64(int resource, struct rlimit64 *rlp);
#include <unistd.h>
int lock64(int *fildes, int function, off64_t size);
#include <unistd.h>
off64_t lseek64(int *fildes, off64_t offset, int whence);
#include <sys/stat.h>
int lstat64(const char *, struct stat64 *);
#include <sys/mmanstat.h>
void mmap64(void addr, size_t len, int prot, int flags, int fildes, off64_t off);
#include <fcntl.h>
int open64(const char *path, int oflag,...);
#include <unistd.h>
ssize_t pread64(int fildes, void *buf, size_t nbyte, off64_t offset);
#include <unistd.h>
int prealloc64(int fildes, off64_t size);
#include <unistd.h>
ssize_t pwrite64(int fildes, const void *buf, size_t nbyte, off64_t offset);
#include <sys/resource.h>
int setrlimit64(int resource, const struct rlimit64 *rlp);
#include <sys/stat.h>
int stat64(const char *path, struct stat64 *buf);
#include <sys/statvfs.h>
int statvfs64(const char *path, struct statvfs64 *buf);
#include <unistd.h>
int truncate64(const char *path, off64_t length);
DESCRIPTION
New API’s to support large files in 32-bit applications. These API interfaces are not a part of the POSIX
standard and may be removed in the future.
creat64() The creat64() function returns a file descriptor which can be used to grow the
file past 2 GB if desired. All other functional behaviors, returns, and errors are
identical to creat().
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 249