Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

creat64(2)

NAME

creat64(), fstat64(), getrlimit64(), lockf64(), lseek64(), lstat64(), mmap64(), open64(), prealloc64(), setrlimit64(), stat64(), statvfs64(), truncate64() − non-POSIX standard 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/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 <fcntl.h>

int prealloc64(int fildes, off64_t size);

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. These API interfaces are not a part of the POSIX standard and may be removed in the future. 

creat64() The creat64() function is identical to creat() in 64-bit compile environment. Both functions set O_LARGEFILE in the file status flag to which the returned descriptor refers.  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(). 

fstat64() The fstat64() function is identical to fstat() except that fstat64() returns file status in a struct stat64 instead of a struct stat.  All other functional behaviors, returns, and errors are identical. 

getrlimit64 The getrlimit64() function is identical to getrlimit() except that getrlimit64() passes a struct rlimit64 as its second parameter instead of a struct rlimit.  All other functional behaviors, returns, and errors are identical. 

lock64() The lock64() function is identical to lockf() except that lockf64() accepts an off64_t for the size parameter instead of off_t.  All other functional behaviors, returns, and errors are identical. 

lseek64() The lseek64() function is identical to lseek() except that lseek64() accepts an off64_t type as the desired offset and has a return value of off64_t.  All other functional behaviors, returns, and errors are identical. 

lstat64() The lstat64() function is identical to lstat() except that lstat64() returns file status in a struct stat64 instead of struct stat.  All other functional behaviors, returns, and errors are identical. 

mmap64() The mmap64() function is identical to mmap() except that mmap64() accepts the file offset as an off64_t. 

open64() The open64() function is identical to open() in 64-bit compile environment. Both functions set O_LARGEFILE in the file status flag to which the returned descriptor refers. The open64() function is equivalent to open() function (in 32-bit compile environment) with O_LARGEFILE flag set.  open64() 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 open(). 

prealloc64() The prealloc64() function is identical to prealloc() except that prealloc64() accepts the file offset as an off64_t.  All other functional behaviors, returns, and errors are identical to prealloc(). 

setrlimit64 The setrlimit64() function is identical to setrlimit() except that setrlimit64() passes a struct rlimit64 as its second parameter instead of a struct rlimit.  All other functional behaviors, returns, and errors are identical. 

stat64() The stat64() function is identical to stat() except that stat64() returns file status in a struct stat64 instead of a struct stat. 

statvfs64() Refer to fstatvfs64(). 

truncate64() The truncate64() function is identical to truncate() except that truncate64() accepts the length parameter as an off64_t instead of off_t.  All other functional behaviors, returns, and errors are identical to truncate(). 

Hewlett-Packard Company  —  HP-UX Release 10.20:  July 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026