mallinfo is deprecated by GLIBC
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Doesn't this require a wrapper for mallinfo2() as well that returns a struct mallinfo2?
compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp | ||
---|---|---|
263 | It doesn't look like glibc's headers define a macro named mallinfo2, so this will always be false. |
compiler-rt/lib/scudo/standalone/tests/wrappers_c_test.cpp | ||
---|---|---|
263 | I mean, you are correct, I need to do something better. Probably check GLIBC version, https://lab.llvm.org/staging/#/builders/97/builds/560/steps/37/logs/stdio |
compiler-rt/lib/scudo/standalone/wrappers_c.inc | ||
---|---|---|
61 ↗ | (On Diff #387451) | While the test requires the check, is there something that always prevents us from defining mallinfo2? I don't think it would conflict with anything, and it would be there for people to use it if they want. |
It doesn't look like glibc's headers define a macro named mallinfo2, so this will always be false.