Bug 277855 - Wrong signatures for wide character string functions
Summary: Wrong signatures for wide character string functions
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-21 06:04 UTC by Paul Floyd
Modified: 2024-03-24 05:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Floyd 2024-03-21 06:04:02 UTC
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);
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-03-21 08:40:57 UTC
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(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-03-24 05:14:00 UTC
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(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-03-24 05:14:02 UTC
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(-)