]> git.ipfire.org Git - thirdparty/tar.git/commit
Modernize use of Gnulib, paxutils
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 27 Jul 2024 04:55:31 +0000 (21:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 27 Jul 2024 04:56:20 +0000 (21:56 -0700)
commit9f1c32c18b78332ab7f7b2cdb78a76a307ba8c91
treea483ff0419722cecb4df4c93f3990c7324dfa67b
parent4e0deb741634f5936442d2ea993b4f2081beaf6d
Modernize use of Gnulib, paxutils

* configure.ac: Omit stuff no longer needed now that Gnulib or
paxlib does it, or the code no longer needs the configure-time checks.
Do not use AC_SYS_LARGEFILE (Gnulib largefile does this) or check
for fcntl.h, memory.h, net/errno.h, sgtty.h, string.h,
sys/param.h, sys/device.h, sys/gentape.h, sys/inet.h,
sys/io/trioctl.h, sys/time.h, sys/tprintf.h, sys/tape.h, unistd.h,
locale.h, netdb.h; these are all now standard, or old ways of getting
at magtapes are no longer needed and we now have only sys/mtio.h.
Do not check for lstat, readlink, symlink, and check only for
waitpid’s existence rather than attempting to replace it.
Do not check for decls of getgrgid, getpwuid, or time.
Check just once for iconv.h.
* gnulib.modules: Add largefile.
* lib/.gitignore, lib/Makefile.am (noinst_HEADERS, libtar_a_SOURCES):
Remove system-ioctl.h, which is no longer in paxlib.
All includes now changed to just check HAVE_SYS_MTIO_H directly.
* lib/wordsplit.c (wordsplit_c_escape_tab, wordsplit_errstr)
(wordsplit_nerrs):
Now static or an enum, and without any leading "_" in the name.
* src/buffer.c (record_start, record_end, current_block, records_read):
* src/delete.c (records_skipped): Add extern decl to pacify GCC.
* src/compare.c, src/create.c, src/extract.c: Omit uses of
HAVE_READLINK and HAVE_SYMLINK since we now let Gnulib deal with
platforms lacking readlinkat and symlinkat.
* src/system.c: Use "#if !HAVE_WAITPID" instead of "#if MSDOS".
configure.ac
gnulib.modules
lib/.gitignore
lib/Makefile.am
lib/wordsplit.c
src/buffer.c
src/compare.c
src/create.c
src/delete.c
src/extract.c
src/system.c