libsanitizer: Use pre-computed size of struct ustat for Linux
commit15f0e921f47a9b81c4a30295c8685ad37d3ff4e0
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 May 2018 19:52:32 +0000 (24 19:52 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 24 May 2018 19:52:32 +0000 (24 19:52 +0000)
tree1d83f19d05488961c73f70857fb077895308e9c7
parent3ac1955cfddff07d31cc9eb0e7e1d2274cf8e3a7
libsanitizer: Use pre-computed size of struct ustat for Linux

Cherry-pick compiler-rt revision 333213:

<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.

PR sanitizer/85835
* sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
include <sys/ustat.h> for Linux.
(SIZEOF_STRUCT_USTAT): New.
(struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260684 138bc75d-0d04-0410-961f-82ee72b054a4
libsanitizer/ChangeLog
libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc