off64_t3type
File sizes
Part of off_t(3type).
Usage
#include <sys/types.h>
typedef /* ... */ off_t;
#define _LARGEFILE64_SOURCE #include <sys/types.h>
typedef /* ... */ off64_t [[deprecated]];
#define _GNU_SOURCE #include <sys/types.h>
typedef /* ... */ loff_t;
Library
Standard C library (libc)
Overview
off_t is used for describing file sizes. It is a signed integer type.
off64_t is a 64-bit version of the type, used in glibc.
loff_t is a 64-bit version of the type, introduced by the Linux kernel.
Notes
On some architectures, the width of off_t can be controlled with the feature test macro _FILE_OFFSET_BITS.
The following headers also provide off_t: <aio.h>, <fcntl.h>, <stdio.h>, <sys/mman.h>, <sys/stat.h>, and <unistd.h>.
Releases
3 releases since Debian 12 (Bookworm); the text changed 2 times.