[PATCH] mbscasestr: support GNULIB_MCEL_PREFER

2023-09-25 Thread Paul Eggert
Support mcel API for apps that prefer it. This mirrors the recent changes to mbsstr. * lib/mbscasestr.c [GNULIB_MCEL_PREFER]: Include mcel.h not mbuiter.h. (mbchar_t, mb_equal) [GNULIB_MCEL_PREFER]: New type and function, to make it easier to use common code. (knuth_morris_pratt_multibyte): Don't a

[PATCH] stdlib: Cast putenv() on OS/2 kLIBC

2023-09-25 Thread KO Myung-Hun
On OS/2 kLIBC, the first parameter of putenv () is `const char *string' not `char *string'. * lib/stdlib.in.h (putenv) [kLIBC]: Cast with _GL_CXXALIAS_SYS_CAST(). --- lib/stdlib.in.h | 8 1 file changed, 8 insertions(+) diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index b9838c7d5e..b2

[PATCH] fdopendir: Use Windows code path on OS/2 kLIBC

2023-09-25 Thread KO Myung-Hun
* lib/closedir.c (closedir): Use Windows code path. * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd): Remove. * lib/dirfd.c (_gl_register_dirp_fd, _gl_unregister_dirp_fd): Remove. (dirfd): Use Windows code path. * lib/fdopendir.c (fdopendir): Use Windows code path. * lib/opendir.c (