1 .\" Copyright (c) 2020-2022 by Alejandro Colomar <alx@kernel.org>
2 .\" and Copyright (c) 2020 by Michael Kerrisk <mtk.manpages@gmail.com>
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .TH off_t 3type (date) "Linux man-pages (unreleased)"
9 off_t, off64_t, loff_t \- file sizes
15 .B #include <sys/types.h>
17 .BR typedef " /* ... */ " off_t;
19 .B #define _LARGEFILE64_SOURCE
20 .B #include <sys/types.h>
22 .BR typedef " /* ... */ " off64_t;
24 .B #define _GNU_SOURCE
25 .B #include <sys/types.h>
27 .BR typedef " /* ... */ " loff_t;
31 is used for describing file sizes.
32 It is a signed integer type.
35 is a 64-bit version of the type,
39 is a 64-bit version of the type,
40 introduced by the Linux kernel.
63 On some architectures,
66 can be controlled with the feature test macro
67 .BR _FILE_OFFSET_BITS .
69 The following headers also provide
79 .BR copy_file_range (2),
83 .BR posix_fadvise (2),
86 .BR sync_file_range (2),
91 .BR posix_fallocate (3),
92 .BR feature_test_macros (7)