Files
glibc/wcsmbs/tst-wchar-posix2024.c
Matthias Goergens 7820b97b7a string: Declare Issue 8 functions for POSIX.1-2024 [BZ #34466]
POSIX.1-2024 requires memmem, strlcpy, and strlcat in <string.h>, and
wcslcpy and wcslcat in <wchar.h>. Expose these declarations and their
fortified wrappers under __USE_XOPEN2K24 as well as __USE_MISC. Keep
mempcpy restricted to __USE_MISC.

Add declaration tests for POSIX and X/Open Issue 8 modes, including
fortified headers.

Signed-off-by: Matthias Goergens <matthias.goergens@gmail.com>
Reviewed-by: DJ Delorie <dj@redhat.com>
2026-08-21 14:34:34 -03:00

6 lines
154 B
C

/* Process tst-wchar-posix2024-main.c in POSIX.1-2024 mode. */
#undef _GNU_SOURCE
#define _POSIX_C_SOURCE 202405L
#include "tst-wchar-posix2024-main.c"