The manpage signatures for wcpcpy and wcpncpy are wrong. The "const" and "restrict" keywords are missing. This is on FreeBSD 14.0. Manpage: wchar_t * wcpcpy(wchar_t *s1, wchar_t *s2); wchar_t * wcpncpy(wchar_t *s1, wchar_t *s2, size_t n); wchar.h header wchar_t *wcpcpy(wchar_t * __restrict, const wchar_t * __restrict); wchar_t *wcpncpy(wchar_t * __restrict, const wchar_t * __restrict, size_t);
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=69d5783ae81b74295118950d01b6dddb3e504a56 commit 69d5783ae81b74295118950d01b6dddb3e504a56 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-03-21 08:38:05 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-03-21 08:40:08 +0000 wmemchr(3): fix prototypes for wcpcpy() and wcpncpy() PR: 277855 Reported by: Paul Floyd <pjfloyd@wanadoo.fr> Sponsored by: The FreeBSD Foundation MFC after: 3 days lib/libc/string/wmemchr.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=e87a6f8860463c71773c5a02f9824d940a27d2d7 commit e87a6f8860463c71773c5a02f9824d940a27d2d7 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-03-21 08:38:05 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-03-24 05:12:39 +0000 wmemchr(3): fix prototypes for wcpcpy() and wcpncpy() PR: 277855 (cherry picked from commit 69d5783ae81b74295118950d01b6dddb3e504a56) lib/libc/string/wmemchr.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=ed995c67e0596edf30c21a402ed9678a6c86478f commit ed995c67e0596edf30c21a402ed9678a6c86478f Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2024-03-21 08:38:05 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-03-24 05:13:20 +0000 wmemchr(3): fix prototypes for wcpcpy() and wcpncpy() PR: 277855 (cherry picked from commit 69d5783ae81b74295118950d01b6dddb3e504a56) lib/libc/string/wmemchr.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)