off64_t(3type)

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.

  1. 12
  2. 13
  3. Arch

Standards

off_t

POSIX.1-2024.

off64_t

None.

loff_t

Linux.

History

off_t

POSIX.1-1988.

off64_t

Large File Summit (LFS).

<aio.h> and <stdio.h> define off_t since POSIX.1-2008.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.