diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-08-18 15:20:06 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-08-18 15:20:46 -0700 |
commit | bc66c26f488975ea9ad22033b9fa28809f4bf65e (patch) | |
tree | a6e78773bb047521bcc84ead40db1ebb2d65e8c3 /doc/autoconf.texi | |
parent | 6dcecb780a69bd208088d666b299e92aa7ae7e80 (diff) | |
download | autoconf-bc66c26f488975ea9ad22033b9fa28809f4bf65e.tar.gz |
Improve doc for AC_SYS_LARGEFILE etc.
Diffstat (limited to 'doc/autoconf.texi')
-rw-r--r-- | doc/autoconf.texi | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 06a16333..e12d213c 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -8888,14 +8888,18 @@ if the system supports @samp{#!}, @samp{no} if not. @cindex LFS Arrange for 64-bit file offsets, known as @uref{http://@/www.unix.org/@/version2/@/whatsnew/@/lfs20mar.html, -large-file support}. On some hosts, one must use special compiler -options to build programs that can access large files. Append any such +large-file support}, along with other large attributes. +On some hosts, one must use special compiler options +to build programs that can access files with large sizes inode +numbers, timestamps, or other attributes. Append any such options to the output variable @code{CC}. Define @code{_FILE_OFFSET_BITS}, @code{_LARGE_FILES}, and @code{_TIME_BITS} if necessary. Large-file support can be disabled by configuring with the -@option{--disable-largefile} option. +@option{--disable-largefile} option. If you disable large-file +support, your program may have trouble accessing arbitrary files, such +as files that might be found in an adversary's directory. If you use this macro, check that your program works even when the types @code{blkcnt_t}, @code{dev_t}, @code{ino_t}, @code{off_t}, and @code{time_t} @@ -8951,8 +8955,12 @@ not correct to print an arbitrary @code{time_t} value @code{X} with concert with @code{AC_CONFIG_HEADERS}, be sure that @file{config.h} is included before any system header. -Although @code{AC_SYS_LARGFILE} also widens @code{time_t} if possible, -it merely warns if this cannot be done, rather than reporting a fatal error. +@code{AC_SYS_LARGFILE} also widens @code{time_t} if possible, +as this is needed for programs that access files with large timestamps, +However, @code{AC_SYS_LARGEFILE} merely warns if @code{time_t} is too +narrow and cannot be widened, rather than reporting a fatal error as +@code{AC_SYS_YEAR2038} does. This is for portability to older +platforms that will become obsolete in the year 2038. @end defmac @node C and Posix Variants |