Hash :
f91f6338
Author :
Date :
2023-04-09T18:16:57
largefile: sync from Autoconf master * modules/largefile-required, modules/year2038-required: New modules. * MODULES.html.sh, doc/largefile.texi, doc/posix-headers/time.texi: * doc/year2038.texi: Document this. * m4/largefile.m4: Sync from Autoconf master. Conditionalize the workaround on AC_SYS_LARGEFILE_REQUIRED rather than on AC_SYS_YEAR2038 so that we replace older but still unreleased Autoconf. (AC_SYS_LARGEFILE_REQUIRED, AC_SYS_YEAR2038_REQUIRED): New macros.
@node Large File Support
@section Large File Support
The Gnulib @samp{largefile-required} module provides support for files
2 GiB and larger, or with device or inode numbers exceeding 32 bits.
To this effect, it ensures that types like @code{off_t} and
@code{ino_t} are 64-bit,
at least on the following platforms:
glibc, Mac OS X, FreeBSD, NetBSD, OpenBSD, AIX, HP-UX, IRIX, Solaris,
Cygwin, mingw, MSVC.
The Gnulib @samp{largefile} module is similar, except that it gives
@command{configure} an option @samp{--disable-largefile} that
suppresses support for large files. This may be useful if the package
links to other libraries whose user-facing ABIs still require
@code{off_t} or most other file-related types to be 32-bit on your
platform.
Both modules also add to @command{configure} an option
@code{--enable-year2038}, needed on some platforms to access files
with timestamps past the year 2038. @xref{Avoiding the year 2038
problem}.