1 .\" Copyright (c) 2020-2022 by Alejandro Colomar <colomar.6.4.3@gmail.com>
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.
51 POSIX.1-2001 and later.
54 Present in glibc and some BSDs.
60 On some architectures,
63 can be controlled with the feature test macro
64 .BR _FILE_OFFSET_BITS .
66 The following headers also provide
76 .BR copy_file_range (2),
80 .BR posix_fadvise (2),
83 .BR sync_file_range (2),
88 .BR posix_fallocate (3),
89 .BR feature_test_macros (7)