Page MenuHomeFreeBSD

Move zstd malloc()/free()/calloc() macros to stdlib.h.
ClosedPublic

Authored by markj on Feb 13 2018, 3:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 22 2023, 11:46 PM
Unknown Object (File)
Oct 17 2023, 3:01 PM
Unknown Object (File)
Oct 13 2023, 5:36 PM
Unknown Object (File)
Aug 2 2023, 12:36 AM
Unknown Object (File)
Aug 2 2023, 12:36 AM
Unknown Object (File)
Aug 2 2023, 12:34 AM
Unknown Object (File)
Aug 2 2023, 12:22 AM
Unknown Object (File)
May 14 2023, 6:20 AM
Subscribers
None

Details

Summary

The issue with keeping them in the main compat header is that the macro
definitions leak into anything that includes zstd.h, which might include
native FreeBSD code.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Feb 13 2018, 4:33 PM

this looks fine, apart maybe from the copyright stuff...

But honestly, those few lines are likely not deserving of copyright protection...

sys/contrib/zstd/lib/freebsd/stdlib.h
2 ↗(On Diff #39255)

2015?

In D14352#300773, @imp wrote:

this looks fine, apart maybe from the copyright stuff...

But honestly, those few lines are likely not deserving of copyright protection...

I didn't really think so either, but it doesn't hurt to be conservative here.

sys/contrib/zstd/lib/freebsd/stdlib.h
2 ↗(On Diff #39255)

I just copied it from zstd_kfreebsd.h.

imp added inline comments.
sys/contrib/zstd/lib/freebsd/stdlib.h
2 ↗(On Diff #39255)

Fair enough.

This revision was automatically updated to reflect the committed changes.