Page MenuHomeFreeBSD

[libc][NFC] Split definitions of memcpy and memmove
Needs ReviewPublic

Authored by gfunni234_gmail.com on Aug 24 2021, 5:42 PM.

Details

Reviewers
imp
jrtc27
dim
Summary

Memmove is a valid way to implement memcpy. However, memcpy isn’t a valid way to implement memmove.

For this reason, I split the definitions into two. No ABI breakage should occur

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

gfunni234_gmail.com created this revision.
gfunni234_gmail.com retitled this revision from Split definitions of memcpy and memmove to [libc][NFC] Split definitions of memcpy and memmove.

Your description is not what this does for userspace. It is what it does for the kernel but that is bad, now we have two copies of basically the same thing in one file.