|
NAME | LIBRARY | SYNOPSIS | DESCRIPTION | ATTRIBUTES | HISTORY | SEE ALSO | COLOPHON |
|
|
|
lseek64(3) Library Functions Manual lseek64(3)
lseek64 - reposition 64-bit read/write file offset
Standard C library (libc, -lc)
#define _LARGEFILE64_SOURCE /* See feature_test_macros(7) */
#include <sys/types.h>
#include <unistd.h>
[[deprecated]] off64_t lseek64(int fd, off64_t offset, int whence);
This function is equivalent to lseek(2) if one compiles with
#define _FILE_OFFSET_BITS 64
Use lseek(2) instead.
For an explanation of the terms used in this section, see
attributes(7).
┌──────────────────────────────────────┬───────────────┬─────────┐
│ Interface │ Attribute │ Value │
├──────────────────────────────────────┼───────────────┼─────────┤
│ lseek64() │ Thread safety │ MT-Safe │
└──────────────────────────────────────┴───────────────┴─────────┘
glibc 2.1.
lseek64() is one of the functions that was specified in the Large
File Summit (LFS) specification that was completed in 1996. The
purpose of the specification was to provide transitional support
that allowed applications on 32-bit systems to access files whose
size exceeds that which can be represented with a 32-bit off_t
type.
_llseek(2), lseek(2)
This page is part of the man-pages (Linux kernel and C library
user-space interface documentation) project. Information about
the project can be found at
⟨https://www.kernel.org/doc/man-pages/⟩. If you have a bug report
for this manual page, see
⟨https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING⟩.
This page was obtained from the tarball man-pages-6.19.tar.gz
fetched from
⟨https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/⟩ on
2026-09-09. If you discover any rendering problems in this HTML
version of the page, or you believe there is a better or more up-
to-date source for the page, or you have corrections or
improvements to the information in this COLOPHON (which is not
part of the original manual page), send a mail to
man-pages@man7.org
Linux man-pages 6.19 2026-06-13 lseek64(3)
Pages that refer to this page: llseek(3)