mirror of
git://sourceware.org/git/glibc.git
synced 2026-09-08 23:58:31 +08:00
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>
6 lines
154 B
C
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"
|