[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/5] posix: Sync fnmatch with gnulib
From: |
Paul Eggert |
Subject: |
Re: [PATCH 5/5] posix: Sync fnmatch with gnulib |
Date: |
Thu, 31 Dec 2020 13:54:34 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 |
On 12/30/20 12:15 PM, Adhemerval Zanella wrote:
- ssize_t level;
+ size_t level;
'level' should be ptrdiff_t not ssize_t, for portability to
(now-ancient, but still allowed by POSIX) hosts where ssize_t is 32 bits
and size_t is 64 bits.
- CHAR str[];
+ CHAR str[FLEXIBLE_ARRAY_MEMBER];
This assumes C99 flex array members which is fine for glibc but dubious
for Gnulib; it should be safer to use __flexarr.
Because otherwise it triggers some glibc regressions:
Thanks for spotting that. I installed the attached patch into Gnulib,
which should fix the glibc regressions and the other abovementioned
glitches, so that you should now be able to sync fnmatch from Gnulib
unchanged.
0002-fnmatch-merge-from-glibc-proposal.patch
Description: Text Data
- [PATCH 1/5] posix: Sync regex code with gnulib, Adhemerval Zanella, 2020/12/30
- [PATCH 3/5] Sync intprops.h with gnulib, Adhemerval Zanella, 2020/12/30
- [PATCH 4/5] Sync flexmember.h with gnulib, Adhemerval Zanella, 2020/12/30
- [PATCH 2/5] posix: Sync glob code with gnulib, Adhemerval Zanella, 2020/12/30
- [PATCH 5/5] posix: Sync fnmatch with gnulib, Adhemerval Zanella, 2020/12/30
- Re: [PATCH 5/5] posix: Sync fnmatch with gnulib,
Paul Eggert <=
- Re: [PATCH 1/5] posix: Sync regex code with gnulib, Paul Eggert, 2020/12/31