mbrtoc16: Fix compilation error on Haiku

2024-08-12 Thread Bruno Haible
On Haiku, I'm seeing a compilation error in the unit test of mbrtoc16. The cause is that mbrtoc16 is not declared, because of this typo and because Haiku has mbrtoc32 but not mbrtoc16. 2024-08-13 Bruno Haible mbrtoc16: Fix compilation error on Haiku. * lib/uchar.in.h (mbrtoc16

Re: termios: Define struct winsize on all platforms.

2024-08-12 Thread Bruno Haible
Hi Collin, > I haven't tested other platforms yet but hopefully it should all be > handled in termios.h there or through a single #include like glibc. AIX is like glibc, here: $ echo '#include ' | $CC -E - | grep winsize $ echo '#include ' | $CC -E - | grep winsize struct winsize { On all other

termios: Define struct winsize on all platforms.

2024-08-12 Thread Collin Funk
Hi, A prerequisite of implementing tcgetwinsize and tcsetwinsize as specified by POSIX 2024 is defining struct winsize on all platforms in termios.h. This patch defines the struct on Windows where it is missing and checks if it is defined in sys/ioctl.h like glibc. POSIX 2024 states that it shoul

Re: [PATCH] errno: make EEXIST != ENOTEMPTY on AIX

2024-08-12 Thread Bruno Haible
Paul Eggert wrote: > Check that all errno values are positive integer constant expressions. > ... > Also check ESOCKTNOSUPPORT, added in POSIX.1-2024. Both of these fail on Haiku. I'm adding these two workarounds. 2024-08-12 Bruno Haible errno tests: Avoid test failure on Haiku.

Re: [PATCH] test-utime: port to noatime file systems

2024-08-12 Thread Bruno Haible
The CI reported 2 test failures on Cygwin: FAIL: test-fdutimensat == ../../gltests/nap.h:79: assertion 'nap_fd != -1' failed Stack trace: 0x100401510 nap_get_stat ../../gltests/nap.h:79 0x100401594 nap ../../gltests/nap.h:137 0x100401944 checkable_atime

pthread-rwlock: Attempt to avoid test failure on some more machines

2024-08-12 Thread Bruno Haible
The CI reports a 'test-pthread-rwlock-waitqueue' failure also on the macOS machines. The first patch attempts to avoid this failure. But it means that the test needs 30 seconds on some more machines. So, some packages might want to avoid it. To make this easy, I'm moving it to a separate module.