aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/amd64/string/strncpy.c
Commit message (Collapse)AuthorAgeFilesLines
* Prepare the system for _FORTIFY_SOURCEKyle Evans2024-05-131-0/+2
| | | | | | | | | | | | | | | Notably: - libc needs to #undef some of the macros from ssp/* for underlying implementations - ssp/* wants a __RENAME() macro (snatched more or less from NetBSD) There's some extra hinkiness included for read(), since libc spells it as "_read" while the rest of the world spells it "read." Reviewed by: imp, ngie Sponsored by: Stormshield Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D32307
* lib/libc/amd64/string: implement strncpy() by calling stpncpy()Robert Clausecker2023-12-251-0/+41
Sponsored by: The FreeBSD Foundation Tested by: developers@, exp-run Approved by: mjg MFC after: 1 month MFC to: stable/14 PR: 275785 Differential Revision: https://reviews.freebsd.org/D42519