1off_t(3type)                                                      off_t(3type)
2
3
4

NAME

6       off_t, off64_t, loff_t - file sizes
7

LIBRARY

9       Standard C library (libc)
10

SYNOPSIS

12       #include <sys/types.h>
13
14       typedef /* ... */  off_t;
15
16       #define _LARGEFILE64_SOURCE
17       #include <sys/types.h>
18
19       typedef /* ... */  off64_t;
20
21       #define _GNU_SOURCE
22       #include <sys/types.h>
23
24       typedef /* ... */  loff_t;
25

DESCRIPTION

27       off_t is used for describing file sizes.  It is a signed integer type.
28
29       off64_t is a 64-bit version of the type, used in glibc.
30
31       loff_t is a 64-bit version of the type, introduced by the Linux kernel.
32

STANDARDS

34       off_t  POSIX.1-2008.
35
36       off64_t
37              GNU and some BSDs.
38
39       loff_t Linux.
40

VERSIONS

42       off_t  POSIX.1-2001.
43
44       <aio.h> and <stdio.h> define off_t since POSIX.1-2008.
45

NOTES

47       On  some  architectures,  the width of off_t can be controlled with the
48       feature test macro _FILE_OFFSET_BITS.
49
50       The  following  headers  also  provide   off_t:   <aio.h>,   <fcntl.h>,
51       <stdio.h>, <sys/mman.h>, <sys/stat.h>, and <unistd.h>.
52

SEE ALSO

54       copy_file_range(2),  llseek(2),  lseek(2),  mmap(2),  posix_fadvise(2),
55       pread(2),  readahead(2),  sync_file_range(2),  truncate(2),  fseeko(3),
56       lockf(3), lseek64(3), posix_fallocate(3), feature_test_macros(7)
57
58
59
60Linux man-pages 6.05              2023-03-30                      off_t(3type)
Impressum