Re: [patch] glob. If pattern has a trailing slash match directories only

2019-11-17 Thread Paul Eggert
On 11/17/19 6:03 PM, Dmitry Goncharov wrote: This version of the same patch covers GLOB_NOCHECK and GLOB_NOMAGIC better for the trailing slash case and also fixes glob ("", GLOB_NOMAGIC, ...) case. Sorry, I don't quite follow. Did you intend to attach a new version of the patch to the above-qu

Re: IBM z/OS compatibility issues - per-thread locale functions

2019-11-17 Thread Daniel Richard G.
Hi Bruno, On Sun, 2019 Nov 17 19:17-05:00, Bruno Haible wrote: > > This patch should do it. > > 2019-11-17 Bruno Haible > > locale, localename: Improve z/OS support. > Reported by Daniel Richard G. in > .

Re: IBM z/OS compatibility issues - miscellaneous bugs

2019-11-17 Thread Bruno Haible
Hi Daniel, > MISCELLANEOUS BUGS > > There are a handful of additional issues that I would like to mention > here for completeness, but am taking up primarily with IBM, rather than > this list. If anyone would like me to elaborate on any of these, please > feel free to ask: > > * [sys/]signal.h d

Re: IBM z/OS compatibility issues - environment variables

2019-11-17 Thread Bruno Haible
Hi Daniel, > ENVIRONMENT VARIABLES > > One annoyance on this platform is that the default behavior of things > can sometimes be weirdly different from other platforms, in a way which > breaks programs expecting normal Unix/POSIX behavior. Unfortunately, > IBM's response to this is often not "Let

Re: IBM z/OS compatibility issues - shell environment

2019-11-17 Thread Bruno Haible
Hello Daniel, > SHELL SCRIPTING SNAFUS > > In the z/OS environment, if you want to use a proper Bash shell, you > typically get the build provided by Rocket Software: > > https://www.rocketsoftware.com/product-categories/mainframe/bash-zos > > The problem, however, is that shell scripting w

Re: IBM z/OS compatibility issues - pthread

2019-11-17 Thread Bruno Haible
Hello Daniel, > PTHREAD ENVIRONMENT > > z/OS has effectively two major pthread interfaces: _OPEN_THREADS, and > _UNIX95_THREADS. The latter is the one you want to use, because its API > is compatible with other systems. (_OPEN_THREADS uses e.g. a different > signature for pthread_getspecific() th

Re: [patch] glob. If pattern has a trailing slash match directories only

2019-11-17 Thread Dmitry Goncharov via Gnulib discussion list
Good morning. On Tue, Nov 12, 2019 at 8:44 PM Dmitry Goncharov wrote: > On Sun, Nov 10, 2019 at 6:15 PM Paul Eggert wrote: > > It seems to me that the performance issues are still there, in the sense > > that if > > GLOB_ONLYDIR is set then 'glob' now does a stat call on each directory > > ent

Re: IBM z/OS compatibility issues - per-thread locale functions

2019-11-17 Thread Bruno Haible
Hello Daniel, > BROKEN LOCALE FUNCTIONS > > The configure script finds the following: > > checking for xlocale.h... no > checking for duplocale... yes > checking for uselocale... yes > checking for newlocale... yes > checking for freelocale... yes > > checking whether lo

Re: IBM z/OS compatibility issues

2019-11-17 Thread Bruno Haible
Hi Daniel, > The C99 mode (-qlanglvl=extc99) works without issue. That's what I've > been using for all my testing. Do you have a set of configure settings that you would recommend on z/OS? So that we can add this info to the Gnow-How wiki [1]... Bruno [1] https://gitlab.com/ghwiki/gnow-how/wik

havelib: improve bi-arch support

2019-11-17 Thread Bruno Haible
This series of patches improves the bi-arch support in the AC_LIB_LINKFLAGS macro. Two situations are now supported that were not supported before: * A distro might store 64-bit libs in $PREFIX/lib and 32-bit libs in $PREFIX/lib32. This is how it is e.g. in Manjaro Linux. Until a couple

havelib: fix a bug in dependency processing

2019-11-17 Thread Bruno Haible
This patch fixes a very long-standing bug when AC_LIB_LINKFLAGS is used with a non-empty dependencies argument. 2019-11-17 Bruno Haible havelib: Fix a bug in dependency processing. * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing of .la files, don