|
Lines 159-165
typedef struct user_fpregs elf_fpregset_t;
Link Here
|
| 159 |
# include <sys/procfs.h> |
159 |
# include <sys/procfs.h> |
| 160 |
#endif |
160 |
#endif |
| 161 |
#include <sys/user.h> |
161 |
#include <sys/user.h> |
| 162 |
#include <sys/ustat.h> |
|
|
| 163 |
#include <linux/cyclades.h> |
162 |
#include <linux/cyclades.h> |
| 164 |
#include <linux/if_eql.h> |
163 |
#include <linux/if_eql.h> |
| 165 |
#include <linux/if_plip.h> |
164 |
#include <linux/if_plip.h> |
|
Lines 252-258
namespace __sanitizer {
Link Here
|
| 252 |
#endif // SANITIZER_LINUX || SANITIZER_FREEBSD |
251 |
#endif // SANITIZER_LINUX || SANITIZER_FREEBSD |
| 253 |
|
252 |
|
| 254 |
#if SANITIZER_LINUX && !SANITIZER_ANDROID |
253 |
#if SANITIZER_LINUX && !SANITIZER_ANDROID |
| 255 |
unsigned struct_ustat_sz = sizeof(struct ustat); |
254 |
// Use pre-computed size of struct ustat to avoid <sys/ustat.h> which |
|
|
255 |
// has been removed from glibc 2.28. |
| 256 |
#if defined(__aarch64__) || defined(__s390x__) || defined (__mips64) \ |
| 257 |
|| defined(__powerpc64__) || defined(__arch64__) || defined(__sparcv9) \ |
| 258 |
|| defined(__x86_64__) |
| 259 |
#define SIZEOF_STRUCT_USTAT 32 |
| 260 |
#elif defined(__arm__) || defined(__i386__) || defined(__mips__) \ |
| 261 |
|| defined(__powerpc__) || defined(__s390__) |
| 262 |
#define SIZEOF_STRUCT_USTAT 20 |
| 263 |
#else |
| 264 |
#error Unknown size of struct ustat |
| 265 |
#endif |
| 266 |
unsigned struct_ustat_sz = SIZEOF_STRUCT_USTAT; |
| 256 |
unsigned struct_rlimit64_sz = sizeof(struct rlimit64); |
267 |
unsigned struct_rlimit64_sz = sizeof(struct rlimit64); |
| 257 |
unsigned struct_statvfs64_sz = sizeof(struct statvfs64); |
268 |
unsigned struct_statvfs64_sz = sizeof(struct statvfs64); |
| 258 |
#endif // SANITIZER_LINUX && !SANITIZER_ANDROID |
269 |
#endif // SANITIZER_LINUX && !SANITIZER_ANDROID |
| 259 |
- |
|
|