]> Savannah Git Hosting - gnulib.git/log
gnulib.git
7 years agolibunistring: update to Unicode 9.0.0 ueno/unicode-9.0.0
Daiki Ueno [Wed, 12 Oct 2016 15:40:37 +0000 (17:40 +0200)]
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.

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.

7 years agocrypto/sm3: Add overview documentation to the .h file.
Bruno Haible [Sat, 28 Oct 2017 20:25:30 +0000 (22:25 +0200)]
crypto/sm3: Add overview documentation to the .h file.

* lib/sm3.h: Add comments.

7 years agoNew module: crypto/sm3
Jia Zhang [Sat, 7 Oct 2017 08:31:27 +0000 (04:31 -0400)]
New module: crypto/sm3

This new module can be used to compute SM3 message digest of files or
memory blocks according to the specification GM/T 004-2012
Cryptographic Hash Algorithm SM3, published by State Cryptography
Administration, China.

The official SM3 cryptographic hash algorithm specification is
available at
http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml

* lib/sm3.h: Declare the APIs of sm3 module.
* lib/sm3.c: Implement SM3 hash algorithm.
* m4/sm3.m4: m4 file for sm3 module.
* modules/crypto/sm3: Define sm3 module.
* tests/test-sm3.c: Implement SM3 test case.
* modules/crypto/sm3-tests: Define sm3 test module.
* MODULES.html.sh: List sm3 module.

7 years agogc-libgcrypt: fix undefined enum type in switch statement
Jia Zhang [Sat, 28 Oct 2017 06:14:01 +0000 (02:14 -0400)]
gc-libgcrypt: fix undefined enum type in switch statement

Resolve the following build failure:
lib/gc-libgcrypt.c: In function 'gc_hash_open':
lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
     case 0:
     ^~~~

* lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
* lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.

Signed-off-by: Jia Zhang <qianyue.zj@alibaba-inc.com>
7 years agogc-libgcrypt: fix assignment error due to -Werror=pointer-sign
Jia Zhang [Sat, 28 Oct 2017 06:16:08 +0000 (02:16 -0400)]
gc-libgcrypt: fix assignment error due to -Werror=pointer-sign

Resolve the following build failure:
lib/gc-libgcrypt.c: In function 'gc_hash_read':
lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
in signedness [-Werror=pointer-sign]
       digest = gcry_md_read (ctx->gch, 0);
              ^

* lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.

Signed-off-by: Jia Zhang <qianyue.zj@alibaba-inc.com>
7 years agohavelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
Bruno Haible [Thu, 26 Oct 2017 19:45:33 +0000 (21:45 +0200)]
havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.

* m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.

7 years agoglob: fix another heap buffer overflow
Paul Eggert [Sat, 21 Oct 2017 19:20:29 +0000 (12:20 -0700)]
glob: fix another heap buffer overflow

Problem reported by Tim Rühsen in:
https://sourceware.org/bugzilla/show_bug.cgi?id=22332
* lib/glob.c (glob): Avoid buffer overrun when unescaping.

7 years agoquotearg: pacify compiler re unsigned
Paul Eggert [Thu, 19 Oct 2017 20:03:40 +0000 (13:03 -0700)]
quotearg: pacify compiler re unsigned

* lib/quotearg.c (quotearg_n_options):
Rewrite to avoid diagnostic from overly-picky compiler.
Problem reported by Sami Kerola in:
https://lists.gnu.org/archive/html/bug-gnulib/2017-10/msg00060.html

7 years agoglob: fix heap buffer overflow
Paul Eggert [Thu, 19 Oct 2017 19:39:45 +0000 (12:39 -0700)]
glob: fix heap buffer overflow

* lib/glob.c (glob): Fix off-by-one error introduced into
glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
https://sourceware.org/bugzilla/show_bug.cgi?id=22320
Fix suggested by Bruno Haible.

7 years agoglob: pacify fuzzer for mempcpy
Paul Eggert [Wed, 18 Oct 2017 17:19:35 +0000 (10:19 -0700)]
glob: pacify fuzzer for mempcpy

Problem reported by Tim Rühsen in:
https://lists.gnu.org/archive/html/bug-gnulib/2017-10/msg00054.html
* lib/glob.c (glob): Do not pass NULL to mempcpy.

7 years agoautoupdate
Karl Berry [Tue, 17 Oct 2017 14:12:14 +0000 (07:12 -0700)]
autoupdate

7 years agodoc: Fix syntax error (regression from 2017-10-03).
Bruno Haible [Thu, 12 Oct 2017 21:21:43 +0000 (23:21 +0200)]
doc: Fix syntax error (regression from 2017-10-03).

* doc/posix-functions/strncpy.texi: Fix syntax error.

7 years agodoc: Update for Solaris 11.3.
Bruno Haible [Thu, 12 Oct 2017 21:18:12 +0000 (23:18 +0200)]
doc: Update for Solaris 11.3.

* doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
mention Solaris 11.3.
* m4/log2.m4: Fix comments.
* m4/log2f.m4: Likewise.
* m4/printf.m4: Update comments.
* m4/rename.m4: Likewise.
* m4/strncat.m4: Likewise.

7 years agoall: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
Bruno Haible [Thu, 12 Oct 2017 15:40:54 +0000 (17:40 +0200)]
all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".

7 years agodoc: Improve doc about ioctl.
Bruno Haible [Tue, 10 Oct 2017 19:57:28 +0000 (21:57 +0200)]
doc: Improve doc about ioctl.

* doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
prototype.

7 years agowcwidth: Don't use obsolete syntax of 'test'.
Bruno Haible [Mon, 9 Oct 2017 20:03:39 +0000 (22:03 +0200)]
wcwidth: Don't use obsolete syntax of 'test'.

Reported by Eric Blake.

* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".

7 years agogetopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
Bruno Haible [Mon, 9 Oct 2017 14:33:00 +0000 (16:33 +0200)]
getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.

Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
and Daniel P. Berrange <berrange@redhat.com>.

* lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
on glibc systems. The getopt-pfx-core.h file declares exactly what
unistd.h needs, nothing more.

7 years agovma-iter: Fix typo in last commit.
Bruno Haible [Sun, 8 Oct 2017 16:10:48 +0000 (18:10 +0200)]
vma-iter: Fix typo in last commit.

7 years agovma-iter: Fix typo in last commit.
Bruno Haible [Sun, 8 Oct 2017 15:54:59 +0000 (17:54 +0200)]
vma-iter: Fix typo in last commit.

7 years agovma-iter: Improve support for FreeBSD.
Bruno Haible [Sun, 8 Oct 2017 15:50:16 +0000 (17:50 +0200)]
vma-iter: Improve support for FreeBSD.

* lib/vma-iter.c (vma_iterate_proc): New function, extracted from
vma_iterate.
(vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.

7 years agovma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
Bruno Haible [Sun, 8 Oct 2017 10:24:45 +0000 (12:24 +0200)]
vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).

* lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.

7 years agotests: fix 'invalid path dir' error
KO Myung-Hun [Sat, 7 Oct 2017 10:21:07 +0000 (19:21 +0900)]
tests: fix 'invalid path dir' error

On OS/2, a path separator is ';' not ':'. And ':' is used as a
separator between a drive letter and directory parts.

As a result, an absolute path such as x:/path/to/dir on OS/2 is
treated as an invalid path dir.

* tests/init.sh (PATH_SEPARATOR): Set at startup.
(path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
instead of hard coded ':'.

7 years agovma-iter: Fix truncated result on Linux (regression from 2017-09-26).
Bruno Haible [Sat, 7 Oct 2017 12:07:41 +0000 (14:07 +0200)]
vma-iter: Fix truncated result on Linux (regression from 2017-09-26).

* lib/vma-iter.c (MIN_LEFTOVER): New macro.
(STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
(rof_open): On Linux, do multiple read() calls and make sure
MIN_LEFTOVER bytes are left when read() returns.

7 years agovma-iter: Improve support for GNU/Hurd.
Bruno Haible [Sat, 7 Oct 2017 10:59:23 +0000 (12:59 +0200)]
vma-iter: Improve support for GNU/Hurd.

* lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
API, not the /proc file system.

7 years agotest-framework-sh: Don't require bash on Windows and OS/2.
Bruno Haible [Sat, 7 Oct 2017 09:52:45 +0000 (11:52 +0200)]
test-framework-sh: Don't require bash on Windows and OS/2.

Reported by KO Myung-Hun.

* tests/test-init.sh: Use 'shopt' only when running in bash.

7 years agowcwidth: check a macro version of wcwidth () as well
KO Myung-Hun [Fri, 6 Oct 2017 13:06:55 +0000 (22:06 +0900)]
wcwidth: check a macro version of wcwidth () as well

Check the functionality of a macro version wcwidth () as well as a
real function.

This is better than undefining wcwidth on OS/2 kLIBC without functional
check.

* lib/wchar.in.h: Revert commit caee51.
* m4/wcwidth.m4 (gl_cv_func_wcwidth_macro): Check if wcwidth () is a
macro.

7 years agogetopt-posix: Clarify copyright header.
Bruno Haible [Fri, 6 Oct 2017 19:51:53 +0000 (21:51 +0200)]
getopt-posix: Clarify copyright header.

* lib/getopt.in.h: Don't state that gnulib is under LGPL.
* lib/getopt-pfx-core.h: Likewise.
* lib/getopt-pfx-ext.h: Likewise.
* lib/getopt-cdefs.in.h: Likewise.

7 years agoFix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
Bruno Haible [Tue, 3 Oct 2017 23:22:57 +0000 (01:22 +0200)]
Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".

* modules/host-cpu-c-abi (configure.ac): Require, don't invoke
gl_HOST_CPU_C_ABI.

7 years agodoc: warn about misuse of strncpy and wcsncpy.
Bruno Haible [Tue, 3 Oct 2017 20:01:42 +0000 (22:01 +0200)]
doc: warn about misuse of strncpy and wcsncpy.

* doc/posix-functions/strcpy.texi: Describe requirements on prior
memory allocation.
* doc/posix-functions/wcscpy.texi: Likewise.
* doc/posix-functions/strncpy.texi: Describe what this function is not
useful for.
* doc/posix-functions/wcsncpy.texi: Likewise.

7 years agofsuage: fix typo in previous change
Paul Eggert [Mon, 2 Oct 2017 16:13:21 +0000 (09:13 -0700)]
fsuage: fix typo in previous change

* lib/fsusage.c: Remove stray include of full-read.h.
Problem reported by Sam Steingold for macOS (Bug#28669).

7 years agofsusage: remove SVR2 support
Paul Eggert [Mon, 2 Oct 2017 03:35:53 +0000 (20:35 -0700)]
fsusage: remove SVR2 support

SVR2 was obsolete by 1986 and is no longer supported by anybody,
and its code was getting in the way of use of this module by
Emacs, which has its own ‘read’ function anyway.
* lib/fsusage.c: Do not include sys/filsys.h.
(get_fs_usage): Remove SVR2-specific code.
* m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
Do not test for sys/filsys.h or set STAT_READ_FILSYS.
* modules/fsusage (Depends-on): Do not depend on full-read.

7 years agoSimplify autoupdate of licenses
Paul Eggert [Mon, 2 Oct 2017 01:11:44 +0000 (18:11 -0700)]
Simplify autoupdate of licenses

* config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
place.

7 years agoautoupdate
Paul Eggert [Mon, 2 Oct 2017 01:10:37 +0000 (18:10 -0700)]
autoupdate

7 years agovma-iter: Add support for GNU/Hurd.
Bruno Haible [Sun, 1 Oct 2017 17:36:22 +0000 (19:36 +0200)]
vma-iter: Add support for GNU/Hurd.

* lib/vma-iter.c: Treat GNU/Hurd like Linux.
* lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.

7 years agovma-iter: Make it work on 32-bit Solaris with module 'largefile'.
Bruno Haible [Sat, 30 Sep 2017 16:16:03 +0000 (18:16 +0200)]
vma-iter: Make it work on 32-bit Solaris with module 'largefile'.

* modules/vma-iter: Don't test for sys/procfs.h, as this test would
fail when module 'largefile' is in use.
* lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
* lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
Don't test HAVE_SYS_PROCFS_H.

7 years agohavelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
Bruno Haible [Sat, 30 Sep 2017 13:59:27 +0000 (15:59 +0200)]
havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).

* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
* modules/havelib (Depends-on): Add host-cpu-c-abi.

7 years agouniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
Bruno Haible [Sat, 30 Sep 2017 12:22:53 +0000 (14:22 +0200)]
uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).

* lib/uniname/uniname.c (unicode_name_character): Add braces around
scope of local variables.

7 years agostring: code style
Bruno Haible [Thu, 28 Sep 2017 11:09:34 +0000 (13:09 +0200)]
string: code style

* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
substitutable variables.
* modules/string (Makefile.am): Likewise.

7 years agouniname/uniname-tests: Tighten code.
Bruno Haible [Tue, 26 Sep 2017 23:59:12 +0000 (01:59 +0200)]
uniname/uniname-tests: Tighten code.

* tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
local variables into one.

7 years agovma-iter: Improvements for Linux and BSD platforms.
Bruno Haible [Tue, 26 Sep 2017 17:48:39 +0000 (19:48 +0200)]
vma-iter: Improvements for Linux and BSD platforms.

- Add support for DragonFly BSD.
- Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.

* lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
Read the entire file into memory in a single system call.
(vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
* lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.

7 years agovma-iter: Provide the protection flags on FreeBSD.
Bruno Haible [Tue, 26 Sep 2017 15:03:48 +0000 (17:03 +0200)]
vma-iter: Provide the protection flags on FreeBSD.

* lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
skip three fields between the addresses and the protection flags.

7 years agoglob: remove bogus extern decl
Paul Eggert [Tue, 26 Sep 2017 18:02:26 +0000 (11:02 -0700)]
glob: remove bogus extern decl

* lib/glob.c (__glob_pattern_type): Remove now-spurious
extern declaration.  Problem reported by Adhemerval Zanella in:
https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html

7 years agouniname/uniname-tests: integer overflow fix
Paul Eggert [Tue, 26 Sep 2017 01:26:25 +0000 (18:26 -0700)]
uniname/uniname-tests: integer overflow fix

* tests/uniname/test-uninames.c (fill_names, fill_aliases):
Check for integer overflow.

7 years agoduplocale-tests: fix unlikely crash
Paul Eggert [Tue, 26 Sep 2017 01:22:59 +0000 (18:22 -0700)]
duplocale-tests: fix unlikely crash

* tests/test-duplocale.c (get_locale_dependent_values):
Don’t crash with absurdly long month names.

7 years agomaint: fix overflow checking in nap.h
Paul Eggert [Tue, 26 Sep 2017 01:20:44 +0000 (18:20 -0700)]
maint: fix overflow checking in nap.h

* modules/chown-tests:
* modules/fchownat-tests, modules/fdutimensat-tests:
* modules/futimens-tests, modules/lchown-tests:
* modules/stat-time-tests, modules/utime-tests:
* modules/utimens-tests, modules/utimensat-tests:
Depend on intprops.
* tests/nap.h: Include intprops.h.
(diff_timespec): Handle overflow properly.

7 years agosys_types: update URL
Paul Eggert [Tue, 26 Sep 2017 01:14:01 +0000 (18:14 -0700)]
sys_types: update URL

* m4/sys_types_h.m4: Use https: URL.

7 years agoparse-datetime: fix dependency
Paul Eggert [Tue, 26 Sep 2017 01:12:06 +0000 (18:12 -0700)]
parse-datetime: fix dependency

* modules/parse-datetime (Depends-on): Depend
on nstrftime, not strftime.

7 years agoparse-datetime, posixtm: avoid uninit access
Paul Eggert [Tue, 26 Sep 2017 01:11:25 +0000 (18:11 -0700)]
parse-datetime, posixtm: avoid uninit access

* lib/parse-datetime.y (parse_datetime2):
* lib/posixtm.c (posixtime):
Do not access uninitialized storage, even though the resulting
value is never used.

7 years agovma-iter: Improvements for BSD platforms.
Bruno Haible [Mon, 25 Sep 2017 19:31:25 +0000 (21:31 +0200)]
vma-iter: Improvements for BSD platforms.

- Add support for GNU/kFreeBSD.
- Make it work on FreeBSD and NetBSD even when /proc is not mounted.
- Speed up on OpenBSD.

* lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
(vma_iterate_bsd): New function.
(vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
* lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
* modules/vma-iter (configure.ac): Require AC_C_INLINE.

7 years agoautoupdate
Karl Berry [Sun, 24 Sep 2017 16:20:14 +0000 (09:20 -0700)]
autoupdate

7 years agostrfmon_l: New module.
Bruno Haible [Sat, 23 Sep 2017 10:22:17 +0000 (12:22 +0200)]
strfmon_l: New module.

* modules/strfmon_l: New file.
* lib/strfmon_l.c: New file.
* m4/strfmon_l.m4: New file.
* doc/posix-functions/strfmon_l.texi: Mention the new module.
* modules/strfmon_l-tests: New file.
* tests/test-strfmon_l.c: New file.

7 years agomonetary: New module.
Bruno Haible [Sat, 23 Sep 2017 07:26:48 +0000 (09:26 +0200)]
monetary: New module.

* modules/monetary: New file.
* lib/monetary.in.h: New file.
* m4/monetary_h.m4: New file.
* doc/posix-headers/monetary.texi: Mention the new module.
* modules/monetary-tests: New file.
* tests/test-monetary.c: New file.
* modules/monetary-c++-tests: New file.
* tests/test-monetary-c++.cc: New file.
* modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.

7 years agoduplocale tests: Fix test crash on Linux/x86.
Bruno Haible [Sat, 23 Sep 2017 14:01:33 +0000 (16:01 +0200)]
duplocale tests: Fix test crash on Linux/x86.

* tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
locale from the current thread before freeing it.

7 years agoautoupdate
Karl Berry [Fri, 22 Sep 2017 23:10:23 +0000 (16:10 -0700)]
autoupdate

7 years agomktime: port to OpenVMS
Paul Eggert [Fri, 22 Sep 2017 04:39:59 +0000 (21:39 -0700)]
mktime: port to OpenVMS

Problem reported by John E. Malmberg in:
https://lists.gnu.org/archive/html/bug-gnulib/2017-09/msg00100.html
* m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.

7 years agoautoupdate
Karl Berry [Thu, 21 Sep 2017 13:57:16 +0000 (06:57 -0700)]
autoupdate

7 years agoautoupdate
Karl Berry [Wed, 20 Sep 2017 23:12:51 +0000 (16:12 -0700)]
autoupdate

7 years ago* build-aux/bootstrap: fix HTTPS typo in comment
Paul Eggert [Tue, 19 Sep 2017 08:17:50 +0000 (01:17 -0700)]
* build-aux/bootstrap: fix HTTPS typo in comment

7 years agom4/manywarnings.m4: fix comment typo: s/reqirs/requires/
Jim Meyering [Sun, 17 Sep 2017 19:09:34 +0000 (12:09 -0700)]
m4/manywarnings.m4: fix comment typo: s/reqirs/requires/

7 years agomanywarnings: port to GCC on 64-bit MS-Windows
Paul Eggert [Sun, 17 Sep 2017 06:21:43 +0000 (23:21 -0700)]
manywarnings: port to GCC on 64-bit MS-Windows

* m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
https://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00392.html

7 years agoautoupdate
Paul Eggert [Sun, 17 Sep 2017 00:53:10 +0000 (17:53 -0700)]
autoupdate

7 years agoautoupdate
Karl Berry [Thu, 14 Sep 2017 20:37:36 +0000 (13:37 -0700)]
autoupdate

7 years agoall: Replace many more http URLs by https URLs. Update stale URLs.
Bruno Haible [Wed, 13 Sep 2017 22:35:56 +0000 (00:35 +0200)]
all: Replace many more http URLs by https URLs. Update stale URLs.

* users.txt: Remove mention of 'newts'.
* lib/localename.c: Update comment about LANG_SOTHO.

7 years agoautoupdate
Karl Berry [Wed, 13 Sep 2017 20:27:36 +0000 (13:27 -0700)]
autoupdate

7 years agoall: prefer https: URLs
Paul Eggert [Wed, 13 Sep 2017 07:48:18 +0000 (00:48 -0700)]
all: prefer https: URLs

7 years agodoc: Prefer https URLs where possible.
Bruno Haible [Wed, 13 Sep 2017 01:17:45 +0000 (03:17 +0200)]
doc: Prefer https URLs where possible.

* doc/**/*.texi: Use https URLs instead of http URLs where possible.
* doc/ld-output-def.texi: Remove unavailable URL.

7 years agomaintainer-makefile: FTP -> HTTPS
Paul Eggert [Tue, 12 Sep 2017 23:36:27 +0000 (16:36 -0700)]
maintainer-makefile: FTP -> HTTPS

* top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
of FTP, which is planned to be decommissioned on 2017-11-01.

7 years agolibc-config: Fix __GNUC_PREREQ macro.
Tim Rühsen [Tue, 12 Sep 2017 12:27:24 +0000 (14:27 +0200)]
libc-config: Fix __GNUC_PREREQ macro.

* lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
__GNUC_MINOR.

7 years agognulib-tool.py: follow gnulib-tool changes, part 14
Bruno Haible [Sat, 9 Sep 2017 12:40:10 +0000 (14:40 +0200)]
gnulib-tool.py: follow gnulib-tool changes, part 14

Follow gnulib-tool change
2015-08-20  Daiki Ueno  <ueno@gnu.org>
gnulib-tool: don't transform binary files with sed

7 years agognulib-tool.py: follow gnulib-tool changes, part 13
Bruno Haible [Sat, 9 Sep 2017 12:18:56 +0000 (14:18 +0200)]
gnulib-tool.py: follow gnulib-tool changes, part 13

Follow gnulib-tool change
2015-06-01  Pádraig Brady  <P@draigBrady.com>
gnulib-tool: concatenate lib_SOURCES to a single line

7 years agognulib-tool.py: Keep substitution order like in gnulib-tool.
Bruno Haible [Sat, 9 Sep 2017 12:16:35 +0000 (14:16 +0200)]
gnulib-tool.py: Keep substitution order like in gnulib-tool.

This should be a no-op change. Just for easier parallel maintenance
with gnulib-tool.

7 years agognulib-tool.py: Define and use two new global functions.
Bruno Haible [Sat, 9 Sep 2017 10:48:58 +0000 (12:48 +0200)]
gnulib-tool.py: Define and use two new global functions.

* pygnulib/constants.py (remove_backslash_newline, combine_lines): New
functions.

7 years agognulib-tool.py: Remove unused function nlcount.
Bruno Haible [Sat, 9 Sep 2017 10:27:40 +0000 (12:27 +0200)]
gnulib-tool.py: Remove unused function nlcount.

7 years agognulib-tool.py: Fix subend function.
Bruno Haible [Sat, 9 Sep 2017 10:01:28 +0000 (12:01 +0200)]
gnulib-tool.py: Fix subend function.

Make subend('a','b','Laura') return 'Laurb' instead of 'bL'.

7 years agognulib-tool.py: follow gnulib-tool changes, part 12
Bruno Haible [Sat, 9 Sep 2017 08:25:09 +0000 (10:25 +0200)]
gnulib-tool.py: follow gnulib-tool changes, part 12

Follow gnulib-tool change
2015-02-03  Pádraig Brady  <P@draigBrady.com>
gnulib-tool: fix handling of patch(1) diagnostics

7 years agognulib-tool.py: follow gnulib-tool changes, part 11
Bruno Haible [Sat, 9 Sep 2017 08:21:00 +0000 (10:21 +0200)]
gnulib-tool.py: follow gnulib-tool changes, part 11

Follow gnulib-tool change
2014-12-02  KO Myung-Hun  <komh78@gmail.com>
gnulib-tool: recognize x:* as an absolute path

7 years agognulib-tool.py: follow gnulib-tool changes, part 10
Bruno Haible [Fri, 8 Sep 2017 23:36:16 +0000 (01:36 +0200)]
gnulib-tool.py: follow gnulib-tool changes, part 10

Follow gnulib-tool change
2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
gnulib-tool: Use same options as build-aux/bootstrap to download PO files.

7 years agognulib-tool.py: follow gnulib-tool changes, part 9
Bruno Haible [Fri, 8 Sep 2017 23:26:20 +0000 (01:26 +0200)]
gnulib-tool.py: follow gnulib-tool changes, part 9

Follow gnulib-tool change
2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
Fallback to wget when rsync of PO files fails.

7 years agognulib-tool.py: follow gnulib-tool changes, part 8
Bruno Haible [Fri, 8 Sep 2017 23:16:46 +0000 (01:16 +0200)]
gnulib-tool.py: follow gnulib-tool changes, part 8

Follow gnulib-tool change
2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
gnulib-tool: wget translations using --no-verbose rather than --quiet

7 years agognulib-tool.py: follow gnulib-tool changes, part 7
Bruno Haible [Fri, 8 Sep 2017 23:09:45 +0000 (01:09 +0200)]
gnulib-tool.py: follow gnulib-tool changes, part 7

Follow gnulib-tool change
2014-05-27  Sylvain Beucler  <beuc@beuc.net>
gnulib-tool: adjust translation wget to avoid a https redirection

7 years agognulib-tool.py: follow gnulib-tool changes, part 6
Bruno Haible [Fri, 8 Sep 2017 23:06:34 +0000 (01:06 +0200)]
gnulib-tool.py: follow gnulib-tool changes, part 6

Follow gnulib-tool change
2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
deps: require Automake >= 1.9.6 in generated Makefile fragments