summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* build: update gnulib to latestJim Meyering2023-04-071-1/+2
|
* maint: update copyright datesJim Meyering2023-01-012-2/+2
|
* gzip: use strerror, not perrorPaul Eggert2022-12-271-11/+0
| | | | | | | | | | | | * bootstrap.conf (gnulib_modules): Use strerror, not perror. This removes dependencies on Gnulib’s ‘threadlib’ and ‘lock’ modules, and simplifies the mainline code. Apparently the old code was written before strerror was universally supported; nowadays we can use Gnulib strerror instead. All uses of perror changed to use strerror+fprintf. * gzip.h (WARN): Since this expands to a statement, wrap within ‘do ... while (false)’ for the usual reasons. Helpful now that calls to WARN are now simplified.
* maint: more fallout from Gnulib syncPaul Eggert2022-12-261-0/+4
| | | | | * README-hacking: Improve wording. * autogen.sh, autopull.sh, bootstrap-funclib.sh: New files.
* maint: stop using obsolete dosname modulePaul Eggert2022-12-251-1/+0
| | | | | | * bootstrap.conf (gnulib_modules): Replace dosname with filename. * gzip.c: Include filename.h, not dosname.h. * lib/.gitignore: Remove name of dosname.h.
* maint: stop using obsolete stdnoreturn modulePaul Eggert2022-12-251-1/+0
| | | | | | | | | * bootstrap.conf (gnulib_modules): Remove stdnoreturn. * gzip.h: Do not include stdnoreturn.h. All uses of noreturn replaced by _Noreturn, at start of declaration for benefit of C23. * lib/.gitignore, m4/.gitignore: Remove names of stdnoreturn-related files.
* maint: update .gitignore to match Gnulib changesPaul Eggert2022-12-251-2/+3
|
* maint: update from GnulibPaul Eggert2022-04-041-2/+2
| | | | | * bootstrap, tests/init.sh: Copy manually from current Gnulib. * lib/.gitignore, m4/.gitignore: Update as per current Gnulib.
* doc: spelling fixesPaul Eggert2022-03-291-4/+4
|
* maint: make update-copyrightJim Meyering2022-01-032-2/+2
|
* maint: update .gitignore filesPaul Eggert2021-08-311-4/+7
| | | | | * .gitignore, lib/.gitignore, m4/.gitignore: Bring up to date. Remove duplicates. Sort.
* build: update gnulib to latestJim Meyering2021-06-301-0/+3
|
* maint: modernize .gitignorePaul Eggert2021-03-071-15/+15
| | | | | * lib/.gitignore, m4/.gitignore: Sort and modernize to current Gnulib.
* maint: update all copyright year number rangesJim Meyering2021-01-013-2/+3
| | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest with copyright year adjusted. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise.
* Update .gitignore filesIlya Leoshkevich2020-09-241-0/+14
| | | | | On my s390x Fedora 31 machine there are a bunch of extra files copied to lib and m4 directories. Add them to .gitignore.
* maint: update all copyright year number rangesJim Meyering2020-01-012-2/+2
| | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest with copyright year adjusted. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise.
* Improve IBM Z patchPaul Eggert2019-04-021-0/+1
| | | | | | | | | | | | | | | Most of this is minor changes to use GNU style and C99 constructs. * NEWS: Mention IBM Z. * bootstrap.conf (gnulib_modules): Add stdalign. * dfltcc.c: Include stdalign.h, stdbool.h. (union aligned_dfltcc_qaf_param, union aligned_dfltcc_param_v0): New types, used for C11-style alignment. All uses changed. (init_param): * gzip.c (BUFFER_ALIGNED): New macro. (inbuf, outbuf, window): Use it, so buffers are aligned everywhere. * gzip.h (INBUFSIZ, OUTBUFSIZE): Use big buffers everywhere, unless SMALL_MEM. * zip.c (SLOW, FAST): Now enums since they need not be macros:
* maint: update all copyright dates via "make update-copyright"Jim Meyering2019-01-012-2/+2
| | | | * gnulib: Also update submodule for its copyright updates.
* Fix some theoretical races in signal handlingPaul Eggert2018-08-061-1/+8
| | | | | | | | | | | | | | | | | | | Problem reported by Johannes Przybilla (Bug#32375). * NEWS: Mention this. * bootstrap.conf (gnulib_modules): Add sigaction. * gzip.c (SA_NOCLDSTOP, sigprocmask, sigset_t) (siginterrupt) [!SA_NOCLDSTOP]: Remove; Gnulib not supplies these. (remove_ofname): New var. (volatile_strcpy): New function. (create_outfile): Use it. (install_signal_handlers, abort_gzip_signal): Assume sigaction. (remove_output_file): New arg SIGNALS_ALREADY_BLOCKED. All uses changed. Avoid unnecessary (and racy) call to sigprocmask if this new arg is set. (abort_gzip_signal): Assume C89 or better for signal handler type. * gzip.h (RETSIGTYPE): Remove. * lib/.gitignore, m4/.gitignore: Add files brought in by Gnulib sigaction module. Sort.
* maint: update gnulib to latest; also update bootstrap and init.shJim Meyering2018-07-011-1/+0
|
* maint: update gnulib and copyright dates for 2018Jim Meyering2018-01-032-2/+2
| | | | | | * gnulib: Update to latest. * bootstrap: Update from gnulib. * all files: Run "make update-copyright".
* maint: use noreturn, not ATTRIBUTE_NORETURNJim Meyering2017-11-091-0/+1
| | | | | | | | | | | Use gnulib's stdnoreturn module so we can include <stdnoreturn.h> and the "noreturn" helper macro, thus replacing the definition and uses of ATTRIBUTE_NORETURN. * bootstrap.conf (gnulib_modules): Add stdnoreturn. * gzip.h (ATTRIBUTE_NORETURN): Remove definition. Include stdnoreturn.h and use "noreturn" for each ATTRIBUTE_NORETURN-adorned function declaration. * gzip.c (do_exit, try_help): Use "noreturn".
* maint: update .gitignore for recent GnulibPaul Eggert2017-09-191-10/+20
|
* maint: update gnulib and copyright dates for 2017Jim Meyering2017-01-012-2/+2
| | | | | * gnulib: Update to latest. * all files: Run "make update-copyright".
* maint: update .gitignore files to ignore more generated filesJim Meyering2016-10-241-0/+1
|
* gnulib: update to latestJim Meyering2016-10-021-0/+3
|
* gzip: drop mentions of Amiga, VMSPaul Eggert2016-06-121-1/+1
| | | | | | | | | | | | | | | | These platforms were not supported anyway, and their code was suffering from bitrot. This patch may also fix some file name glitches on MS-Windowsish platforms. * bootstrap.conf (gnulib_modules): Add dosname. * gzip.c: Include dosname.h. (shorten_name, treat_dir): Use last_component rather than looking at path separators by hand. * tailor.h: Remove sections on porting to VMS and to Amiga, since dosname.h doesn't support these platforms anyway. (PATH_SEP2, PATH_SEP3, STDC_HEADERS, SUFFIX_SEP, RECORD_IO) (HAVE_CHOWN, HAVE_LSTAT, HAVE_SYS_DIR_H, direct): Remove. All uses removed. Many uses replaced by calls to ISSLASH and/or last_component.
* gnulib: update to latestJim Meyering2016-04-261-29/+0
|
* Port to Oracle Solaris Studio 12.4Paul Eggert2016-03-281-1/+5
| | | | | | | | Problem reported by Kiyoshi KANAZAWA in: http://bugs.gnu.org/23133 * NEWS: Document this. * configure.ac (ASMV): Do not define if NO_ASM is anywhere in DEFS; it doesn't need to be surrounded by white space. * lib/match.c: Do not use x86 version if __x86_64__ is defined.
* gzip: fdatasync output dir before unlinkingPaul Eggert2016-02-281-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | This follows up on the earlier patch to avoid data loss near the system crashes. See: http://bugs.gnu.org/22768 * bootstrap.conf (gnulib_modules): Add dirname-lgpl, fdatasync, openat-safer, unistd-safer, unlinkat. * gzip.c: Include stddef.h, dirname.h. Include fcntl--.h instead of fcntl-safer.h. (RW_USER): Remove; no longer needed. (dfname, dfd): New static vars. (dot): New static const. (atdir_eq, atdir_set): New functions. (treat_file): Also fdatasync the output directory, if !keep. (treat_file, create_outfile, open_and_stat): Use dir fd for unlinkat and openat, if possible. (open_and_stat): Omit mode argument, since it was always the same. All callers changed. * lib/.gitignore, m4/.gitignore: Add new gnulib files. * tailor.h (PROTO, NO_STDIN_FSTAT, OPEN): Remove. Remove MACOS section, as this stuff would not work anyway now, and circa 2001 Apple stopped supporting Mac OS 9 and earlier. * zip.c: Do not include unistd.h and fcntl.h, as this file does not directly use any symbols defined by those headers.
* fsync output file before closingPaul Eggert2016-02-221-0/+1
| | | | | | | | Problem reported by Yanyan Jiang 蒋炎岩 in: http://bugs.gnu.org/22768 * NEWS: Document this. * bootstrap.conf (gnulib_modules): Add fsync. * gzip.c (treat_file): Call fsync just before closing the output. * lib/.gitignore, m4/.gitignore: Add fsync-related gnulib files.
* maint: update copyright year, bootstrap, init.shJim Meyering2016-01-012-2/+2
| | | | | | | | | Run "make update-copyright" and then... * gzip.c: Transform the copyright notice via s/2015/2016/. * gnulib: Update to latest. * tests/init.sh: Update from gnulib. * bootstrap: Likewise.
* maint: adjust to recent gnulibPaul Eggert2015-03-131-0/+1
| | | | | * doc/.gitignore: Add gendocs_template_min. * lib/.gitignore: Add assure.h.
* maint: update copyright year ranges to include 2015; update gnulibJim Meyering2015-01-012-2/+2
|
* maint: update .gitignore filesPaul Eggert2014-06-071-52/+21
| | | | | * lib/.gitignore, m4/.gitignore: Adjust to match current sources. Also, sort.
* maint: udpate all copyright notices via "make update-copyright"Jim Meyering2014-06-072-2/+2
|
* maint: adjust to Gnulib, Automake changesPaul Eggert2013-04-101-0/+1
| | | | | * .gitignore: Add *.trs. * lib/.gitignore: Add unused-parameter.h.
* maint: adjust to Gnulib changesPaul Eggert2013-01-061-0/+4
| | | | | * lib/.gitignore: Add glthread, math.c, unistd.c, wctype-h.c. * m4/.gitignore: Remove inline.m4.
* maint: update all copyright year number rangesJim Meyering2013-01-042-2/+2
| | | | Run "make update-copyright".
* maint: avoid new syntax-check failuresJim Meyering2012-11-161-0/+1
| | | | | | | * cfg.mk (_gl_TS_unmarked_extern_vars): Append nice_match, to avoid false-positive syntax-check failure on i686. * gzip.c (SIGPIPE): Remove definition. Now always provided via gnulib. * lib/.gitignore: xsize.c, added by gnulib-tool.
* maint: merge build improvements from coreutilsPaul Eggert2012-11-161-1/+1
| | | | | | | | | | | | * configure.ac: Invoke gl_ASSERT_NO_GNULIB_POSIXCHECK. (--enable-gcc-warnings): Change help message. (gl_GCC_VERSION_IFELSE): New macro. Do not omit -Wunused-macros for main code. Adjust other -W options as per coreutils. * lib/Makefile.am (AM_CFLAGS): Use GNULIB_WARN_CFLAGS, not WARN_CFLAGS. * unlzw.c (REGISTERS, REG1, REG2, ..., REG16): Remove. All uses removed. These provoked -Wunused-macros warnings. This sort of fiddling with registers hasn't been needed for years.
* build: update gnulib, bootstrap and init.shJim Meyering2012-08-071-0/+8
|
* build: update gnulib submodule; bootstrap and init.sh, tooJim Meyering2012-06-171-0/+2
| | | | | * cfg.mk: Exempt crufty tailor.h from its use of "#define off_t...". * .gitignore, m4/.gitignore: Update semi-automatically (via bootstrap).
* gzip: port gzip -rf to ZFSPaul Eggert2012-04-241-0/+6
| | | | | | | | | | | Problem reported privately by Rich Burridge. * bootstrap.conf: Add savedir. * gzip.c: Include <savedir.h>. (_D_EXACT_NAMELEN): Remove. (treat_dir): Use savedir rather than reading directory entries one at a time, to avoid revisiting an already-compressed file when using ZFS and the -rf flags are specified. * lib/.gitignore, m4/.gitignore: Ignore savedir-related files.
* build: accommodate newer bootstrap from gnulibJim Meyering2012-01-111-0/+8
| | | | | | | | | | | * bootstrap.conf (gnulib_tool_option_extras): Add both --symlink and --makefile-name=gnulib.mk. * bootstrap: Update from gnulib. * tests/init.sh: Update from gnulib. * lib/Makefile.am: Initialize all of the following so that generated code in gnulib.mk may use += to append to those variables: AM_CFLAGS, BUILT_SOURCES, CLEANFILES, EXTRA_DIST, MOSTLYCLEANDIRS, MOSTLYCLEANFILES, SUFFIXES, noinst_LTLIBRARIES.
* maint: update all copyright year number rangesJim Meyering2012-01-012-2/+2
| | | | Run "make update-copyright".
* build: update gnulib submodule to latestJim Meyering2011-11-021-0/+11
|
* build: use largefile module and update to latest gnulibJim Meyering2011-08-101-0/+7
| | | | | | * configure.ac: Remove AC_SYS_LARGEFILE, subsumed by ... * bootstrap.conf (gnulib_modules): ...this. Use largefile module. * gnulib: Update to latest.
* build: update gnulib submodule to latestJim Meyering2011-05-091-0/+6
|
* maint: stop using .x-sc_* files to list syntax-check exemptionsJim Meyering2011-03-201-0/+1
| | | | | | | | | | | | Instead, use the new mechanism with which you merely use a variable (derived from the rule name) defined in cfg.mk to an ERE matching the exempted file names. * gnulib: Update to latest, to get maint.mk that implements this. * .x-sc_file_system: Remove file. * .x-sc_prohibit_tab_based_indentation: Likewise. * .x-sc_require_config_h: Likewise. * .x-sc_require_config_h_first: Likewise. * cfg.mk: Define variables to exempt the same files.