Standards, Environments, and Macros lf64(5)
NAME
lf64 - transitional interfaces for 64-bit file offsets
DESCRIPTION
The data types, interfaces, and macros described on this
page provide explicit access to 64-bit file offsets. They
are accessible through the transitional compilation environ-
ment described on the lfcompile64(5) manual page. The func-
tion prototype and semantics of a transitional interface are
equivalent to those of the standard version of the call,
except that relevant data types are 64-bit entities.
Data Types
The following tables list the standard data or struct types
in the left-hand column and their corresponding explicit
64-bit file offset types in the right-hand column, grouped
by header. The absence of an entry in the left-hand column
indicates that there is no existing explicit 32-bit type
that corresponds to the 64-bit type listed in the right-hand
column. Note that in a 64-bit application, the standard
definition is equivalent to the 64-bit file offset defini-
tion.
struct aiocb struct aiocb64
offt aiooffset; off64t aiooffset;
struct dirent struct dirent64
inot dino; ino64t dino;
offt doff; off64t doff;
struct flock struct flock64
offt lstart; off64t lstart;
offt llen; off64t llen;
FSETLK FSETLK64
FSETLKW FSETLKW64
FGETLK FGETLK64
FRESP FRESP64
FALOCSP FALOCSP64
OLARGEFILE
fpost fpos64t
rlimt rlim64t
SunOS 5.11 Last change: 14 Jul 2008 1
Standards, Environments, and Macros lf64(5)
struct rlimit struct rlimit64
rlimt rlimcur; rlim64t rlimcur;
rlimt rlimmax; rlim64t rlimmax;
RLIMINFINITY RLIM64INFINITY
RLIMSAVEDMAX RLIM64SAVEDMAX
RLIMSAVEDCUR RLIM64SAVEDCUR
struct stat struct stat64
inot stino; ino64t stino;
offt stsize; off64t stsize;
blkcntt stblocks; blkcnt64t stblocks;
struct statvfs struct statvfs64
fsblkcntt fblocks; fsblkcnt64t fblocks;
fsblkcntt fbfree; fsblkcnt64t fbfree;
fsblkcntt fbavial; fsblkcnt64t fbavial;
fsfilcntt ffiles; fsfilcnt64t ffiles;
fsfilcntt fffree; fsfilcnt64t fffree;
fsfilcntt ffavail; fsfilcnt64t ffavail;
offt; off64t;
inot; ino64t;
blkcntt; blkcnt64t;
fsblkcntt; fsblkcnt64t;
fsfilcntt; fsfilcnt64t;
LFS64LARGEFILE
LFS64STDIO
CSLFS64CFLAGS
CSLFS64LDFLAGS
CSLFS64LIBS
CSLFS64LINTFLAGS
System Interfaces
The following tables display the standard API and the
corresponding transitional interfaces for 64-bit file
offsets. The interfaces are grouped by header. The interface
name and the affected data types are displayed in courier
font.
SunOS 5.11 Last change: 14 Jul 2008 2
Standards, Environments, and Macros lf64(5)
int aiocancel(..., int aiocancel64(...,
struct aiocb *); struct aiocb64 *);
int aioerror( int aioerror64(
const struct aiocb *); const struct aiocb64 *);
int aiofsync(..., int aiofsync64(...,
struct aiocb *); struct aiocb64 *);
int aioread(struct aiocb *); int aioread64(struct aiocb64 *);
int aioreturn(struct aiocb *); int aioreturn64(struct aiocb64 *);
int aiosuspend( int aiosuspend64(
const struct aiocb *, ...); const struct aiocb64 *, ...);
int aiowaitn(aiocbt *[], int aiowaitn64(aiocb64t *[],
...); ...);
int aiowrite(struct aiocb *); int aiowrite64(struct aiocb64 *);
int liolistio(..., int liolistio64(...,
const struct aiocb *, ...); const struct aiocb64 *, ...);
int alphasort( int alphasort64(
const struct dirent **, const struct dirent64 **,
const struct dirent **) const struct dirent64 **)
struct dirent *readdir(); struct dirent64 *readdir64();
struct dirent *readdirr(); struct dirent64 *readdir64r();
int scandir(..., int scandir64(...,
struct dirent *(*[]), struct dirent64 *(*[]),
int (*)(const struct dirent *), int (*)(const struct dirent64 *),
int (*)(const struct dirent **, int (*)(const struct dirent64 **,
const struct dirent **)) const struct dirent64 **))
int attropen(); int attropen64();
int creat(); int creat64();
int open(); int open64();
int openat(); int openat64();
int posixfadvise() int posixfadvise64()
int posixfallocate() int posixfallocate64()
int ftw(..., int ftw64(...,
const struct stat *, ...); const struct stat64 *, ...);
int nftw(.. int nftw64(...,
const struct stat *, ...); const struct stat64 *, ...);
char *copylist(..., offt); char *copylist64(..., off64t);
SunOS 5.11 Last change: 14 Jul 2008 3
Standards, Environments, and Macros lf64(5)
int fgetpos(); int fgetpos64();
FILE *fopen(); FILE *fopen64();
FILE *freopen(); FILE *freopen64();
int fseeko(..., offt, ...); int fseeko64(..., off64t, ...);
int fsetpos(..., int fsetpos64(...,
const fpost *); const fpos64t *);
offt ftello(); off64t ftello64()();
FILE *tmpfile(); FILE *tmpfile64();
int mkstemp(); int mkstemp64();
int aioread(..., offt, ...); int aioread64(..., off64t, ...);
int aiowrite(..., offt, ...); int aiowrite64(..., off64t, ...);
int getdents(..., dirent); int getdents64(..., dirent64);
void mmap(..., offt); void mmap64(..., off64t);
int getrlimit(..., int getrlimit64(...,
struct rlimit *); struct rlimit64 *);
int setrlimit(..., int setrlimit64(...,
const struct rlimit *); const struct rlimit64 *);
ssizet sendfile(..., ssizet sendfile64(...,
offt *, ...); off64t *, ...);
ssizet sendfilev(..., const ssizet sendfilev64(..., const
struct sendfilevec *, ...); struct sendfilevec64 *, ...);
int fstat(..., struct stat *); int fstat64(..., struct stat64 *);
int fstatat(..., int fstatat64(...,
struct stat *, int); struct stat64 *, int);
int lstat(..., struct stat *); int lstat64(..., struct stat64 *);
int stat(..., struct stat *); int stat64(..., struct stat64 *);
SunOS 5.11 Last change: 14 Jul 2008 4
Standards, Environments, and Macros lf64(5)
int statvfs(..., int statvfs64(...,
struct statvfs *); struct statvfs64 *);
int fstatvfs(..., int fstatvfs64(...,
struct statvfs *); struct statvfs64 *);
FILE *fopen() FILE *fopen64()
FILE *freopen() FILE *freopen64()
int alphasort( int alphasort64(
struct direct **, struct direct64 **,
struct direct **); struct direct64 **);
struct direct *readdir(); struct direct64 *readdir64();
int scandir(..., int scandir64(...,
struct direct *(*[]);, ...); struct direct64 *(*[]);, ...);
int lockf(..., offt); int lockf64(..., off64t);
offt lseek(..., offt, ...); off64t lseek64(..., off64t, ...);
int ftruncate(..., offt); int ftruncate64..., off64t);
ssizet pread(..., offt); ssizet pread64..., off64t);
ssizet pwrite(..., offt); ssizet pwrite64(..., off64t);
int truncate(..., offt); int truncate64(..., off64t);
SEE ALSO
lfcompile(5), lfcompile64(5)
SunOS 5.11 Last change: 14 Jul 2008 5
|