This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] [netbsd] Add support for versioned statvfs interceptors
ClosedPublic

Authored by krytarowski on Dec 19 2019, 5:43 AM.

Details

Summary

Add support for NetBSD 9.0 and newer versions of interceptors
operating on struct statvfs: fstatvfs, fstatvfs1, getmntinfo,
getvfsstat, statvfs, statvfs1.

The default promoted interceptors are for NetBSD 9.99.26. Older
ones (currently 9.0) are kept in a new NetBSD specific file:
/sanitizer_common_interceptors_netbsd_compat.inc. This file
defines compat interceptors and mangles INIT_* macros,
concatenating the current interceptors and the compat ones.
This redefinition is not elegant, but it avoids preprocessor madness.

Define struct_statvfs90_sz for the compat purposes.

Diff Detail

Event Timeline

krytarowski created this revision.Dec 19 2019, 5:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 19 2019, 5:43 AM
mgorny accepted this revision.Dec 26 2019, 10:43 AM

LGTM, presuming you've tested it. If you need me to do a second test run, lemme know.

This revision is now accepted and ready to land.Dec 26 2019, 10:43 AM
  • rebase to HEAD
This revision was automatically updated to reflect the committed changes.