This is an archive of the discontinued LLVM Phabricator instance.

sanitizer: Use pre-computed size of struct ustat for Linux
ClosedPublic

Authored by hjl.tools on May 23 2018, 2:00 PM.

Details

Summary

<sys/ustat.h> has been removed from glibc 2.28 by:

commit cf2478d53ad7071e84c724a986b56fe17f4f4ca7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Sun Mar 18 11:28:59 2018 +0800

Deprecate ustat syscall interface

This patch uses pre-computed size of struct ustat for Linux to fix

https://bugs.llvm.org/show_bug.cgi?id=37418

Diff Detail

Event Timeline

hjl.tools created this revision.May 23 2018, 2:00 PM
kcc accepted this revision.May 23 2018, 2:05 PM

LGTM, thanks!

This revision is now accepted and ready to land.May 23 2018, 2:05 PM

Can you check it in for me? Thanks.

This revision was automatically updated to reflect the committed changes.