Page MenuHomeFreeBSD

amd64: convert libc bcopy to a C func to avoid future bloat
ClosedPublic

Authored by mjg on Oct 12 2018, 8:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 22 2024, 11:00 AM
Unknown Object (File)
Sep 19 2024, 5:40 AM
Unknown Object (File)
Sep 18 2024, 10:18 AM
Unknown Object (File)
Sep 17 2024, 5:12 PM
Unknown Object (File)
Sep 17 2024, 2:10 AM
Unknown Object (File)
Sep 16 2024, 2:34 AM
Unknown Object (File)
Sep 12 2024, 4:53 PM
Unknown Object (File)
Sep 5 2024, 7:54 AM
Subscribers

Details

Summary

The function is of limited use and is an almost a direct clone of memmove/memcpy (with arguments swapped). Introduction of ERMS variants of string routines would mean avoidable growth of libc.

bcopy will get redefined to a __builtin_memmove later on with this symbol only left for compatibility.

memcpy and memmove are now implemented separately.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

lib/libc/amd64/string/bcopy.c
4 ↗(On Diff #49074)

Please change to __FBSDID

8 ↗(On Diff #49074)

string.h includes strings.h.

This revision is now accepted and ready to land.Oct 13 2018, 6:46 PM
This revision was automatically updated to reflect the committed changes.