current gnulib regex breaks in gawk

2021-02-07 Thread arnold
Hi. I happened to notice that regex has been updated with new, er, stuff. Dropping the code into gawk, including copying over attribute.h, dynarray.h and malloc/*, doesn't work. Compilation chokes. I have not yet investigated what the changes are, but I have to wonder if the churn is really need

Re: current gnulib regex breaks in gawk

2021-02-07 Thread Bruno Haible
Hi Arnold, > I happened to notice that regex has been updated with new, er, stuff. > > Dropping the code into gawk, including copying over attribute.h, > dynarray.h and malloc/*, doesn't work. Compilation chokes. Saying "Compilation chokes" is not constructive. You cannot expect that Paul or I w

Re: current gnulib regex breaks in gawk

2021-02-07 Thread arnold
binlydUstJOzd.bin Description: Binary data

Re: current gnulib regex breaks in gawk

2021-02-07 Thread Bruno Haible
Hi Arnold, The attachment you sent is best viewed with 'less -R'. > See typescript below. 1) It chokes on a missing definition of macro _GL_ATTRIBUTE_FALLTHROUGH. Can you add this piece of text to a common .h file? #if 201710L < __STDC_VERSION__ # define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrou

c32is*: Avoid test failures on MidnightBSD

2021-02-07 Thread Bruno Haible
MidnightBSD is a FreeBSD derivative [1]. At the uname level, it identifies itself as "MidnightBSD", but on the preprocessor level it merely defines __FreeBSD__. I see a couple of test failures on MidnightBSD 1.1: FAIL: test-c32isalnum.sh ../../gltests/test-c32isalnum.c:1

immutable: Avoid test failures on MidnightBSD

2021-02-07 Thread Bruno Haible
On MidnightBSD 1.1, I see this test failure: FAIL: test-immutable.sh === Bus error test-immutable.sh: test case 2 failed Bus error test-immutable.sh: test case 3 failed FAIL test-immutable.sh (exit status: 1) This patch fixes it. 2021-02-07 Bruno Haible immutabl

pthread_sigmask: Document MidnightBSD bug

2021-02-07 Thread Bruno Haible
The result of configure tests on MidnightBSD 1.1 shows that this platform has the same bug as earlier FreeBSD versions. This patch documents it. 2021-02-07 Bruno Haible pthread_sigmask: Document MidnightBSD bug. * doc/posix-functions/pthread_sigmask.texi: Mention MidnightBSD a

wcwidth: Document MidnightBSD bug

2021-02-07 Thread Bruno Haible
The result of configure tests on MidnightBSD 1.1 shows that this platform has the same bugs as NetBSD. This patch documents it. 2021-02-07 Bruno Haible wcwidth: Document MidnightBSD bug. * doc/posix-functions/wcwidth.texi: Mention MidnightBSD as an affected platform.

havelib: Add support for MidnightBSD

2021-02-07 Thread Bruno Haible
Libtool support for MidnightBSD is provided through the patch at . This patch adds the corresponding support in the 'havelib' module. 2021-02-07 Bruno Haible havelib: Add support for MidnightBSD. * build-aux/config.rpath: Treat MidnightB

relocatable-prog: Add support for MidnightBSD

2021-02-07 Thread Bruno Haible
For creating relocatable installations, the ELF $ORIGIN trick works on MidnightBSD 1.1, just like on glibc and FreeBSD and some other platforms. Namely, passing '-Wl,-rpath -Wl,\$ORIGIN/../lib' to the compiler causes the resulting executable to contain an RPATH and a RUNPATH of '$ORIGIN/../lib' (as

c-stack: Adjust for MidnightBSD

2021-02-07 Thread Bruno Haible
> Bus error > test-immutable.sh: test case 2 failed > Bus error > test-immutable.sh: test case 3 failed > FAIL test-immutable.sh (exit status: 1) Accordingly, the 'c-stack' module must also install a SIGBUS handler on this platform. 2021-02-07 Bruno Haible c-stack: Adjust for Midnigh

host-os: Add support for MidnightBSD

2021-02-07 Thread Bruno Haible
Currently, on MidnightBSD, the 'host-os' module returns "Midnightbsd"; this is not right. 2021-02-07 Bruno Haible host-os: Add support for MidnightBSD. * m4/host-os.m4 (gl_HOST_OS): On MidnightBSD, set HOST_OPERATING_SYSTEM to "MidnightBSD", not "Midnightbsd". diff --

threadlib: Add support for MidnightBSD

2021-02-07 Thread Bruno Haible
On MidnightBSD, the same test for weak symbols can be used as on FreeBSD. 2021-02-07 Bruno Haible threadlib: Add support for MidnightBSD. * m4/threadlib.m4 (gl_WEAK_SYMBOLS, gl_THREADLIB_BODY): On MidnightBSD, use the same test as on FreeBSD. diff --git a/m4/threadlib

Add cross-compilation guesses for MidnightBSD

2021-02-07 Thread Bruno Haible
This patch adds "guessed" results for MidnightBSD to the configure tests. For most of them, the result was determined by looking at the config.cache file of an appropriate testdir. The result in posix_spawn.m4 was determined by copying and running the test program outside of configure. The resul

[PATCH] lib/argp-help.c: Corrected the default value and usage for inp_text_limit in argp_doc()

2021-02-07 Thread Girish Joshi
Hello, This is in the reference to bugzilla entry #19038[1] for glibc. It was suggested to submit this patch on this mailing list as the argp module is shared in gnulib. The details for the bug and the patch are as follows. Overview: argp.doc prints incorrectly when it starts with '\v'. In argp-h

data structures for use in signal handlers

2021-02-07 Thread Bruno Haible
Hi Marc, Ben, I need your expertise regarding data structures. Assume a program has a signal handler, which needs to share some data structure with the rest of the program. There are two cases: (A) Assume that the program is single-threaded. Then it is sufficient to use 'volatile' variables

Re: data structures for use in signal handlers

2021-02-07 Thread Ben Pfaff
On Sun, Feb 7, 2021 at 2:57 PM Bruno Haible wrote: > (2) Let the signal handler work only on immutable copies of the data > structure. Whenever the other code manipulates the data structure, > it creates an immutable copy of it, for the signal handler to use. > Use an '