Page MenuHomeFreeBSD

build: glibc on Linux defines explicit_bzero in <string.h>.
ClosedPublic

Authored by jhb on Mar 27 2023, 5:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jun 12, 1:08 PM
Unknown Object (File)
May 24 2024, 1:05 PM
Unknown Object (File)
Apr 26 2024, 5:46 PM
Unknown Object (File)
Apr 26 2024, 5:45 PM
Unknown Object (File)
Apr 26 2024, 5:45 PM
Unknown Object (File)
Apr 26 2024, 1:34 PM
Unknown Object (File)
Jan 29 2024, 8:54 PM
Unknown Object (File)
Dec 23 2023, 3:36 AM
Subscribers

Details

Summary

Don't install strings.h on such systems. The local prototype doesn't
match the native Linux one when built as C++ breaking the build of
config(8) as a bootstrap tool on some Linux systems. If the missing
prototype becomes a problem in the future,
tools/build/cross-build/include/linux/strings.h can be patched to add

Obtained from: CheriBSD
Sponsored by: DARPA

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Mar 27 2023, 5:01 PM

commit message looks like it's missing something, but otherwise OK

that said we might want to migrate our code to memset_s or meset_explicit?

This revision is now accepted and ready to land.Mar 27 2023, 5:50 PM

Oh, yeah, a missing "it." at the end of the sentence.

agree with ed, but this is good for now.