xz/src/common
Lasse Collin c405264c03
tuklib_mbstr_nonprint: Preserve the value of errno
A typical use case is like this:

    printf("%s: %s\n", tuklib_mask_nonprint(filename), strerror(errno));

tuklib_mask_nonprint() may call mbrtowc() and malloc() which may modify
errno. If errno isn't preserved, the error message might be wrong if
a compiler decides to call tuklib_mask_nonprint() before strerror().

Fixes: 40e5733055
2025-01-05 20:16:09 +02:00
..
common_w32res.rc Windows: Embed an application manifest in the EXE files 2024-10-01 12:10:23 +03:00
my_landlock.h Add my_landlock.h with helper functions to use Linux Landlock 2025-01-02 15:43:38 +02:00
mythread.h Fix typos 2024-05-18 00:34:07 +03:00
sysdefs.h sysdefs.h: Add FALLTHROUGH macro 2025-01-02 15:43:37 +02:00
tuklib_common.h tuklib_mbstr_wrap: Add printf format attribute 2025-01-04 17:37:46 +02:00
tuklib_config.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_cpucores.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_cpucores.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_exit.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_exit.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_gettext.h Windows: Make NLS require UCRT and gettext-runtime >= 0.23.1 2025-01-02 15:35:25 +02:00
tuklib_integer.h Fix typos 2024-06-07 16:01:27 +03:00
tuklib_mbstr.h tuklib_mbstr_width: Add tuklib_mbstr_width_mem() 2024-12-18 17:09:30 +02:00
tuklib_mbstr_fw.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_mbstr_nonprint.c tuklib_mbstr_nonprint: Preserve the value of errno 2025-01-05 20:16:09 +02:00
tuklib_mbstr_nonprint.h tuklib_mbstr_nonprint: Preserve the value of errno 2025-01-05 20:16:09 +02:00
tuklib_mbstr_width.c tuklib_mbstr_width: Add tuklib_mbstr_width_mem() 2024-12-18 17:09:30 +02:00
tuklib_mbstr_wrap.c tuklib_mbstr_wrap: Silence a warning from Clang 2024-12-18 17:50:58 +02:00
tuklib_mbstr_wrap.h tuklib_mbstr_wrap: Add printf format attribute 2025-01-04 17:37:46 +02:00
tuklib_open_stdxxx.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_open_stdxxx.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_physmem.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_physmem.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_progname.c Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
tuklib_progname.h Add SPDX license identifier into 0BSD source code files. 2024-02-14 18:31:16 +02:00
w32_application.manifest Windows: Embed an application manifest in the EXE files 2024-10-01 12:10:23 +03:00
w32_application.manifest.comments.txt Windows: Revert the setlocale(LC_ALL, ".UTF8") documentation 2024-12-20 16:33:28 +02:00