Files
glibc/string/tst-string-posix2024-fortify.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

7 lines
189 B
C

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