]> Savannah Git Hosting - gnulib.git/log
gnulib.git
7 years agoAvoid test failures on Microsoft Windows Subsystem for Linux.
Bruno Haible [Mon, 22 Jan 2018 04:01:48 +0000 (05:01 +0100)]
Avoid test failures on Microsoft Windows Subsystem for Linux.

* tests/test-fcntl.c (main): Allow a different errno.
* tests/test-rename.h (test_rename): Likewise.
* tests/test-renameat.c (main): Likewise.
* tests/test-renameat2.c (main): Likewise.

7 years agocanonicalize-lgpl: fix typo
Paul Eggert [Wed, 17 Jan 2018 23:09:59 +0000 (15:09 -0800)]
canonicalize-lgpl: fix typo

Problem reported by Reuben Thomas.

7 years agoautoupdate
Karl Berry [Wed, 17 Jan 2018 18:09:24 +0000 (10:09 -0800)]
autoupdate

7 years agoautoupdate
Karl Berry [Tue, 16 Jan 2018 17:08:02 +0000 (09:08 -0800)]
autoupdate

7 years agoautoupdate
Karl Berry [Mon, 15 Jan 2018 17:52:48 +0000 (09:52 -0800)]
autoupdate

7 years agofilenamecat: make base a suffix of result
Paul Eggert [Sun, 14 Jan 2018 21:27:20 +0000 (13:27 -0800)]
filenamecat: make base a suffix of result

* lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
(mfile_name_concat): Always make BASE a suffix of the result, as
cp expects this.  To implement this, separate with '.' instead of
'/' in some rare cases.  Clarify spec to say ./BASE not BASE.
* tests/test-filenamecat.c (main): Adjust tests to match
current behavior.  Check that BASE_IN_RESULT points to
a copy of BASE and is a suffix of the resultk, and that DIR
is a prefix of the result that is no longer than the prefix
indicated by BASE_IN_RESULT.

7 years agoautoupdate
Karl Berry [Sun, 14 Jan 2018 17:51:15 +0000 (09:51 -0800)]
autoupdate

7 years agoautoupdate
Karl Berry [Sat, 13 Jan 2018 17:04:47 +0000 (09:04 -0800)]
autoupdate

7 years agoautoupdate
Karl Berry [Thu, 11 Jan 2018 17:05:03 +0000 (09:05 -0800)]
autoupdate

7 years agoautoupdate
Karl Berry [Wed, 10 Jan 2018 19:03:49 +0000 (11:03 -0800)]
autoupdate

7 years agomaint: Add encoding marker for Emacs to non-ASCII sources.
Bruno Haible [Fri, 5 Jan 2018 21:08:14 +0000 (22:08 +0100)]
maint: Add encoding marker for Emacs to non-ASCII sources.

Similar to commit f406941a8a2ec5fbf3eacc386b9be09d6593d53b
from Paul Eggert <eggert@cs.ucla.edu> 2015-09-24.

To determine the file list that need the marker, I used the command:

for f in `find . -type f | grep -v '^\./\.git/' | grep -v '^\./tests/'`; do
  if iconv -f ASCII -t ASCII < $f > /dev/null 2>&1 ; then : ; else
    if iconv -f UTF-8 -t UTF-8 < $f > /dev/null 2>&1 ; then
      if grep 'The GNU C Library is' $f > /dev/null; then :; else
        if grep 'coding: utf-8' $f > /dev/null; then :; else
          echo $f
        fi
      fi
    fi
  fi
done | LC_ALL=C sort

7 years agoupdate-copyright: Handle use of ©
Mathieu Lirzin [Thu, 4 Jan 2018 14:59:04 +0000 (15:59 +0100)]
update-copyright: Handle use of ©

* build-aux/update-copyright ($circle_c_re): Update regex to
handle use of © in headers.

7 years agoautoupdate
Karl Berry [Fri, 5 Jan 2018 17:36:34 +0000 (09:36 -0800)]
autoupdate

7 years agoFix -Wundef warning in user-included header lib/cdefs.h.
Tim Rühsen [Wed, 3 Jan 2018 10:50:07 +0000 (11:50 +0100)]
Fix -Wundef warning in user-included header lib/cdefs.h.

* lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.

7 years agopthread_sigmask: Avoid compilation error on mingw.
Bruno Haible [Thu, 4 Jan 2018 09:42:21 +0000 (10:42 +0100)]
pthread_sigmask: Avoid compilation error on mingw.

Reported by Tim Rühsen <tim.ruehsen@gmx.de>.

* lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
macro.

7 years agotest-framework-sh: ‘ps -ef’, not ‘ps ef’
Paul Eggert [Wed, 3 Jan 2018 21:29:49 +0000 (13:29 -0800)]
test-framework-sh: ‘ps -ef’, not ‘ps ef’

* tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
Suggested by Bob Proulx (Bug#29968).
* build-aux/mktempd (rand_bytes): Make it like tests/init.sh.

7 years agostat-time: silence -Wunused-parameter regression
Eric Blake [Tue, 2 Jan 2018 21:49:27 +0000 (15:49 -0600)]
stat-time: silence -Wunused-parameter regression

Commit 2c5d5587 causes warnings on non-Sun systems when compiled
under -Wunused-parameter; we've previously tweaked code in commit
81eb8486 to avoid such warnings.  Prefer an attribute rather than
a cast to void (the attribute is always okay to apply; gcc
interprets it as 'may be unused', not 'must not be used', precisely
to cater to #if chains where determining whether or not the
parameter is used gets hairy).

* lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
Prefer attribute over cast-to-void.
(stat_time_normalize): Mark st as potentially unused.

Signed-off-by: Eric Blake <eblake@redhat.com>
7 years agotest-framework-sh: avoid netstat
Paul Eggert [Wed, 3 Jan 2018 03:05:05 +0000 (19:05 -0800)]
test-framework-sh: avoid netstat

Problem reported by Kristýna Streitová (Bug#29947).
* tests/init.sh (rand_bytes_): Stop using netstat, as it's
deprecated on SuSE and it's not that important anyway.

7 years agoautoupdate
Karl Berry [Tue, 2 Jan 2018 16:30:34 +0000 (08:30 -0800)]
autoupdate

7 years agoupdate-copyright: add code to handle more special cases
Jim Meyering [Tue, 2 Jan 2018 00:12:39 +0000 (16:12 -0800)]
update-copyright: add code to handle more special cases

After running "make update-copyright" this year, five files
required additional manual changes.  Automate those adjustments
for next year.
* Makefile (_year_and_prev): Define.
(update-copyright): Add perl commands to induce this year's post-
update-copyright adjustments.

7 years agoautoupdate
Karl Berry [Mon, 1 Jan 2018 16:52:44 +0000 (08:52 -0800)]
autoupdate

7 years agoversion-etc: new year
Paul Eggert [Mon, 1 Jan 2018 00:57:25 +0000 (00:57 +0000)]
version-etc: new year

* build-aux/gendocs.sh (version):
* doc/gendocs_template:
* doc/gendocs_template_min:
* doc/gnulib.texi:
* lib/version-etc.c (COPYRIGHT_YEAR):
Update copyright dates by hand in templates and the like.

7 years agomaint: Run 'make update-copyright'
Paul Eggert [Mon, 1 Jan 2018 00:57:25 +0000 (00:57 +0000)]
maint: Run 'make update-copyright'

7 years agomaint: fix 'make update-copyright'
Paul Eggert [Mon, 1 Jan 2018 00:43:46 +0000 (16:43 -0800)]
maint: fix 'make update-copyright'

* Makefile (update-copyright): Adjust to 2016-11-23 change
to config/srclist-update, which changed the format of srclist.txt.

7 years agoautoupdate
Paul Eggert [Mon, 1 Jan 2018 00:26:12 +0000 (16:26 -0800)]
autoupdate

7 years agoautoupdate
Karl Berry [Sun, 31 Dec 2017 16:53:16 +0000 (08:53 -0800)]
autoupdate

7 years agochdir-safer: remove this module
Paul Eggert [Sun, 31 Dec 2017 00:34:32 +0000 (16:34 -0800)]
chdir-safer: remove this module

* MODULES.html.sh (func_all_modules): Remove chdir-safer.
* NEWS: Document removal.
* lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
* modules/chdir-safer: Remove these files.

7 years agoAdd cross-compilation results for GNU/Hurd.
Samuel Thibault [Fri, 29 Dec 2017 16:30:07 +0000 (17:30 +0100)]
Add cross-compilation results for GNU/Hurd.

* m4/calloc.m4: Add GNU/Hurd guess.
* m4/cbrtl.m4: Likewise.
* m4/ceil.m4: Likewise.
* m4/ceilf.m4: Likewise.
* m4/ceill.m4: Likewise.
* m4/chown.m4: Likewise.
* m4/duplocale.m4: Likewise.
* m4/exp2l.m4: Likewise.
* m4/expm1.m4: Likewise.
* m4/fchdir.m4: Likewise.
* m4/floor.m4: Likewise.
* m4/floorf.m4: Likewise.
* m4/fmod.m4: Likewise.
* m4/fmodf.m4: Likewise.
* m4/fmodl.m4: Likewise.
* m4/getcwd.m4: Likewise.
* m4/getgroups.m4: Likewise.
* m4/gettimeofday.m4: Likewise.
* m4/hypot.m4: Likewise.
* m4/hypotf.m4: Likewise.
* m4/hypotl.m4: Likewise.
* m4/link-follow.m4: Likewise.
* m4/link.m4: Likewise.
* m4/linkat.m4: Likewise.
* m4/log.m4: Likewise.
* m4/log10.m4: Likewise.
* m4/log10f.m4: Likewise.
* m4/log1p.m4: Likewise.
* m4/log1pf.m4: Likewise.
* m4/log1pl.m4: Likewise.
* m4/log2.m4: Likewise.
* m4/log2f.m4: Likewise.
* m4/logf.m4: Likewise.
* m4/lstat.m4: Likewise.
* m4/malloc.m4: Likewise.
* m4/mbrlen.m4: Likewise.
* m4/mbrtowc.m4: Likewise.
* m4/mkdir.m4: Likewise.
* m4/mkfifo.m4: Likewise.
* m4/mknod.m4: Likewise.
* m4/mkstemp.m4: Likewise.
* m4/modf.m4: Likewise.
* m4/modff.m4: Likewise.
* m4/modfl.m4: Likewise.
* m4/printf.m4: Likewise.
* m4/pselect.m4: Likewise.
* m4/ptsname.m4: Likewise.
* m4/putenv.m4: Likewise.
* m4/readlink.m4: Likewise.
* m4/realloc.m4: Likewise.
* m4/remainder.m4: Likewise.
* m4/remainderf.m4: Likewise.
* m4/remainderl.m4: Likewise.
* m4/rmdir.m4: Likewise.
* m4/round.m4: Likewise.
* m4/roundf.m4: Likewise.
* m4/roundl.m4: Likewise.
* m4/select.m4: Likewise.
* m4/setenv.m4: Likewise.
* m4/signbit.m4: Likewise.
* m4/sleep.m4: Likewise.
* m4/stat.m4: Likewise.
* m4/strerror.m4: Likewise.
* m4/strtok_r.m4: Likewise.
* m4/symlink.m4: Likewise.
* m4/symlinkat.m4: Likewise.
* m4/trunc.m4: Likewise.
* m4/truncf.m4: Likewise.
* m4/truncl.m4: Likewise.
* m4/tzset.m4: Likewise.
* m4/ungetc.m4: Likewise.
* m4/usleep.m4: Likewise.
* m4/wcwidth.m4: Likewise.

7 years agognulib-tool: Make --conditional-dependencies work better.
Bruno Haible [Thu, 28 Dec 2017 23:29:23 +0000 (00:29 +0100)]
gnulib-tool: Make --conditional-dependencies work better.

Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.

* gnulib-tool (Options): Don't reject the combination of
--conditional-dependencies with --with-tests.
(func_emit_autoconf_snippets): Add argument referenceable_modules.
Don't reference $modules.
(func_import, func_create_testdir): Pass it.

7 years agoautoupdate
Karl Berry [Thu, 28 Dec 2017 00:05:51 +0000 (16:05 -0800)]
autoupdate

7 years agoregex: use re_malloc etc. consistently
Paul Eggert [Tue, 19 Dec 2017 23:53:47 +0000 (15:53 -0800)]
regex: use re_malloc etc. consistently

Problem and original patch reported by Arnold Robbins in:
https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
* lib/regcomp.c (re_comp):
* lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.

7 years agoautoupdate
Karl Berry [Tue, 19 Dec 2017 17:05:15 +0000 (09:05 -0800)]
autoupdate

7 years agoautoupdate
Karl Berry [Sun, 17 Dec 2017 16:02:54 +0000 (08:02 -0800)]
autoupdate

7 years agoglob: Silence warning about void pointer arithmetic.
Tim Rühsen [Sat, 16 Dec 2017 03:02:01 +0000 (04:02 +0100)]
glob: Silence warning about void pointer arithmetic.

* lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
arithmetic.

7 years agoglob.c: Silence warning about void pointer arithmetic
Tim Rühsen [Sat, 16 Dec 2017 01:27:21 +0000 (17:27 -0800)]
glob.c: Silence warning about void pointer arithmetic

7 years agospawn-pipe: Silence a clang warning.
Bruno Haible [Fri, 15 Dec 2017 09:44:15 +0000 (10:44 +0100)]
spawn-pipe: Silence a clang warning.

Reported by Tim Rühsen <tim.ruehsen@gmx.de>.

* lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
in this file.

7 years agoexplicit_bzero: port to macOS + Clang 9.0.0
Paul Eggert [Wed, 13 Dec 2017 00:41:21 +0000 (16:41 -0800)]
explicit_bzero: port to macOS + Clang 9.0.0

Problem reported by Marcus Johnson (Bug#29658).
* lib/explicit_bzero.c (explicit_bzero) [__clang__]:
Don’t use asm.

7 years agodoc: Improve explanation of supporting relocatable libraries.
Reuben Thomas [Mon, 11 Dec 2017 10:27:52 +0000 (10:27 +0000)]
doc: Improve explanation of supporting relocatable libraries.

* doc/relocatable-maint.texi (Supporting Relocation): Explain
properly how to build the relocatable module for
libraries. (Method and example code from Bruno Haible.)

7 years agodoc: Use better texinfo tags in a few cases.
Reuben Thomas [Mon, 11 Dec 2017 13:12:19 +0000 (14:12 +0100)]
doc: Use better texinfo tags in a few cases.

* doc/gnulib.texi (Extending Gnulib): Use @option or @command
instead of @samp in a few places.

7 years agounistr/base: Update comment.
Bruno Haible [Mon, 11 Dec 2017 13:08:40 +0000 (14:08 +0100)]
unistr/base: Update comment.

* lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.

7 years agotest-faccessat.c: avoid test failure if prior partial run
Pádraig Brady [Mon, 11 Dec 2017 01:59:32 +0000 (17:59 -0800)]
test-faccessat.c: avoid test failure if prior partial run

* tests/test-faccessat.c: Remove the file if present
to ensure not present from a prior (partial) run.

7 years agotest-faccessat.c: unlink temp file to avoid subsequent test failure
Pádraig Brady [Mon, 11 Dec 2017 01:41:57 +0000 (17:41 -0800)]
test-faccessat.c: unlink temp file to avoid subsequent test failure

* tests/test-faccessat.c: Remove the file to avoid failure
to open the file on subsequent runs due to being created
with no permissions.

7 years agodoc: New section "Modifying the build rules of a Gnulib import directory".
Bruno Haible [Sun, 10 Dec 2017 15:28:43 +0000 (16:28 +0100)]
doc: New section "Modifying the build rules of a Gnulib import directory".

* doc/gnulib-tool.texi (Modified build rules): New node.

7 years agodoc: Tweak wording.
Bruno Haible [Sun, 10 Dec 2017 13:00:43 +0000 (14:00 +0100)]
doc: Tweak wording.

* doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
"binaries".

7 years agono-c++: Avoid "egrep: repetition-operator operand invalid" error.
Sam Steingold [Tue, 5 Dec 2017 16:02:33 +0000 (11:02 -0500)]
no-c++: Avoid "egrep: repetition-operator operand invalid" error.

* m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
AC_EGREP_CPP pattern.

7 years agoall: Replace more http URLs by https URLs.
Bruno Haible [Sun, 3 Dec 2017 22:35:26 +0000 (23:35 +0100)]
all: Replace more http URLs by https URLs.

7 years agoautoupdate
Karl Berry [Sun, 3 Dec 2017 17:18:35 +0000 (09:18 -0800)]
autoupdate

7 years agoPort better to CentOS 5
Paul Eggert [Tue, 28 Nov 2017 22:30:25 +0000 (14:30 -0800)]
Port better to CentOS 5

Problems reported by Tom G. Christensen in:
https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
* doc/glibc-functions/strverscmp.texi (strverscmp):
Document strverscmp bug with glibc 2.9 and earlier.
* doc/posix-functions/tzset.texi (tzset):
Document that TZ with angle brackets is POSIX-2001 and later.
* tests/test-nstrftime.c: Include unistd.h.
(TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
(TZ): Use it to skip tests with angle brackets in TZ,
for older systems.

7 years agostat: add missing module dependencies
Paul Eggert [Tue, 28 Nov 2017 22:19:55 +0000 (14:19 -0800)]
stat: add missing module dependencies

* modules/lstat, modules/stat, modules/utimensat (Depends-on):
Add stat-time.

7 years agostat: fix compilation failure on macOS Sierra
Benno Schulenberg [Tue, 28 Nov 2017 19:42:17 +0000 (20:42 +0100)]
stat: fix compilation failure on macOS Sierra

Reported by Marius Schamschula <mschamschula@gmail.com> in
https://savannah.gnu.org/bugs/?52546
* lib/stat.c: Add missing include of stat-time.h.

7 years agotest-faccessat.c: correct BASE definition to avoid parallel test failure
Jim Meyering [Tue, 28 Nov 2017 15:52:47 +0000 (07:52 -0800)]
test-faccessat.c: correct BASE definition to avoid parallel test failure

* tests/test-faccessat.c (BASE): Define using this file's name, not
that of test-lstat.c.  Using the latter caused this test to fail
sometimes when run concurrently with test-lstat.

7 years agoautoupdate
Karl Berry [Mon, 27 Nov 2017 16:46:28 +0000 (08:46 -0800)]
autoupdate

7 years agounicase: fix VPATH build
Daiki Ueno [Mon, 27 Nov 2017 15:14:16 +0000 (16:14 +0100)]
unicase: fix VPATH build

* modules/unicase/special-casing (Makefile.am): Ensure that the
base directory is created when generating
unicase/special-casing.h.

7 years agoFix typo in comment, in my last commit.
Bruno Haible [Mon, 27 Nov 2017 14:45:19 +0000 (15:45 +0100)]
Fix typo in comment, in my last commit.

7 years agolibunistring: update to Unicode 9.0.0
Daiki Ueno [Mon, 27 Nov 2017 10:34:25 +0000 (11:34 +0100)]
libunistring: update to Unicode 9.0.0

* lib/gen-uni-tables.c (fill_properties): Recognize
Sentence_Terminal and Prepended_Concatenation_Mark.
(is_property_default_ignorable_code_point): Exclude U+08E2.
(fill_arabicshaping): Allow missing whitespace when parsing;
recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
(output_blocks): Increase the element size of the level1 table to
accommodate more blocks.
(get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
Update each class according to the standard.
(get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
E_Base_GAZ characters.
(output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
Glue_After_Zwj, and E_Base_GAZ characters.
* lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
(UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
enum value.
* lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
value.
* lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
LBP_ZWJ, LBP_EB, and LBP_EM.
* lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
enum value.
* lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
* lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
declaration.
* lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
(uniwbrk_table): Implement WB14.
* tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
* modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
uc-is-grapheme-break.
* modules/unigbrk/uc-grapheme-breaks: New module.
* modules/unigbrk/uc-grapheme-breaks-tests: New module.
* lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
enum value.
(uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
* lib/unigbrk/u-grapheme-breaks.h: New file.
* lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
u-grapheme-breaks.h instead of uc_is_grapheme_break.
* lib/unigbrk/uc-grapheme-breaks.c: New file.
* lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
29.
* tests/unigbrk/test-uc-gbrk-prop.c
(graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
GBP_GAZ, and GBP_EBG.
* tests/unigbrk/test-uc-grapheme-breaks.c: New test.
* tests/unigbrk/test-uc-is-grapheme-break.c
(graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
GBP_GAZ, and GBP_EBG.
(main): Skip unsupported rules involving 3 or more characters,
namely GB10, GB12, and GB13.
* lib/uniwidth/width.c (nonspacing_table_data): Update.
* all generated files under lib/uni* and tests/uni*: Regenerate.
* all the dependant modules: Bump version.

7 years agostrfmon_l: Fix compilation error with glibc 2.25.
Bruno Haible [Sun, 26 Nov 2017 23:26:01 +0000 (00:26 +0100)]
strfmon_l: Fix compilation error with glibc 2.25.

Reported by Tom G. Christensen <tgc@jupiterrise.com>
in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.

* lib/monetary.in.h: Include also <locale.h>.

7 years agoautoupdate
Karl Berry [Fri, 24 Nov 2017 16:24:41 +0000 (08:24 -0800)]
autoupdate

7 years agoposixtm: remove PDS_LEADING_YEAR
Paul Eggert [Fri, 24 Nov 2017 08:29:04 +0000 (00:29 -0800)]
posixtm: remove PDS_LEADING_YEAR

This changes the API slightly, in a hopefully-innocuous way.
Without this change the code had undefined behavior when a
caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
Problem reported by Pádraig Brady in:
https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
* NEWS: Mention this.
* lib/posixtm.c (posix_time_parse): Treat the absence of
PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
* lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
present, but define it as zero, for compatibility with existing
source code).  All other PDS_* values moved up.
* tests/test-posixtm.c (LY): New macro.
(T): Use it.  Do not expect a particular numeric encoding
for PDS_CENTURY etc.

7 years agostat: fix doc wording typo
Paul Eggert [Thu, 23 Nov 2017 09:21:15 +0000 (01:21 -0800)]
stat: fix doc wording typo

7 years agostat: work around Solaris bug with tv_nsec < 0
Paul Eggert [Thu, 23 Nov 2017 08:05:57 +0000 (00:05 -0800)]
stat: work around Solaris bug with tv_nsec < 0

* doc/posix-functions/fstat.texi (fstat):
* doc/posix-functions/fstatat.texi (fstatat):
* doc/posix-functions/lstat.texi (lstat):
* doc/posix-functions/stat.texi (stat):
Mention Solaris 11 bug.
* lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
* lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
* lib/lstat.c (rpl_lstat):
* lib/stat.c (rpl_stat):
Normalize resulting timestamps.
* lib/fstatat.c (normal_fstatat): New function.
(rpl_fstatat): Use it.
* lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
(stat_time_normalize): New function.
* m4/fstat.m4 (gl_FUNC_FSTAT):
* m4/fstatat.m4 (gl_FUNC_FSTATAT):
* m4/lstat.m4 (gl_FUNC_LSTAT):
* m4/stat.m4 (gl_FUNC_STAT):
Replace on Solaris.
* modules/fstat (Depends-on):
* modules/fstatat (Depends-on):
Add stat-time.
* modules/stat-time (Depends-on): Add errno, intprops.

7 years agoregex: merge from glibc
Paul Eggert [Wed, 22 Nov 2017 19:23:01 +0000 (11:23 -0800)]
regex: merge from glibc

* lib/regcomp.c (init_word_char): Add comments.

7 years agoregex: merge from glibc
Paul Eggert [Mon, 20 Nov 2017 23:56:22 +0000 (15:56 -0800)]
regex: merge from glibc

* lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
* lib/regex_internal.h (internal_function): Remove.
All uses removed.

7 years agocrypto/gc-sm3: Fix buffer overrun.
Bruno Haible [Mon, 20 Nov 2017 23:11:14 +0000 (00:11 +0100)]
crypto/gc-sm3: Fix buffer overrun.

* lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
Reported by Coverity.

7 years agoappend, don't replace existing VCS ignore files
Darshit Shah [Mon, 20 Nov 2017 19:11:48 +0000 (22:11 +0300)]
append, don't replace existing VCS ignore files

7 years agoautoupdate
Karl Berry [Sun, 19 Nov 2017 17:12:35 +0000 (09:12 -0800)]
autoupdate

7 years agoautoupdate
Karl Berry [Fri, 17 Nov 2017 16:34:36 +0000 (08:34 -0800)]
autoupdate

7 years agoautoupdate
Karl Berry [Mon, 13 Nov 2017 16:37:38 +0000 (08:37 -0800)]
autoupdate

7 years agomaint: shorten https://lists.gnu.org/archive/html/... links
Jim Meyering [Sun, 12 Nov 2017 17:13:30 +0000 (09:13 -0800)]
maint: shorten https://lists.gnu.org/archive/html/... links

Each /archive/html/ part can be replace with /r/.
Run this to induce the change:
git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
* ChangeLog: Perform that substitution.
* Makefile: Likewise.
* STATUS-libposix: Likewise.
* build-aux/bootstrap: Likewise.
* doc/maintain.texi: Likewise.
* gnulib-tool: Likewise.
* lib/allocator.h: Likewise.
* lib/argp-ba.c: Likewise.
* lib/argp-pv.c: Likewise.
* lib/canon-host.c: Likewise.
* lib/canonicalize-lgpl.c: Likewise.
* lib/float.in.h: Likewise.
* lib/fstat.c: Likewise.
* lib/getdelim.c: Likewise.
* lib/getprogname.c: Likewise.
* lib/glthread/thread.h: Likewise.
* lib/intprops.h: Likewise.
* lib/mbsrtowcs-state.c: Likewise.
* lib/safe-read.c: Likewise.
* lib/signal.in.h: Likewise.
* lib/stat.c: Likewise.
* lib/stdbool.in.h: Likewise.
* lib/stdio-impl.h: Likewise.
* lib/stdio.in.h: Likewise.
* lib/sysexits.in.h: Likewise.
* lib/timespec.h: Likewise.
* lib/wcsrtombs-state.c: Likewise.
* m4/alloca.m4: Likewise.
* m4/extern-inline.m4: Likewise.
* m4/fstatat.m4: Likewise.
* m4/gnulib-common.m4: Likewise.
* m4/lib-ignore.m4: Likewise.
* m4/printf.m4: Likewise.
* m4/regex.m4: Likewise.
* m4/stat-size.m4: Likewise.
* m4/std-gnu11.m4: Likewise.
* m4/stdbool.m4: Likewise.
* m4/sys_types_h.m4: Likewise.
* m4/threadlib.m4: Likewise.
* m4/vararrays.m4: Likewise.
* pygnulib/GLImport.py: Likewise.
* tests/test-exp.h: Likewise.
* tests/test-exp2.h: Likewise.
* tests/test-expm1.h: Likewise.
* tests/test-fflush2.c: Likewise.
* tests/test-getopt_long.h: Likewise.
* tests/test-intprops.c: Likewise.
* tests/test-log.h: Likewise.
* tests/test-log10.h: Likewise.
* tests/test-log1p.h: Likewise.
* tests/test-log2.h: Likewise.
* tests/test-printf-posix.h: Likewise.
* tests/test-regex.c: Likewise.
* tests/test-snprintf-posix.h: Likewise.
* tests/test-sprintf-posix.h: Likewise.
* tests/test-stdalign.c: Likewise.
* tests/test-stdbool.c: Likewise.
* tests/test-vasnprintf-posix.c: Likewise.
* tests/test-vasprintf-posix.c: Likewise.
* top/maint.mk: Likewise.

7 years agofaccessat: Make the last change more robust.
Bruno Haible [Sun, 12 Nov 2017 12:16:15 +0000 (13:16 +0100)]
faccessat: Make the last change more robust.

* m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".

7 years agofaccessat: port to macOS (Bug#29231)
Paul Eggert [Sun, 12 Nov 2017 06:33:38 +0000 (22:33 -0800)]
faccessat: port to macOS (Bug#29231)

macOS faccessat has the same bug that lstat does: if the file
name ends in '/' it ignores the trailing slash.
Problem reported for Emacs by Vincent Zhang.
* doc/posix-functions/faccessat.texi (faccessat): Document this.
* lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
around the initial includes.  Include errno.h, string.h, sys/stat.h.
(orig_faccessat) [HAVE_FACCESSAT]: New function.
Include "unistd.h" after defining it.
(rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
* lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
Handle in the usual way.
* m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
lstat dereferences symlinks, since faccessat is likely to
have the same problem.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
* modules/faccessat (Depends-on): Add fstatat.
Depend if REPLACE_FACCESSAT is 1, too.
(configure.ac): Link if REPLACE_FACCESSAT is 1.
* modules/faccessat-tests (Depends-on): Add symlink.
* modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
* tests/test-faccessat.c (main): Test for the bug.

7 years agogetprogname: Fix compilation error on IRIX.
Bruno Haible [Sat, 11 Nov 2017 19:39:12 +0000 (20:39 +0100)]
getprogname: Fix compilation error on IRIX.

* lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
'namesize'.

7 years agoyear2038: Tweak last patch.
Bruno Haible [Sat, 11 Nov 2017 14:14:26 +0000 (15:14 +0100)]
year2038: Tweak last patch.

* m4/year2038.m4 (gl_YEAR2038): Correct indentation.

7 years agoyear2038: be more insistent about 64-bit time_t
Paul Eggert [Tue, 7 Nov 2017 07:20:23 +0000 (23:20 -0800)]
year2038: be more insistent about 64-bit time_t

Applications requiring access to arbitrary files should not be
built with 32-bit time_t on hosts that have 64-bit timestamps,
as this can lead to real trouble at runtime.
* m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
Check on all systems, not just MinGW.  Use a heuristic involving
TIME_T_32_BIT_OK, cross_compiling, and the touch command to
output a failure or just a warning, to make it more likely that
builders will select 64-bit time_t.

7 years agoautoupdate
Karl Berry [Fri, 10 Nov 2017 19:02:00 +0000 (11:02 -0800)]
autoupdate

7 years agoautoupdate
Karl Berry [Tue, 7 Nov 2017 21:51:20 +0000 (13:51 -0800)]
autoupdate

7 years agohavelib: fix typo in previous change
Paul Eggert [Mon, 6 Nov 2017 05:29:38 +0000 (21:29 -0800)]
havelib: fix typo in previous change

* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.

7 years agoDon’t use AC_EGREP_CPP if affected by CFLAGS
Paul Eggert [Mon, 6 Nov 2017 04:04:11 +0000 (20:04 -0800)]
Don’t use AC_EGREP_CPP if affected by CFLAGS

* m4/float_h.m4 (gl_FLOAT_H):
* m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
* m4/lib-ld.m4 (AC_LIB_PROG_LD):
* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
* m4/year2038.m4 (gl_YEAR2038):
Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
likely to be affected by the choice of CFLAGS, since CFLAGS are
not used by AC_EGREP_CPP.  Without this patch, ‘./configure
CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.

7 years agofstatat: pacify GCC on unusual platform
Paul Eggert [Sun, 5 Nov 2017 22:29:10 +0000 (14:29 -0800)]
fstatat: pacify GCC on unusual platform

* lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
Omit, as it’s unused in this case.

7 years agoautoupdate
Karl Berry [Sun, 5 Nov 2017 14:04:29 +0000 (06:04 -0800)]
autoupdate

7 years agoautoupdate
Karl Berry [Sat, 4 Nov 2017 16:09:19 +0000 (09:09 -0700)]
autoupdate

7 years agoautoupdate
Karl Berry [Wed, 1 Nov 2017 14:10:53 +0000 (07:10 -0700)]
autoupdate

7 years agotimespec: prefer ‘assume’ to ‘assure’
Paul Eggert [Sun, 29 Oct 2017 23:22:41 +0000 (16:22 -0700)]
timespec: prefer ‘assume’ to ‘assure’

This avoids some runtime tests.  The rest of the module makes
similar assumptions and there is little point to testing here.
* lib/timespec.h: Include verify.h instead of assure.h.
(timespec_cmp): Use ‘assume’, not ‘assure’.
Also, remove an unnecessary cast to ‘int’, as lots of other
code in this module now causes -Wconversion to complain, and
this is a problem with -Wconversion not with the code.

* modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.

7 years agoPort recent gnulib-tool change to Dash
Paul Eggert [Sun, 29 Oct 2017 22:46:10 +0000 (15:46 -0700)]
Port recent gnulib-tool change to Dash

* gnulib-tool (func_create_testdir): Don't assume that the shell
retokenizes after expanding "$@" inside the call to
func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.

7 years agotimespec.h: use "assure" to avoid a spurious warning
Jim Meyering [Sat, 28 Oct 2017 04:28:47 +0000 (21:28 -0700)]
timespec.h: use "assure" to avoid a spurious warning

* lib/timespec.h: Include "assure.h" and use it to help
gcc7's -Wstrict-overflow avoid a false positive warning
for a use in coreutils' ls.c.  Suggested by Paul Eggert in
https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
* modules/timespec (Depends-on): Add assure.

7 years agoAvoid several test failures with traditional locales on Haiku.
Bruno Haible [Sun, 29 Oct 2017 20:01:06 +0000 (21:01 +0100)]
Avoid several test failures with traditional locales on Haiku.

7 years agostrerror_r-posix: Fix behaviour and test failure on Haiku.
Bruno Haible [Sun, 29 Oct 2017 16:33:22 +0000 (17:33 +0100)]
strerror_r-posix: Fix behaviour and test failure on Haiku.

* lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
are positive. Work around return value 0 instead of ERANGE on Haiku.
For unknown error numbers, use a format string consistent with perror().
* doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
* tests/test-strerror_r.c (main): Don't assume that valid error numbers
are positive.

7 years agoget-rusage-data: Avoid crash on Haiku.
Bruno Haible [Sun, 29 Oct 2017 13:34:21 +0000 (14:34 +0100)]
get-rusage-data: Avoid crash on Haiku.

7 years agoget-rusage-as: Avoid crash on Haiku.
Bruno Haible [Sun, 29 Oct 2017 13:33:52 +0000 (14:33 +0100)]
get-rusage-as: Avoid crash on Haiku.

7 years agoilogbl: Ensure replacement on Haiku.
Bruno Haible [Sun, 29 Oct 2017 11:57:35 +0000 (12:57 +0100)]
ilogbl: Ensure replacement on Haiku.

* m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
REPLACE_ILOGBL if ilogbl does not work.
(gl_FUNC_ILOGBL_WORKS): New macro.
* lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
* modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
* modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
* doc/posix-functions/ilogbl.texi: Mention the Haiku problem.

7 years agoexpl: Ensure replacement on Haiku.
Bruno Haible [Sun, 29 Oct 2017 10:16:56 +0000 (11:16 +0100)]
expl: Ensure replacement on Haiku.

* m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
zero.
* doc/posix-functions/expl.texi: Mention the Haiku problem.

7 years agomath: Fix test failure on Haiku.
Bruno Haible [Sun, 29 Oct 2017 09:49:55 +0000 (10:49 +0100)]
math: Fix test failure on Haiku.

7 years agognulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
Bruno Haible [Sun, 29 Oct 2017 15:59:17 +0000 (16:59 +0100)]
gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.

7 years agognulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
Bruno Haible [Sun, 29 Oct 2017 15:57:32 +0000 (16:57 +0100)]
gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.

* gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
bug reported at <https://savannah.gnu.org/support/index.php?109406>.

7 years agocrypto/*: Verify that the header file is self-contained.
Bruno Haible [Sun, 29 Oct 2017 08:37:12 +0000 (09:37 +0100)]
crypto/*: Verify that the header file is self-contained.

* tests/test-gc-*.c: Include the module's header file immediately after
<config.h>.
* tests/test-hmac-*.c: Likewise.
* tests/test-arcfour.c: Likewise.
* tests/test-arctwo.c: Likewise.
* tests/test-des.c: Likewise.
* tests/test-md2.c: Likewise.
* tests/test-md4.c: Likewise.
* tests/test-md5.c: Likewise.
* tests/test-rijndael.c: Likewise.
* tests/test-sha1.c: Likewise.
* tests/test-sm3.c: Likewise.

7 years agocrypto/gc: fix build failure with -Werror=suggest-attribute=const
Jia Zhang [Sat, 28 Oct 2017 14:05:31 +0000 (10:05 -0400)]
crypto/gc: fix build failure with -Werror=suggest-attribute=const

* lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.

7 years agoNew module: crypto/gc-sm3
Jia Zhang [Sun, 29 Oct 2017 03:58:20 +0000 (23:58 -0400)]
New module: crypto/gc-sm3

* lib/gc.h: Declare SM3-related stuffs.
* lib/gc-gnulib.c: Support sm3 in internal functions.
* lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
* m4/gc-sm3.m4: m4 file for gc-sm3 module.
* modules/crypto/gc-sm3: Define gc-sm3 module.
* tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
* modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
* MODULES.html.sh: List gc-sm3 module.

7 years agorandom, random_r: Mention different prototypes on Haiku.
Bruno Haible [Sun, 29 Oct 2017 07:38:54 +0000 (08:38 +0100)]
random, random_r: Mention different prototypes on Haiku.

* doc/posix-functions/random.texi: Mention different prototype on Haiku.
* doc/glibc-functions/random_r.texi: Likewise.
* doc/glibc-functions/initstate_r.texi: Likewise.
* doc/glibc-functions/setstate_r.texi: Likewise.

7 years agoposix_spawn: Avoid spurious message in configure output.
Bruno Haible [Sun, 29 Oct 2017 01:18:57 +0000 (02:18 +0100)]
posix_spawn: Avoid spurious message in configure output.

* m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
'cmp' command.

7 years agoinet_ntop, inet_pton: Determine needed library correctly on Haiku.
Bruno Haible [Sun, 29 Oct 2017 00:59:41 +0000 (02:59 +0200)]
inet_ntop, inet_pton: Determine needed library correctly on Haiku.

* m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
* m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.

7 years agoioctl: Override non-POSIX declaration on Haiku.
Bruno Haible [Sun, 29 Oct 2017 00:22:19 +0000 (02:22 +0200)]
ioctl: Override non-POSIX declaration on Haiku.

* m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
* lib/sys_ioctl.in.h: Add comment about Haiku.
* doc/posix-functions/ioctl.texi: Mention Haiku problem.
* doc/glibc-headers/sys_ioctl.texi: Likewise.