Page MenuHomeFreeBSD

Add kernel manpages for bcopy, memcpy, and memmove
ClosedPublic

Authored by brooks on Jun 19 2026, 2:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 25, 9:58 PM
Unknown Object (File)
Thu, Jul 23, 3:54 AM
Unknown Object (File)
Thu, Jul 16, 5:19 AM
Unknown Object (File)
Thu, Jul 16, 5:19 AM
Unknown Object (File)
Thu, Jul 16, 1:46 AM
Unknown Object (File)
Wed, Jul 15, 7:26 AM
Unknown Object (File)
Wed, Jul 15, 7:26 AM
Unknown Object (File)
Wed, Jul 8, 5:23 AM
Subscribers

Details

Summary

We will add variants of these to support CHERI so bootstrap the manpages
from section 3.

Effort: CHERI upstreaming
Sponsored by: Innovate UK

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 73996
Build 70879: arc lint + arc unit

Event Timeline

This looks fine, other than the 'string' choice. But maybe that's always been there. Maybe it's the standard jargon, but I thought I'd flag it.

share/man/man9/bcopy.9
46

"string" here and below? Is that something that you added for cheri, or is that legacy language. And if it's old, is there a better term?

This revision is now accepted and ready to land.Jun 19 2026, 6:35 PM
share/man/man9/bcopy.9
46

This is a copy the text in bcopy.3 Glancing at memcpy in POSIX they use "object" instead of string and that would be better.

emaste added inline comments.
share/man/man9/bcopy.9
46

It comes from bcopy(3). I recall a similar discussion when I was working on documenting memcpy & overlapping objects (although I can't find it now).

We could echo "byte string" (from .Nd) or maybe "object"

share/man/man9/bcopy.9
46

We could update the text in the section 3 pages as well

Remove references to strings

This revision now requires review to proceed.Jun 19 2026, 7:26 PM

Created D57680 to follow POSIX/C's lead and stop talking about strings in mem* functions.

This revision is now accepted and ready to land.Jun 20 2026, 11:07 AM
This revision now requires review to proceed.Jun 21 2026, 5:26 PM
This revision is now accepted and ready to land.Jun 24 2026, 1:58 PM

Could we also put some sbom tags?

share/man/man9/bcopy.9
2
share/man/man9/memcpy.9
2
share/man/man9/memmove.9
2

Could we also put some sbom tags?

If they are added to the section 3 manpages these are copied from...